Hi folks:
I am new to using eventghost and am obviously missing something obvious in trying to use the command line option to trigger an event.
I have loaded the USB-UIRT plugin which gives me a folder "USB-UIRT Commands" under the configuration tree. I have created a macro called "Transmit_Select" which has an event "IRselect" which transmits an IR code via the USB-UIRT.
When I select the macro and execute it directly from the configuration tree, it works perfectly. Now I would like to trigger the macro via a command line so I can use the windows task scheduler to trigger it - i.e. to keep my bell fibe set top box live for sagetv.
I have tried the following: eventghost -e Transmit_Select
eventghost -e IRselect
eventghost -e USB-UIRT:Transmit_Select
eventghost -e USB-UIRT:IRselect
The log shows no errors, just "Main.<whichever command string I used>" but it does NOT trigger the USB-UIRT to send the command as in the macro.
Any help would be appreciated - I am using EG version 0.4.1.r1669 on Windows 7 (64 bit) SP1 build 7601
Best regards, Dave Melnyk
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Help for a newbie - command line events
Re: Help for a newbie - command line events
With the commandline you are generating an event, for it to trigger/activate a macro, you need to put(drag) that event in that macro.dmelnyk wrote:The log shows no errors, just "Main.<whichever command string I used>" but it does NOT trigger the USB-UIRT to send the command as in the macro.
You can't just activate/run an action/macro directly from the commandline.
So just drag and drop "Main.<whichever command string I used>" from the log to the macro and it should work like you want.
jonib
Re: Help for a newbie - command line events
Hi jonib:
Thanks for the reply. I have tried that and still no success ... I must be really dense, I cannot seem to grasp how this works. I dragged the Main.< > item into the macro but still not working. Perhaps a real step by step process would help ...
The configuration tree looks as follows:
AUtostart
Plugin: USB-UIRT
<Folder> USB-UIRT Commands
<Macro> Transmit_Select
Main.Transmit_Select
IRselect <Which is the action that triggers the USB-UIRT>
What is the command line that I require? EventGhost -e Transmit_Select (does not work)
EventGhost -e USB-UIRT:Transmit_Select (does not work)
Best regards, sorry for being so dense ... Dave Melnyk
Thanks for the reply. I have tried that and still no success ... I must be really dense, I cannot seem to grasp how this works. I dragged the Main.< > item into the macro but still not working. Perhaps a real step by step process would help ...
The configuration tree looks as follows:
AUtostart
Plugin: USB-UIRT
<Folder> USB-UIRT Commands
<Macro> Transmit_Select
Main.Transmit_Select
IRselect <Which is the action that triggers the USB-UIRT>
What is the command line that I require? EventGhost -e Transmit_Select (does not work)
EventGhost -e USB-UIRT:Transmit_Select (does not work)
Best regards, sorry for being so dense ... Dave Melnyk
Re: Help for a newbie - command line events
The same commandline you used when you dragged the event to the macro should work.dmelnyk wrote:What is the command line that I require?
If you can't get it to work post a screenshot showing the log and macro when you run the commandline.
You don't have either the folder or macro disabled (with a red cross)?
jonib
Re: Help for a newbie - command line events
hi thanks for the reply...
I think I have got it through a bit of experimentation ... but to confirm the process for creating a macro and then generating the required item to allow a command line trigger of the macro:
1) Create Macro
2) Set action(s) under macro
3) Add an arbitrary "event" name as a prefix to the macro name within the macro
4) use the following command line to trigger macro: eventghost -e <event name>.<macro name>
It appears my confusion came from looking at the short help for the command line which referred to an "event" and "Payload" ... and I guess I mistook "event" to mean "Macro" as the macros contain the actions. I also noted that it is all case sensitive, something which is not noted in the online help I was viewing.
Many thanks for your patience with a "newbie".
Best regards, Dave Melnyk
I think I have got it through a bit of experimentation ... but to confirm the process for creating a macro and then generating the required item to allow a command line trigger of the macro:
1) Create Macro
2) Set action(s) under macro
3) Add an arbitrary "event" name as a prefix to the macro name within the macro
4) use the following command line to trigger macro: eventghost -e <event name>.<macro name>
It appears my confusion came from looking at the short help for the command line which referred to an "event" and "Payload" ... and I guess I mistook "event" to mean "Macro" as the macros contain the actions. I also noted that it is all case sensitive, something which is not noted in the online help I was viewing.
Many thanks for your patience with a "newbie".
Best regards, Dave Melnyk
Re: Help for a newbie - command line events
Great.dmelnyk wrote:I think I have got it through a bit of experimentation
Correct... but to confirm the process for creating a macro and then generating the required item to allow a command line trigger of the macro:
1) Create Macro
Correct2) Set action(s) under macro
No need to do this, the name of the macro don't matter(The name is only to tell you what it does, and you should name it something that makes sense to you).3) Add an arbitrary "event" name as a prefix to the macro name within the macro
The text after "-e " don't have anything to do with the macro name, it just needs to match the event you put in the macro. The easiest way to do that is to run "eventghost -e MyEvent" for example, and when you see it in the EventGhost log, you drag and drop it in the macro.4) use the following command line to trigger macro: eventghost -e <event name>.<macro name>
Have you read the "Short Manual"? as it should give you the basics of events/macros/actions.
jonib
