sheck Posted May 3, 2006 Posted May 3, 2006 (edited) I noticed that when I create GUI window with a While.....Wend loop the script is being paused if I click and hold my mouse down on GUI window. If you performe timed commands such as Adlibenable, this is really annoying. Is there a way to go around that ? Edited May 3, 2006 by sheckandar Live and Learn, 'cause Knowledge is Super Power.
sheck Posted May 3, 2006 Author Posted May 3, 2006 In the example below we have While....Wend loop and AdlibEnable function. If I click and hold my left mouse button down on GUI window, script is paused for as long as I hold the left mouse button. #include<GUIConstants.au3> AdlibEnable("message", 4000) GUICreate("Test GUI", 200, 200, -1 , -1) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect Sleep(2000) MsgBox(64, "Test", "This box is in While 1 loop", 3) WEnd Func message() MsgBox(64, "Test2", "This box is in message() function", 3) EndFunc Live and Learn, 'cause Knowledge is Super Power.
ChrisL Posted May 3, 2006 Posted May 3, 2006 In the example below we have While....Wend loop and AdlibEnable function. If I click and hold my left mouse button down on GUI window, script is paused for as long as I hold the left mouse button. #include<GUIConstants.au3> AdlibEnable("message", 4000) GUICreate("Test GUI", 200, 200, -1 , -1) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect Sleep(2000) MsgBox(64, "Test", "This box is in While 1 loop", 3) WEnd Func message() MsgBox(64, "Test2", "This box is in message() function", 3) EndFunc Not on my laptop it doesn't, it keeps running [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
Valuater Posted May 3, 2006 Posted May 3, 2006 Not on my laptop it doesn't, it keeps runningI thought that at first also...did you click and hold the mouse on the upper window title-bar...thats when i noticed he is correct8)
Don N Posted May 3, 2006 Posted May 3, 2006 (edited) Not on my laptop it doesn't, it keeps runningDoesnt hang on my laptop or my other 2 computers here. Not sure why yours would pause like that.EDIT: TYPO Edited May 3, 2006 by Don N _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper
Valuater Posted May 3, 2006 Posted May 3, 2006 click and hold the title bar then move the window around.. you will see 8)
Moderators SmOke_N Posted May 3, 2006 Moderators Posted May 3, 2006 click and hold the title bar then move the window around.. you will see8)Ha!!, I've never noticed that... Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
sheck Posted May 3, 2006 Author Posted May 3, 2006 Ha!!, I've never noticed that... I guest since no one noticed it before, it's not such a big deal. But I would still like to know if there is a way around that. Live and Learn, 'cause Knowledge is Super Power.
Moderators SmOke_N Posted May 3, 2006 Moderators Posted May 3, 2006 I guest since no one noticed it before, it's not such a big deal. But I would still like to know if there is a way around that.Have you thought of making your own title bar? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
sheck Posted May 3, 2006 Author Posted May 3, 2006 Have you thought of making your own title bar? I have, but it happens with any control in GUI window, such as scroll bar or a label. Live and Learn, 'cause Knowledge is Super Power.
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