I want to call the action in a python script so I can test again a global value and depending on value do a different action.
For this particular jump I am checking a global variable...
eg.globals.WindowsState
If it equals "Fullscreen" then I want to jump to the macro "OSE Display 1" else jump to "OSE Display 2"
But I have not figured out how to do this in EventGhost either with actions/events or by script.
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.
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.
How can I call this jump in script or some other method?
Re: How can I call this jump in script or some other method?
just put an python command in your macro
after that you can do a conditional jump
Code: Select all
eg.result = eg.globals.WindowsState == "Fullscreen"Re: How can I call this jump in script or some other method?
Thanks that worked great.. thanksBartman wrote:just put an python command in your macroafter that you can do a conditional jumpCode: Select all
eg.result = eg.globals.WindowsState == "Fullscreen"