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.

How can I call this jump in script or some other method?

If you have a question or need help, this is the place to be.
Post Reply
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

How can I call this jump in script or some other method?

Post by molitar »

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.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: How can I call this jump in script or some other method?

Post by Bartman »

just put an python command in your macro

Code: Select all

eg.result = eg.globals.WindowsState == "Fullscreen"
after that you can do a conditional jump
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: How can I call this jump in script or some other method?

Post by molitar »

Bartman wrote:just put an python command in your macro

Code: Select all

eg.result = eg.globals.WindowsState == "Fullscreen"
after that you can do a conditional jump
Thanks that worked great.. thanks
Post Reply