TheMech Posted April 15, 2020 Posted April 15, 2020 I can't so it so if I click outside my script to make it sleep and say something like you didn't choose anything. Can someone help me? I know it has something to do with but I can't get it working. gg.sleep(100) ---or something Sorry for my bad English.
TheMech Posted April 18, 2020 Author Posted April 18, 2020 On 4/16/2020 at 12:04 AM, TopGEOYT said: u can do it by remembering variable and isVisible/setVisible command . in Lua scripts u can check unencrypted scripts , they have this function . Oh thanks I'll try that. [added 3 minutes later] On 4/16/2020 at 12:28 AM, Enyby said: Need anlyze return value from dialog calls. If it cancelled then this reflected in return value, usually by return nil. So you need check it, if this happens - use sleep in loop, periodically check about user interaction with script via icon or button. Thank you.
TopGEOYT Posted April 15, 2020 Posted April 15, 2020 5 hours ago, TheMech said: I can't so it so if I click outside my script to make it sleep and say something like you didn't choose anything. Can someone help me? I know it has something to do with but I can't get it working. gg.sleep(100) ---or something Sorry for my bad English. u can do it by remembering variable and isVisible/setVisible command . in Lua scripts u can check unencrypted scripts , they have this function .
Administrators Enyby Posted April 15, 2020 Administrators Posted April 15, 2020 Need anlyze return value from dialog calls. If it cancelled then this reflected in return value, usually by return nil. So you need check it, if this happens - use sleep in loop, periodically check about user interaction with script via icon or button.
Question
TheMech
I can't so it so if I click outside my script to make it sleep and say something like you didn't choose anything.
Can someone help me?
I know it has something to do with but I can't get it working.
Sorry for my bad English.
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.