Skip to content

Instantly share code, notes, and snippets.

@bronze
Last active June 5, 2021 01:14
Show Gist options
  • Save bronze/129460a54eb9324c99a47960f5389d90 to your computer and use it in GitHub Desktop.
Save bronze/129460a54eb9324c99a47960f5389d90 to your computer and use it in GitHub Desktop.
Warframe Autohotkey
; Modifiers: [+ = Shift] [^ = Ctrl] [# = Win] [! = Alt] [* = Ignores modifiers] [~ = Also uses original function] [$ = Forces hook, preventing hotkey from triggering itself] More info here: https://www.autohotkey.com/docs/KeyList.htm
; All time values listed are in ms(MilliSeconds), which are 1/1000 of a second. 1000/delay = activationsPerSecond. I.e: 50ms delay -> 1000/50 = 20 per sec
; Time values are typically rounded up to a multiple of 10ms by the Windows time-keeping system. So there's no point to Timer/Sleep values that aren't multiples of 10. Higher precision may be achieved via Loop+DllCall, but is rarely relevant and certainly doesn't matter for this script
#NoEnv
; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input
;Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%
;Ensures a consistent starting directory.
;The rest of these are reliability tweaks
#MaxThreadsPerHotkey 2
#InstallKeybdHook
#UseHook On
#IfWinActive, Warframe
;only works when Warframe is the active window
;Zenurik
LControl & Q::
{
Send, {5}
Sleep 250
Send, {v Down}
Sleep 150
Send, {Space}
Sleep 150
Send, {v Up}
Sleep 250
Send, {5}
}
return
F1::Auto:=!Auto
;F1 toggles if 't' is true or false, false by default
*$LButton Up:: Send {LButton U}
~$LButton::
if (GetKeyState("CapsLock","t")=0) and (Auto = true)
{
While GetKeyState("LButton","p")
{
random, sleepDelay, 150, 250
; The delay between clicks, in milliseconds. Recommend not to go under 50.
Send {Click}
;Raw click sent cuz compatibility or reliability or something
Sleep, %sleepDelay%
}
}
else {
While GetKeyState("LButton","p")
{
Send, {LButton D}
}
}
KeyWait, LButton, D
return
+LButton::
While GetKeyState("LButton","p")
{
KeyWait, Shift, T2
random, sleepDelay, 85, 150
Send, {WheelUp}
Sleep %sleepDelay%
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment