Legend of Grimrock – Sword of Nex solution as Autohotkey script

Hi guys, in this post you will find a way how to solve the Sword of Nex Grimrock puzzle by externally emulating necessary keyboards by handy utility SW called AutoHotKey.

On my rather sluggish machine it was impossible for me to solve the time puzzle at level 6, leading to the Sword of Nex. I wanted it mainly because I wanted to try Fighters challenge and you need this sword for the door to open.

Follow these steps

I realized that getting the sword is 100x more difficult on my machine than fighting the Fighters challenge. I could not make it by pressing the keys and I did not find any cheat, so I created AutoHotKey script (it presses the keys for you) which I am sharing with you in this post:

  1. Download and install AutoHotKey
  2. Create text file with .ahk extension – f.e. sword.ahk and copy paste the commands from this script to it (or you can download and extract it from this ZIP file)
  3. Run Grimrock and stand in front of the first button in a room with hidden Sword of Nex
  4. Double click the script sword.ahk- it will locate Grimrock window and execute
    1. Please note that I was fiddling a lot with the delays between the keystrokes, may be you will need to do the same. If it is too high, the trap closes before you reach the button, if it is too small (it means fast), some key strokes are ignored by the game.

Text of the sword.ahk script

delayMouse=100
delay=500
WinWait, Legend of Grimrock,
IfWinNotActive, Legend of Grimrock, , WinActivate, Legend of Grimrock,
WinWaitActive, Legend of Grimrock,
MouseClick, left, 519, 381
Sleep, %delayMouse%
SendInput {Raw}q
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}d
Sleep, %delay%
SendInput {Raw}d
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}w
; ======= FIRST BUTTON
Sleep, 750
MouseClick, left, 519, 381
SendInput {Raw}a
Sleep, %delay%
SendInput {Raw}a
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}e
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}e
; ======= SECOND BUTTON
MouseClick, left, 519, 381
Sleep, %delayMouse%
MouseClick, left, 519, 381
Sleep, %delay%
MouseClick, left, 519, 381
Sleep, %delayMouse%
SendInput {Raw}a
Sleep, %delay%
SendInput {Raw}w
Sleep, %delay%
SendInput {Raw}e

; ======= THIRD BUTTON
Sleep, 580
MouseClick, left, 519, 381

delay=380
SendInput {Raw}s
Sleep, %delay%
SendInput {Raw}e
Sleep, %delay%
SendInput {Raw}e
Sleep, %delay%
SendInput {Raw}d
Sleep, %delay%
SendInput {Raw}w
delay=380
Sleep, %delay%
delay=400
Sleep, 40
SendInput {Raw}d
Sleep, %delay%
; V ROHU
Sleep, 40
SendInput {Raw}d
Sleep, %delay%

;====================

SendInput {Raw}d

delay=575
;================
Sleep, %delay%
SendInput {Raw}s
Sleep, %delay%
SendInput {Raw}s
Sleep, %delay%
SendInput {Raw}s
Sleep, %delay%

;=================
SendInput {Raw}a
Sleep, %delay%
SendInput {Raw}a

;================
Sleep, %delay%
SendInput {Raw}s
Sleep, %delay%
SendInput {Raw}a
Sleep, %delay%
SendInput {Raw}a
Sleep, 700
MouseClick, left, 519, 381
SendInput {Raw}s

 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

1 Comment so far

  1. Brandon on Březen 25th, 2013

    THANK YOU SOOO MUCH.