Good Stuff : Warframe with AutoHotKey

17 August 2018 Update 23.4 seems to renamed Warframe Active window from WARFRAME to Warframe thus breaking my script. However I have updated the script on this page to reflect that.

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

  1. AutoHotKey
  2. 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.

1
2
3
4
5
#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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
; Warframe Macro Key by isgoodstuff.com version 1.1
; Edit for patch 23.4 Active Window is now titled Warframe instead of WARFRAME
MsgBox, Warframe macro is ready Tenno, you may start the game now.
 
Pause::
    Suspend On
Return
 
+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
 
#IfWinActive, Warframe
; Runs a routine named DoubleShiftC - sending a parameter key "c" and TimeBetween each c is 20 miliseconds.
+c::DoubleShiftC("c",20)
 
DoubleShiftC(key,TimeVar) 
{
        If (A_ThisHotkey==A_PriorHotkey && A_TimeSincePriorHotkey < TimeVar)
                ; b is my dodge key.
		    Send {b}
        Else
            Send, {c}
        Return
}
 
 
 
#IfWinActive, Warframe
; If I really need my q, it will be ctrl+shift+q
^+q::
    Send, {q}
Return
Warframe AHK (63 downloads)


Comments

comments