kpmwrestler Posted April 8, 2008 Posted April 8, 2008 Whenever I use the Sleep function, none of the controls or anything works. I understand why this would happen, but is there any way around it? Like maybe sleep in one area but still allow input and execution of commands in another loop?
Zedna Posted April 8, 2008 Posted April 8, 2008 Func GUIResponsiveSleep($time) Local $start = TimerInit() While 1 If TimerDiff($start) > $time Then Return $msg = GUIGetMsg() If $msg = $StopButton Then Return WEnd EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search
kpmwrestler Posted April 8, 2008 Author Posted April 8, 2008 Is there any difference between a Do...Until and a While...Wend loop?
monoceres Posted April 10, 2008 Posted April 10, 2008 (edited) Is there any difference between a Do...Until and a While...Wend loop?The only difference is when the boolean condition is checked, since it's last in a Do... Until loop it will always execute at least once. Edited April 10, 2008 by monoceres Broken link? PM me and I'll send you the file!
Linux Posted April 10, 2008 Posted April 10, 2008 (edited) One question, about the loops. Using a While loop, if the condition if false at start, does it run the code inside the loop at least once, or it jumps to the Wend? Yes, please post your code. Edited April 10, 2008 by Linux You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!"
martin Posted April 10, 2008 Posted April 10, 2008 One question, about the loops.Using a While loop, if the condition if false at start, does it run the code inside the loop at least once, or it jumps to the Wend?Yes, please post your code. It takes no more effort to find the answer to that by trying it than to post the question and it's a more effective way to learn. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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