Jump to content
  • 0

Can someone help me?


TheMech

Question

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

3 answers to this question

Recommended Posts

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

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

  • Administrators

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.