Jump to content
  • 0

How to run background


Granger

Question

6 answers to this question

Recommended Posts

This what Will i put in my script ?

 

function doAction()

local ret = gg.alert('Here some action', 'OK', 'Cancel', 'Exit')

 

if ret == 3 then os.exit()

end -- exit from the script

end

gg.setVisible(false) while true do if

gg.isVisible() then gg.setVisible(false)

doAction() end

gg.sleep(100)

end

 

Link to comment
Share on other sites

  • Administrators

Try executing this code from a separate file. Look what will happen.
Check out the code. Draw conclusions.

[added 0 minutes later]

You can also see ready-made templates in the download section. Maybe they will be more understandable to you.
I did not see what is there, but this is a typical question. It should be there.

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.