PDA

View Full Version : Triggering events with command line arguments



Ron
October 13th, 2002, 12:55 PM
Since Girder now has multiple events per command, I moved the command line arguments to their own device. 'Girder Event'. This means that they no longer trigger other commands, only Girder events. ( Is this clear ? )

Ron
October 13th, 2002, 12:55 PM
Maybe you are missing a different plugin ... maybe Mark Popup OSD ?

Ron
October 13th, 2002, 12:55 PM
Download the Popup OSD by Mark, that is a plugin with ID 100. ( ActionType) . This is the only plugin that I can see in your file.

http://www.girder.nl/download.php?Link=235

JamesAB
October 13th, 2002, 12:55 PM
With the old version of girder I was able to trigger events from the command line. Is it still possible with Girder 3.1.2?

For example, when I run:

"C:\Program Files\girder31\Girder.exe" -eventstring 200AC000

shouldn't that trigger my event 200AC000?

It used to work, but now girder sees the event in the bottom pane and the Icon flashes, but girder doesn't act on the event?

Is there something new I should use to make this work with Girder 3.1.2?

Thanks,
James

vynce
October 13th, 2002, 12:55 PM
You need to create another eventstring under the multigroup. Then in the drop down box next to the Learn Event button, select Girder Event. Click the Learn Event button. The the name that you want to use for that event into the top box (eg. test). Click select. Then use a dos command of the form: girder -eventstring <eventname> In the example it would be: girder -eventstring test.

vynce
October 13th, 2002, 12:55 PM
I have removed all hardware and software plugins from my girder directories and tested it again - works fine. I'm running Girder 3.2 Alpha 9. I have setup a quick gml test file that you can use to test this. To test, open a dos box and go to the girder directory. Type:


girder -eventstring test

It should display the word "test" on your screen using girder's simple osd.

Link Removed

vynce
October 13th, 2002, 12:55 PM
I tried your .gml file and it worked fine for me. You can get the .gml and .bat files that I used from here: (removed). You will probably have to change the path in the .bat file but it should work.

windtrader
October 13th, 2002, 12:55 PM
Ron,

I am trying to send Girder an eventstring from a dos command to execute a multigroup as if it was triggered by a learned remote button.

Neither of the follwing worked:

GIRDER -eventstring <multigroup name> and
GIRDER -eventstring <1554C0000000>


What is the specific syntax to get this to work?

Thanks

windtrader
October 13th, 2002, 12:55 PM
vynce,

I followed your instructions and when I execute the dos command, I get the message, "Cannot Find Softplugin". I searched the forum and found some problems when not having SendMessage 1.51 installed. I made sure that this plugin is available and active (box checked and applied).

Still getting the error message. What is missing?

windtrader
October 13th, 2002, 12:55 PM
I enabled all the sw pligins and tried it again. Same message. Disabled all sw plugins. Same message. Imported the sample group and it works.

So, the problem is in construction of my group. Here it is for you to review. Remember, what I am trying to do is have an external bat file simulate pressing a learned remote key.

Humm. can't attach the gml file. I'll put the text here. You can copy it into a GML file.

Thanks

<?xml version="1.0" encoding="UTF-8"?>
<Girder><Group Name="Group Switch" Identifier="746" Enabled="TRUE"><MultiGroup Name="Zoom Player" Identifier="3555" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><Command Name="WinDVD Disable" Identifier="3559" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>51</lValue1></Command><Command Name="Zoom Player Enable" Identifier="3561" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>1</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>377</lValue1></Command><Command Name="DScaler Disable" Identifier="3557" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>4846</lValue1></Command><Command Name="MusicMatch Disable" Identifier="3563" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>2370</lValue1></Command><Command Name="Display" Identifier="3565" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>100</ActionType><ActionSubType>1</ActionSubType><sValue1>WinAMP</sValue1><iValue1>1000</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3></Command><EventString Name="EventString" Identifier="3556" Enabled="TRUE" Invert="FALSE" Device="1" IrStr="1554C0000000" AntiRepeat="250"></EventString><EventString Name="EventString" Identifier="6639" Enabled="TRUE" Invert="FALSE" Device="18" IrStr="test"></EventString></MultiGroup><MultiGroup Name="MusicMatch" Identifier="5429" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><EventString Name="EventString" Identifier="5430" Enabled="TRUE" Invert="FALSE" Device="1" IrStr="400409004049" AntiRepeat="250"></EventString><Command Name="DScaler Disable" Identifier="5433" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>4846</lValue1></Command><Command Name="WinDVD Disable" Identifier="5437" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>51</lValue1></Command><Command Name="Zoom Player Disable" Identifier="5441" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>377</lValue1></Command><Command Name="MusicMatch Enable" Identifier="5445" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>1</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>2370</lValue1></Command><Command Name="Display" Identifier="5449" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>100</ActionType><ActionSubType>1</ActionSubType><sValue1>WinAMP</sValue1><iValue1>1000</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3></Command></MultiGroup><MultiGroup Name="WinDVD" Identifier="5477" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><EventString Name="EventString" Identifier="5478" Enabled="TRUE" Invert="FALSE" Device="1" IrStr="06A000000000" AntiRepeat="250"></EventString><Command Name="DScaler Disable" Identifier="5481" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>4846</lValue1></Command><Command Name="WinDVD Enable" Identifier="5485" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>1</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>51</lValue1></Command><Command Name="Zoom Player Disable" Identifier="5489" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>377</lValue1></Command><Command Name="MusicMatch Disable" Identifier="5493" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>2370</lValue1></Command><Command Name="Display" Identifier="6235" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>100</ActionType><ActionSubType>1</ActionSubType><sValue1>WinAMP</sValue1><iValue1>1000</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3></Command></MultiGroup><MultiGroup Name="DScaler" Identifier="5525" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><EventString Name="EventString" Identifier="6236" Enabled="TRUE" Invert="FALSE" Device="1" IrStr="42A000000000" AntiRepeat="250"></EventString><Command Name="DScaler Enable" Identifier="5529" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>1</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>4846</lValue1></Command><Command Name="WinDVD Disable" Identifier="5533" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>51</lValue1></Command><Command Name="Zoom Player Disable" Identifier="5537" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>1627</lValue1></Command><Command Name="MusicMatchDisable" Identifier="5541" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>4</ActionType><ActionSubType>2</ActionSubType><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><lValue1>2370</lValue1></Command><Command Name="Display" Identifier="5545" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>100</ActionType><ActionSubType>1</ActionSubType><sValue1>WinAMP</sValue1><iValue1>1000</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3></Command></MultiGroup></Group></Girder>

windtrader
October 13th, 2002, 12:55 PM
Vynce and Ron,

It was the missing plugin . Once installed it worked fine. I also realized that I didn't need that specific command in the group. However, I did learn how to trigger a Girder event via a bat file command thanks to your help.

Thanks again,
Don