Haseeb Posted May 29, 2008 Share Posted May 29, 2008 can anyone tell me about this $Q = 1 While $Q < 3 $Y = 1 While $Y < 580 If WinExists("Test") or ("123") Then WinClose("New") EndIf what is $Q =1 and While $Q < 3 i could not understand this all. anyone will explain what it will do. thanks in advance. Link to comment Share on other sites More sharing options...
JRowe Posted May 29, 2008 Share Posted May 29, 2008 Check out the tutorials in the wiki (Button on the top far right of the screen.) $Q is a variable, so "$Q = 1" is assigning the value 1 to the variable $Q. "While Q < 3" is a conditional statement, called a Loop. It means that when the program is run and reaches that line, it is going to check the value of $Q, and if it is less than 3, it will run the code between the "While" statement and the "WEnd" statement. If the value of $Q is greater than or equal to 3, it will not run the code inside the While statement. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
Haseeb Posted May 30, 2008 Author Share Posted May 30, 2008 i could not find any help related to it in wiki. will you please explain it ? Link to comment Share on other sites More sharing options...
d4rk Posted May 30, 2008 Share Posted May 30, 2008 $Q = 1;Declare $Q=1 While $Q < 3;Will go to this loop 'cause $Q=1 < 3 $Y = 1;Declare $Y=1 While $Y < 580;Will go to this loop 'cause $Y<580 If WinExists("Test") or ("123") Then WinClose("New") EndIf This loop won't stop because the value of $Q is fixed, it haven't been changed since the loop works [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys 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