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.

Combining conditions

If you have a question or need help, this is the place to be.
Post Reply
zeroordie
Posts: 2
Joined: Fri May 30, 2014 10:18 am

Combining conditions

Post by zeroordie »

Hello,

I was wondering if it was possible to combine conditions.

For example: If Condition 1 AND condition 2 are met, lock computer.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Combining conditions

Post by Pako »

Your question is too brief.
I can briefly answer: yes, it is possible.
I can suggest some specific solution, but I need more specific description of the task.
When should it be evaluated conditions? It will be started with an event?
You have two conditions. Is any change in conditions associated with an event?

Pako
zeroordie
Posts: 2
Joined: Fri May 30, 2014 10:18 am

Re: Combining conditions

Post by zeroordie »

I have my phone set up to send an autoremote message to my pc when I leave home.

When this message arrives in eventghost AND the pc is idle, i would like eventgost to lock the pc.

I hope this information is sufficient
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Combining conditions

Post by Pako »

zeroordie wrote:I have my phone set up to send an autoremote message to my pc when I leave home.
When this message arrives in eventghost AND the pc is idle, i would like eventgost to lock the pc
1) How do I know that the PC is idle? Can we use the System.Idle and System.UnIdle events?
2) What format is an event that says "I left home?"
3) What if there is another case: you first leave home and then the PC is idle?
4) There is also an event "I went back home" ? What format does it have?

Note:
There are other options than just Autoremote and the like.
Look at the Nmap plugin.
You can use both options to enhance reliability.

Pako
eatmeimadanish
Experienced User
Posts: 118
Joined: Thu Oct 01, 2009 5:11 pm

Re: Combining conditions

Post by eatmeimadanish »

Just have the system idle and unidle trigger the enabling and disabling of a folder containing the macro. If you send an event to a macro in a disabled folder nothing happens. This is the easiest way I have found to accomplish what you are asking.
Post Reply