Back few weeks ago, I decided to write an auto hotkey script to facilitate my Warframe needs. For those whom wanna know more about this awesome game – you may find out here. For those already playing this game on PC, might benefit from this post.
Before we start, I would like a brief introduction on the macro. A macro is an automated input sequence that imitates keystrokes or mouse actions. We normally use a macro to automate a series of complicated sets of keyboard or mouse actions. This will in turn optimize our game play time.
The macro tool that I use in Windows to play Warframe called AutoHotKey. It’s a freeware downloadable here. Problem with AutoHotKey is that; this is a script based tool which means, you have to get your hands a bit dirty to script the key binding yourself to perform what you want. Worry not, I’m sharing this tutorial post and my script in playing Warframe here too.
Pre-requisites
- AutoHotKey
- Visual Studio Code (A light weight free editor) ; You can use NotePad as well [Just that this one they have syntax/spell checker(makes sure you type your codes correctly) plugin for AutoHotKey]
For example, if you want bind the key Q to do roll and shoot. May look like this. (Assuming you bind roll key as Ctrl). Script goes like this.
#IfWinActive, WARFRAME
q::
Send, {ctrl}
Send, {LButton}
Return
In the script above line 1 – create an Active Window Check. Which means, key binding will only work if you are within Warframe window. (which means Warframe is running and you are already in game. It will not work if you quit the game or pop out back to Windows environment. This will save you a lot of frustration later on; when you need to work on Windows after playing the game.)
Line 2, we start binding key “q” to execute pressing of the key Ctrl (assuming you bind this key for rolling), immediately after that fires a left mouse button which trigger a fire weapon button. All binding ends with Return. After writing this sets of script, you are then required to save this text file into an ahk file. (Or just save it as txt, later rename it to ahk). Doing so, you then execute it just by double clicking that ahk file. (If you have AutoHotkey Installed) it will run the script.
Back to Warframe, the most tedious sets of keyboard move we always encounter when playing Warframe for me is always been the Spinning Melee Attack and the Bullet Jump. I figured, wouldn’t it be cool, if I could map these two tedious sets of move into two keys (for me I choose, q and Left Alt).
Below are the script I use for Warframe.
; Warframe Macro Key by isgoodstuff.com
MsgBox, Warframe macro is ready Tenno, you may start the game now.
; Pause key to suspend the AutoHotKey (if you wanna chat using Q)
Pause::
Suspend On
Return
; Shift Pause key to resume the AutoHotKey
+Pause::
Suspend Off
Return
#IfWinActive, WARFRAME
LAlt::
Send, {Shift Down}
Send, {c Down}
Send, {e Down}
sleep 100
send {e Up}
Sleep, 150
Send, {c Up}
Send, {Shift Up}
Return
#IfWinActive, WARFRAME
q::
Send, {c}
sleep 100
Send, {Space}
Return
Warframe AHK (24 downloads)