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.

Conditional responses based on time

If you have a question or need help, this is the place to be.
Post Reply
sfreema1
Posts: 1
Joined: Sat Aug 11, 2007 10:04 pm

Conditional responses based on time

Post by sfreema1 »

Hello all,
This is my first post. I did some research and haven't quite found the answer to my question. Here goes. Is it possible to have a macro (associated with a button press) send different keystrokes based on a time interval between button presses? Specifically, I want to set up my remotes numeric keys to act much like a cell phone when texting (i.e. press 1 for a, press again within a second for b, press a third time within a second and send c). I wasn't sure if I needed to do some advanced scripting within python of if I can do it thru the gui or even at all.

thanks so much for any help you can provide

-Stu
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Conditional responses based on time

Post by Bitmonster »

Theoretical you can do this by combining many "enable exclusive" macro groups and scheduled events (with EventGhost/Trigger Event actions or actions of the "Timer" plugin) to reset the states on timeout. Take a look at the state examples in the Example.xml to get an idea how to switch states.

But this would be a big bunch of macros to get it working. So if you have some scripting skills, it would possibly much easier to do it with a script. Or even a plugin if you want to have it perfect.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply