English verison: Hi, is there a way to check if a tab is active or inactive? and if its active, resume another script in pilot?
Russian:
Privet, yest' li sposob proverit', aktivna li vkladka ili neaktivna? i yesli on aktiven, vozobnovit' drugoy skript v pilotnoy versii?
Ty in advance!
See https://uopilot.uokit.com/wiki/index.php?title=Scripts_(Lua) for lua and https://uopilot.uokit.com/wiki/index.php?title=Get_scripts for pilot version
https://uopilot.uokit.com/wiki/index.php?title=Resume_script - for resume scripts (pilot version)
For lua
resume_script(<script number>)
i used variables for this. Сheck the value of the variable in the desired script to determine its state. For example
if #a.1 = 0 //if script 1 is not running then #a has no value
resume_script 2
end_if
Ty both very much, after messing around with it I FINALLY understand. Much Appreciated to the both of you.
Русская версия Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)