Sign in to follow this  
Followers 0
Haseeb

need some information...

4 posts in this topic

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

i could not find any help related to it in wiki.

will you please explain it ?

Share this post


Link to post
Share on other sites

$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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0