Doesnt work, dont understand why, spent more than 5 hours trying to get this working, i need help. Decided to not use a For loop as that didnt work either, ive narrowed the problem down to the input, the $sAmount variable just doesnt work, but any other variable does work at the bottom when needs to be equal to $count.
#include <MsgBoxConstants.au3>
#include <AutoItConstants.au3>
Func Inputter()
Local $sAmount = (InputBox("Test box", "How many times shall I run?", "0", "", -1, -1, 0, 0))
$sAmount=Number($sAmount)
EndFunc
Func Opera()
MouseMove(722,407)
MouseClick($MOUSE_CLICK_LEFT)
Sleep(100)
MouseMove(704,403)
MouseClick($MOUSE_CLICK_LEFT)
Sleep(100)
MouseMove(1181,281)
MouseClick($MOUSE_CLICK_LEFT)
MouseMove(838,525)
MouseClick($MOUSE_CLICK_LEFT)
Sleep(1000)
MouseMove(22,52)
MouseClick($MOUSE_CLICK_LEFT)
EndFunc
;Local $count=0
Call(Inputter())
;Local $Timeout = 10
;MsgBox($MB_SYSTEMMODAL,"ETC","This will timeout in 10 seconds.",10)
MouseMove(571,836)
MouseClick($MOUSE_CLICK_LEFT)
;For $i = 1 To $Amount Step 1
; Call(Opera())
;Next
Do
Call(Opera())
$count = $count+1
Until $count>$sAmount