local $from = "0"
local $to = "10"
local $once = "1"
local $count = "0"
local $end = "Buhahah i have 10 "
While 1
If $count = $to Then
MsgBox(16,"Otland Counter",$end)
ExitLoop
Exit
Else
If $count = $from Then
$count = $once + 1
TrayTip("Otland Counter", $count,0,2)
Sleep(1000)
Else
$from = $from + 1
EndIf
EndIf
WEnd
Optimized:
local $id = "0"
While 1
If $id = 10 Then
MsgBox(16,"Otland Counter","Buhahah i have 10 ")
ExitLoop
Exit
Else
TrayTip("Otland Counter", $id,0,2)
$id = $id +1
Sleep(1000)
EndIf
WEnd