Added: 2 years ago
From: 403forbidden403
Views: 18,927
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (23)

Sign In or Sign Up now to post a comment!
  • Quick Info: Why Did You Not Use The Timeout Thingy

  • Quick Fact: Computers Count From 0

  • @7:11

    the variable up there is useless "$var = 5/7" is already defined inside the

    for line , you can leave it out and it still works , correct me if im wrong ,

    btw , nice tutorials , im addicted to them.

  • this videos are very helpful, thanks.

  • And you don't have to define the variable like that when doing a for loop.

    dim $var

    For $var = 5 to 1 Step -1 MsgBox(0, "Hello World!", $var)

    Next

    Works just fine, better even i would say.

  • Amazing :)

    I have a question: there is the FOR loop form: for $var=5 to 1 step -1

    why not like this ? for 5 to 1 step -1

    another question:

    since you defined $var in the for loop, is there a reason to define it on line 1 ?

  • @Bramborail 1. Because if it counts 5,4,3,2,1, how are you going to read what count we are on? You need to put the count somewhere. :) 2. I guess just because it's more solid feeling, and will help you get used to doing it like you will eventually need to if you learn C. (There are no jobs scripting in AutoIt. xP)

    btw, glad you liked all my vids, you said "Awesome!" like 10 times. ;)

  • @403forbidden403 :)):)) thanks for explenation :)

  • Just nees to know how to bot in a online game

  • you should try Python. it's easer, and the sintax is not so ugly ;)

  • you forgot fruitloops

  • unless you link to a real world example it doesnt mean much to me, I cant Imagine how I would use .

  • Haha, nice. Try this:

    $var = 9999

    Do

    MsgBox(48, "Warning!", "System overload!")

    $var = $var - 1

    until $var = 1

  • different fashions don't make sense ...i think ur confusing people bro....why use a different fashion if u can do it one simple way. if one way works, then that is the way of nature... why try different fashions?

  • All i'm trying to do is show people different ways of doing things, because one of those methods might not work in someone's script, and another might, just because of the way they have set it up.

  • @pygame you would use different fashions even if they do generally the same thing because A.) some are faster B.) are cleaner or C.) Execute better. For instance, on the "Do" command As you saw the Do command has its issues with commencing its actions before recognizing that its Variable is actually 1 already. (which obviously could be switched by moving Lines 5 and 4 around) but as you saw with the While command, you not only get a cleaner looking Code, But one that notices right away.

  • why would u subtract 1 from $var the - statement is uselss brah :(? why not set $var = 2? lol? whats the point brah?

  • Ugh, I'm not here for the tutorial, just was curious on the video. I have a question on a script I'm doing.. I have a loop, that controls alot of functions, which I don't have to to expain them..but it has a For-To-Next Loop. I have one way that exit's the loop, which is when a certain number is reached. I want the Stop button to also exit the loop. Have "func" inside the loop, so I don't know what to do. Please reply. Thanks.

    I'll pm you the code so you can refer.

  • I will be awaiting your PM. :)

  • Oh god I was stuck with an Infinite amount of Msg Boxes, Thanks! Nah I killed the script, but it was funny, thanks for the tutorials they are really good :)

  • lol, that can happen.  :)

  • i want to try to create a programm, when im pressing the ''down'' button, that auto it hits 4+up and 6 times 5!

  • Can you tell me how to repeat my whole script if I press a key or buttong or something im stuck with that.

  • This might require you to isolate your script in a function and then create a main function that will:

    first declare a bool (for ex. exitbool (just use a variable eg: 0 = false and 1 = true)).

    Then declare a variable to obtain user input eg: "1", "2" ...

    Then call your function.

    Then provide if statement:

    if statement should include a message box and a text box for user input.

    Provide direction such as: "press 1 to repeat function"; "press 2 to exit"

    if $input = 1 call function

    ...

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more