TheMech Posted April 15, 2020 Share 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. Link to comment Share on other sites More sharing options...
TheMech Posted April 18, 2020 Author Share 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. Link to comment Share on other sites More sharing options...
TopGEOYT Posted April 15, 2020 Share 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 . Link to comment Share on other sites More sharing options...
Administrators Enyby Posted April 15, 2020 Administrators Share 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. Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.