I don't know but is english allowed here? lol anyways, i've been on an autoit script using theforsaken's tutorial but i'm stuck at a part, i want to add another place for spamming another key but here only one key is working...and also i can't figure out how to make the "stop" button work.
ok one more thing, for the buff, how can i have a hotkey which is pressed after 60 seconds so that includes timer but i can't figure out how to call it.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;,
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Bot is "Paused". Press Pause again to resume',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
Func ShowMessage()
MsgBox(4096,"","Bot is paused. Press Stop to exit")
EndFunc
Yes i think so if you call it with the right values
Quote:
how can i have a hotkey which is pressed after 60 seconds so that includes timer but i can't figure out how to call it.
If you want to send this Key every 60 seconds then you can try it with
Code:
AdlibRegister("_Send2", 60000)
Func _Send2()
Send("What you want to send")
endfunc
For the pause function you can stop all functions
Code:
Global $pausebutton=0
.......
Case $pausebutton
if $pausestartet=1 then
$pausestartet=0
ToolTip("")
AdlibRegister("_Send1",$sleep1)
AdlibRegister("_Send2",60000)
else
$pausestartet=1
ToolTip('Bot is "Paused". Press Pause again to resume',0,0)
AdlibUnRegister("_Send1")
AdlibUnRegister("_Send2")
endif
because this is an endless loop
Code:
While $Paused
sleep(100)
ToolTip('Bot is "Paused". Press Pause again to resume',0,0)
WEnd
ok here's the whole script but i can't get the 60 seconds timer to work...please suggest me where i can have it and how can it work? Also if i input F2 key in the boxes, it doesn't work but if i put F and then 2 together, it just spams F key...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;,
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Bot is "Paused". Press Pause again to resume',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
Func ShowMessage()
MsgBox(4096,"","Bot is paused. Press Stop to exit")
EndFunc