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 ...

6 Comments so far

  1. Brandon on Březen 25th, 2013

    THANK YOU SOOO MUCH.

  2. Logomancer on Prosinec 23rd, 2014

    You are a lifesaver. I had been enjoying the game, but I just don’t have the reflexes to complete that puzzle. So frustrating. The developers should have considered when they were creating this game that an “old-school” game might have older players without speedy game-platform fingers. That’s why I play RPGs. Usually they let you think and plan; their not about quick fingers. Hopefully there won’t be too many more of these “puzzles” in Grimrock, but you got me through this one. I couldn’t. Thank you so much.

  3. Magnus on Březen 20th, 2015

    Thanks for this! I actually found this while trying to make the same kind of script, you saved me the work!

  4. hack hay day on Květen 12th, 2015

    hack hay day…

    Jetyho blog » Legend of Grimrock – Sword of Nex solution as Autohotkey script…

  5. Okenní Parapety VnitřNí on Červen 30th, 2015

    Okenní Parapety VnitřNí…

    Jetyho blog » Legend of Grimrock – Sword of Nex solution as Autohotkey script…

  6. venkovní rolety cena on Červenec 7th, 2015

    venkovní rolety cena…

    Jetyho blog » Legend of Grimrock – Sword of Nex solution as Autohotkey script…