Beep Command - Beep (*,*)
Example1:
1000 is the frequentieBeep (1000,3000)
3000 is 3 seconds, how long the beep is on.
Example2:
MsgBox (0,"Beep”,”Do you want to hear a beep?") Beep (1000,3000)
1000 is the frequentieBeep (1000,3000)
MsgBox (0,"Beep”,”Do you want to hear a beep?") Beep (1000,3000)
While 1Alright, The moment you typed: While 1, the loop starts, if you don’t make a function to exit the loop, You can only exit the program to right click on the right bottom at the autoit icon, and exit script. So first you will get a MsgBox with: This is a Loop, then it will pause 1 second, then you get a choice, if you click Yes you will exit the loop.
MsgBox (0,"Loop","This is a Loop")
Sleep (1000)
$2 = MsgBox (4,"Exit","Would you like to exit the loop?")
If $2 = 6 Then
ExitLoop
EndIf
If $2 = 7 Then
MsgBox (0,"Ok","Ok")
EndIf
Wend
MsgBox (0, "Exit","You exited the loop")
For $i = 5 to 1 Step -1Alright, you wil get 5 times the same massage, and then the script will continue and you will get a other massage. If you change 5 to 10 for example, you will get that msgbox 10 times. So when the script reaches Next it will continue.
MsgBox (0, "CountDown", $i)
Next
MsgBox (0, "No Loop","You will get this massage 1 time and then I will exit")
Sleep(1000)It will sleep (pause) 1000 miliseconds now (that is one second)
MsgBox(0,"Hi","This is my MsgBox,the next one will apear 5 secs after closing that one!")
Sleep(5000)
MsgBox(flag,"Boro","Here i am!")
MsgBox(4,"Answer fast!","Is it OK?",3) ;