Jump to content

msgbox interupts loop


 Share

Recommended Posts

My program needs to run for a certain period of time.

It can be closed earlier by pressin a button.

Then a msgbox appears to ask for confirmation.

The problem is that the services is halted now.

I need to have the proces going on until the user confirms.

so is there a way that when you program prompts a messagebox,

it isn't been halted.

(my gues is to create a own new gui as messagebox

with eventhandlers on the buttons)

if there is a faster and easier way (not that the GUI is difficult) it would help

Link to comment
Share on other sites

It can be closed earlier by pressin a button.

Then a msgbox appears to ask for confirmation.

how about to have ToolTip instead msgbox with text pls press ctrl+alt+somebutton to confirm exit

i think that it will not stop the script on runing until you press the button combination

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

It would be possible to create a script witch will continue even if a MsgBox appears, look into "Picassos" multithread functions "CoProc.au3"

UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
Link to comment
Share on other sites

hmm, event button 1 accepted, button 2 not

$conf = guicreate("bla", 56,61)
$end = guictrlcreatebutton("yes", 20,645,64,6)
$res = guictrlcreatebutton("no", 11,56,47,45)
guictrlsetonevent($res, "_resume")
guictrlsetonevent($end, "_exit")

code of _resume()

is just

winclose("bla")

no errors shown. but clicking that button don't do anything.

Did a test and dropped msgbox in resume func and msgbox is displayed.

How can I close this GUI window?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...