What I want the script to do: When I hold down F on the keyboard I want to spam F as quick as possible and stop it when I let go of F, as to drop items as fast as possible in game, hence no sleep in the script, so to not slow down the drops, however it seems to screw up the sprint button (shift). And even either disable the sprint, or freeze the entire game.
Code: Select all
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1
#IfWinExist GameTitleName (edited out)
F3::
Macro1:
Send, {f Down}
Loop
{
Send, {f Up}
}
Return
#IfWinExist
F8::ExitApp
F12::Pause
[Mod edit: [code][/code] tags added.]