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.

Executing Action when Titlebar value of Application Changes

If you have a question or need help, this is the place to be.
Post Reply
eventspook
Posts: 23
Joined: Tue Mar 05, 2013 2:50 pm

Executing Action when Titlebar value of Application Changes

Post by eventspook »

I would like to detect when one of my desktop applications gets kicked out of the server. When this happens, the titlebar value changes, reflecting the disconnect.

I tried creating a Timer which uses the 'Find Window' Action, but I am guessing I am not understanding this context properly.

How would I make it so every x seconds (or real time if there is a system call for it I guess), it scans the system for a certain process with a certain titlebar value, and notifies me if it hasn't been found? Currently I have:

Tree layout:

Action Name:Process Name
  • Timer (Start New Timer)
  • Find Window (Program & Window name values filled in, stop macro if target is found)
  • Start Program (notifies me)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Executing Action when Titlebar value of Application Chan

Post by jonib »

eventspook wrote:Action Name:Process Name
  • Timer (Start New Timer)
  • Find Window (Program & Window name values filled in, stop macro if target is found)
  • Start Program (notifies me)
You need to move the "Timer (Start New Timer)" to another macro where you start it, and replace it with the event that the timer creates when times up.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
eventspook
Posts: 23
Joined: Tue Mar 05, 2013 2:50 pm

Re: Executing Action when Titlebar value of Application Chan

Post by eventspook »

You're right, and I got it working, thanks!
Post Reply