BALA Posted January 11, 2007 Posted January 11, 2007 (edited) I was thinking something like this: MsgBox(64, "Ring! Ring!", "The time is currently: ") While 1 If WinExists("Ring! Ring!") = 0 Then ExitLoop EndIf Beep(500, 500) Sleep(10) WEnd But it waits for the dialog box to close before it starts the beeping. Any ideas? Edited January 11, 2007 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
herewasplato Posted January 11, 2007 Posted January 11, 2007 http://www.autoitscript.com/forum/index.php?showtopic=22531 [size="1"][font="Arial"].[u].[/u][/font][/size]
Helge Posted January 12, 2007 Posted January 12, 2007 MsgBox pauses the execution of the script, which is kind of logical if you think about it. If AutoIt followed your logic the script below would require some keen senses from the user's side...$answer = MsgBox(36, "Question", "Yes or no ?") If $answer = 6 Then ; yes EndIf
BALA Posted January 12, 2007 Author Posted January 12, 2007 So I guess it would be easier if I just create a GUI that resembles a dialog box. [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Bert Posted January 12, 2007 Posted January 12, 2007 (edited) Use a splashtexton box instead. http://www.autoitscript.com/autoit3/docs/f...plashTextOn.htm Edited January 12, 2007 by Volly The Vollatran project  My blog: http://www.vollysinterestingshit.com/
herewasplato Posted January 12, 2007 Posted January 12, 2007 MsgBox pauses the execution of the script,......but if you really want a MsgBox to do what is requested in the OP, you can do it. Offload either the MsgBox of the Beeping to a child script.TrayTip, ToolTip, SplashScreen, ... would be easier. [size="1"][font="Arial"].[u].[/u][/font][/size]
Joon Posted January 12, 2007 Posted January 12, 2007 Cheap workaround $answer = -1 While $answer = -1 Beep(500, 500) Beep(500, 500) $answer = MsgBox(64, "Ring! Ring!", "The time is currently: ",5) WEnd
herewasplato Posted January 12, 2007 Posted January 12, 2007 (edited) Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(64, ""Ring! Ring!"", ""The time is currently: "")"') WinWait("Ring! Ring!") While 1 If WinExists("Ring! Ring!") = 0 Then ExitLoop EndIf Beep(500, 500) Sleep(10) WEnd Edited January 12, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
Joon Posted January 12, 2007 Posted January 12, 2007 Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(64, ""Ring! Ring!"", ""The time is currently: "")"') WinWait("Ring! Ring!") While 1 If WinExists("Ring! Ring!") = 0 Then ExitLoop EndIf Beep(500, 500) Sleep(10) WEnd Will this work on a client without AutoIt installed? All my PCs have autoit installed.
herewasplato Posted January 12, 2007 Posted January 12, 2007 Will this work on a client without AutoIt installed? All my PCs have autoit installed.Yes. I was pretty sure that it would - so, I uninstalled AutoIt and tested it. It works just fine.This from the help file under "Running Scripts":Execute another script file from a compiled AutoIt3 Script File. Then you don't need to fileinstall another copy of AutoIT3.exe in your compiled file.It is true for execute line as well. [size="1"][font="Arial"].[u].[/u][/font][/size]
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