@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. ;)
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.
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.
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 :)
Quick Info: Why Did You Not Use The Timeout Thingy
pawelweb1 2 weeks ago
Quick Fact: Computers Count From 0
pawelweb1 2 weeks ago
@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.
Gabrielregalado2 6 months ago
this videos are very helpful, thanks.
pulsarcolosal 11 months ago
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.
exiit 1 year ago
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 year ago
@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 1 year ago
@403forbidden403 :)):)) thanks for explenation :)
Bramborail 1 year ago
Just nees to know how to bot in a online game
Rm49ismyname 1 year ago
you should try Python. it's easer, and the sintax is not so ugly ;)
zon3ful 1 year ago
you forgot fruitloops
nidodeproteccion 1 year ago
unless you link to a real world example it doesnt mean much to me, I cant Imagine how I would use .
elwoodetubes 1 year ago
Haha, nice. Try this:
$var = 9999
Do
MsgBox(48, "Warning!", "System overload!")
$var = $var - 1
until $var = 1
VgBerg 1 year ago
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?
pygame 2 years ago
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.
403forbidden403 2 years ago
@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.
DCW09 1 year ago
why would u subtract 1 from $var the - statement is uselss brah :(? why not set $var = 2? lol? whats the point brah?
pygame 2 years ago
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.
Decahfil3d 2 years ago
I will be awaiting your PM. :)
403forbidden403 2 years ago
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 :)
TheFearlessbro 2 years ago
lol, that can happen. :)
403forbidden403 2 years ago
i want to try to create a programm, when im pressing the ''down'' button, that auto it hits 4+up and 6 times 5!
cWalkerTHPS 2 years ago
Can you tell me how to repeat my whole script if I press a key or buttong or something im stuck with that.
tomkriek 2 years ago
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
...
AlDumbrava 2 years ago