Jump to content

Loops related help required in Autit


Hassan
 Share

Recommended Posts

I already know that we cannot run 2 loops at very same time but I ant to know if I cannot run 2 loops @ the same time then how can I get my work if I am indented to do 2 or 3 works @ very same time by using same loops??

More over I am confuse in For & While loop if someone have an idea of these thing then share with me. Help file is making me more confuse. tell me which loop is use for a continuous process & which is for our own define path

Link to comment
Share on other sites

For loops are good for arrays and other kinds of iteration.

While loops are good for when looking for a particular condition.

It is possible to nest loops.

An example of what you want to use it for is helpful

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

For loops are good for arrays and other kinds of iteration.

While loops are good for when looking for a particular condition.

It is possible to nest loops.

An example of what you want to use it for is helpful

Can u assist me that if I want a continues process to perform in loop then which loop[ is good for that? for example if I made a String & I want it to copy itself continuously unless I stop it & if I don't stop it it keep on doing that. if U can explain it by example of notepad trick then it will be much appreciated
Link to comment
Share on other sites

While 1
    ControlSend("Untitled", "", "Edit1", "String" & @CRLF)
WEnd

This loop will never end.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...