Hello there.
So, has anyone been able to write an AHK script that will press "F" every 30 seconds or so, with a toggle on/off on, say, "F10" ?
Cheers.
Hello there.
So, has anyone been able to write an AHK script that will press "F" every 30 seconds or so, with a toggle on/off on, say, "F10" ?
Cheers.
old autoit script from days past:
Code:#Include <misc.au3> HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") $WindowTitle = "window_title_here" $sleeptime = 60000 While 1 If WinExists($WindowTitle) Then ControlSend ($WindowTitle, "", "", "{f}", 0) EndIf Sleep($sleeptime) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('"Script is "Paused"',0,0) WEnd ToolTip("wat.exe") EndFunc Func Terminate() Exit 0 EndFunc
wat
Hey,
Thanks for this.
I have an error while running this, it says "line text : Endif" "This line does not contain a recognised action".
Any clue ?
SetTimer HitF, 1
F1::Toggle := !Toggle
HitF:
If (!Toggle)
Return
send f
sleep 30000
don`t use that without random sleeps.
and even with and only clicking f is too suspicious.
autohotkey.
rename autohotkey.exe to something else
the first sleep is the time before it starts, so doesn`t need to be random.
the next the sleep between key strokes.
i`m sure you want it to work in background mode also with game window closed, but that i don`t know that easily.
guess i could if i set my mind to it and read some other peoples codes.
which i`m not going to do (lot on my mind already)
you can change times ofcourse.
but just a char in an open world only pressing F , can`t gaurentee your safety on it ;p
sleep 8000
label1:
{
SendEvent,{f}
Random, randSleep, 27000, 35000
Sleep, randSleep
}
Goto, label1
^p::Pause ; control+p=pause
return
Last edited by patatjegroot; 10-09-2014 at 05:23 PM.