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.

does event ghost have this function

If you have a question or need help, this is the place to be.
Post Reply
SlipStream
Posts: 8
Joined: Fri Feb 19, 2010 2:21 am

does event ghost have this function

Post by SlipStream »

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
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: does event ghost have this function

Post by krambriw »

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
BigBlack
Posts: 45
Joined: Wed Jan 13, 2010 3:19 am

Re: does event ghost have this function

Post by BigBlack »

Can u make an example on how release a script waiting for a process to close? Thank you
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: does event ghost have this function

Post by Bartman »

some simple stuff can also be done be conditional jump and a python command before.

Code: Select all

eg.result = expression
eg.result has to evaluate as True or False

other thing would be script

Code: Select all

if expression:
    do something
else:
    do something else
BigBlack
Posts: 45
Joined: Wed Jan 13, 2010 3:19 am

Re: does event ghost have this function

Post by BigBlack »

and an expression for existing process which could be?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: does event ghost have this function

Post by Bartman »

if the process has a windows you can simple combine a Find Windows action and do a conditional jump after that.
BigBlack
Posts: 45
Joined: Wed Jan 13, 2010 3:19 am

Re: does event ghost have this function

Post by BigBlack »

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...
BigBlack
Posts: 45
Joined: Wed Jan 13, 2010 3:19 am

Re: does event ghost have this function

Post by BigBlack »

Elsewhere, can I associate to a macro the closed event and make it go only once a day? It's possibile?
Post Reply