I have been playing with eventghost and have found it to be AWSOME software, but does it have a feature like a "if condition". example, i use rs232 relay controllers and contact closure sensing boards, i can get event ghost to send and receive commands, but is there a way to make a macro that can check conditions.
example.
IF condition b1 is met send command 1a OR if condition b1 is not met dont send command 1a
OR
send command 1a IF condition b1 is met OR send command 1b IF condition b2 is met
command 1a = tv on command
command 1b = no command sent
condition b1 = relay 1 closed
condition b2 = relay 1 open
thanks for any help
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.
does event ghost have this function
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: does event ghost have this function
Sure, this is really simple to do in a python script. If you have extensive needs, you can also write a plugin for a soft plc
Best regards, Walter
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: does event ghost have this function
Can u make an example on how release a script waiting for a process to close? Thank you
Re: does event ghost have this function
some simple stuff can also be done be conditional jump and a python command before.
eg.result has to evaluate as True or False
other thing would be script
Code: Select all
eg.result = expressionother thing would be script
Code: Select all
if expression:
do something
else:
do something else
Re: does event ghost have this function
and an expression for existing process which could be?
Re: does event ghost have this function
if the process has a windows you can simple combine a Find Windows action and do a conditional jump after that.
Re: does event ghost have this function
I need to wait that I close the windows and then the macro can go on... I don't think I can do that with jump... I tryed to use the start application and flag the wait to close but I've yet opened the software at the begin of the script so this command doesn't go...
Re: does event ghost have this function
Elsewhere, can I associate to a macro the closed event and make it go only once a day? It's possibile?