Attached is a simple example.SlipStream wrote:can you give me an example and explain it or, can you point me to a place that can explain python scrypting, I am not familar with python. Thanks
Sure, it's very simple.SlipStream wrote:Pako, thanks a bunch,its a little bulky but i think that will work. one thing i cant figure out is. is there a place to see the state of myvar_1 whether it is true or false?
if eg.globals.Tv:
eg.TriggerEvent("Tv-True")
else:
eg.TriggerEvent("DoNothing")My English is poor so I'm not sure, that I understand this well. If you do not need (it is not used in any macro) the event Main.DoNothing, of course you can make the simplification:SlipStream wrote: ...the reason i need this is the tv-false variable might be part of another macro which is triggered by that event. so what has been happening is in the top condidtion i can state that to be tv-true or tv-false then the else i just use "DoNothing" as the event which is not linked to anything. this way i have a switch which is, if said variable is true/false do this, else do nothing. My question is this, is this the cleanest way of doing this or is there something more simple?
if eg.globals.Tv:
eg.TriggerEvent("Tv-True")I, unfortunately, probably not quite understand the logic of your solution.SlipStream wrote:Also if you can take a look at this, tell me what you think.
Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests