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.

One button run multiple macros -cycle thru

If you have a question or need help, this is the place to be.
Post Reply
smbs
Posts: 5
Joined: Fri Apr 28, 2017 2:28 pm

One button run multiple macros -cycle thru

Post by smbs »

I want to have one remote button cycle thru 3 different macros.
The idea is to have a script which outputs "1" the first time run.
Second time run outputs "2" third time outputs "3" and when run again outputs "1".
The script to output cycled 1,2,3 is a simple AHK script.
My problem is how to write a python script (or any other way) which takes the output from ahk script and then jumps to existing macros
depending output --if "1" jump to macro1 if "2" jumpto macro "2" etc
Hope I have made myself clear
Thanx
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: One button run multiple macros -cycle thru

Post by jonib »

So if you describe more specifically what you are trying to do, you could get better solutions.

But I had one idea and that is to use the "-event" command-line option, that way your AHK script can generate an event directly in EventGhost.

With a concrete example of what you are trying to accomplice makes it easier to help.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
smbs
Posts: 5
Joined: Fri Apr 28, 2017 2:28 pm

Re: One button run multiple macros -cycle thru

Post by smbs »

I sorted it out by myself indeed using -event in the ahk script.
Thanx for your reply
Post Reply