andyvl Posted August 26, 2007 Share Posted August 26, 2007 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 More sharing options...
bogQ Posted August 26, 2007 Share Posted August 26, 2007 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 exiti 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 connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) 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 More sharing options...
jokke Posted August 26, 2007 Share Posted August 26, 2007 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 More sharing options...
sandin Posted August 26, 2007 Share Posted August 26, 2007 or maybie u can make a new GUI pop up instead of msgbox. New GUI won't pause your script like msgbox. Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
andyvl Posted August 26, 2007 Author Share Posted August 26, 2007 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 More sharing options...
sandin Posted August 26, 2007 Share Posted August 26, 2007 Func _resume () GUIDelete($conf) endfunc Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now