Code:
While True
Send("f")
Sleep(100)
WEnd
That in a vacuum is all you need.
Sleep is that it doesnt spam "ridiculous" amounts of f, only does send it once in 100ms (1/10 second).
Code:
HotKeySet("{End}", "_exit")
Func _exit()
Exit 1
EndFunc
While True
Send("f")
Sleep(100)
WEnd
Slighty better, has a button to stop the script, here the "end" key, without its annoying.
Code:
HotKeySet("{End}", "_exit")
Func _exit()
Exit 1
EndFunc
Global $title = "Guild Wars 2"
Global $hwnd = WinGetHandle($title)
While True
ControlSend($hwnd, "", "", "f")
Sleep(100)
WEnd
Better again, sends "f" only to the guildwars window and not outside of it.
Code:
HotKeySet("{End}", "_exit")
Func _exit()
Exit 1
EndFunc
HotKeySet("{PAUSE}", "_pause")
Global $isPaused = false
Func _pause()
$isPaused = NOT $isPaused
if ($isPaused == true) Then
ToolTip("paused",0,0) ;display paused tooltip
While $isPaused == true
;paused loop
WEnd
ToolTip("") ;remove tooltip if no longer paused
EndIf
EndFunc
Global $title = "Guild Wars 2"
Global $hwnd = WinGetHandle($title)
if (NOT $hwnd) Then
MsgBox("", "Error", "No window found with title " & $title)
Exit 2
EndIf
While True
ControlSend($hwnd, "", "", "f")
Sleep(100)
WEnd
Here we also have a paused function with "Paused" on your keyboard.
Overall should do anything you want and its quite easy and quick to write.
Just invest a second in AutoIT and stuff like this is quickly done.
AutoHotkey and other macro tools might do the trick aswell, simply choose what you like, its more or less the same.