Buff timer - autohotkey script
Posted: Sat May 13, 2017 12:59 pm
So I've decided to post separate topic since it might help more people:
How to get small window with countdown timer for your buffs/rage/etc
1: Install Autohotkey (google it)
2: Create text file then change its extension to ".ahk" like "timer.ahk"
3: Edit this code and put it inside a file using notepad: https://pastebin.com/fKLGMPXB
You will need to edit:
So for example if you need rage timer and use hotkey of "2" for it change code to:
For time amount edit:
To change timer position:
Also to make it work you need to play NwN2 borderless. For that set display to windowed in NwN options then use extended client and create autocmds.txt file in your Documents/NwN2 folder with this code inside:
You can now run program as an ahk script or compile it to exe (save file, right click and select "Compile Script")
Always run it before running NwN2. You can also create bat file to make 1 shortcut run 2 programs at the same time. Here is how to do it: http://www.makeuseof.com/tag/launch-mul ... atch-file/
When you exit NwN2 timer window will still be visible on screen - to close it simply press "\"
Also you can change that hotkey editing line:
For now it supports one simple timer but if more is needed I can tinker around a bit and perhaps add new functions.
How to get small window with countdown timer for your buffs/rage/etc
1: Install Autohotkey (google it)
2: Create text file then change its extension to ".ahk" like "timer.ahk"
3: Edit this code and put it inside a file using notepad: https://pastebin.com/fKLGMPXB
You will need to edit:
Code: Select all
$8:: ;hotkey to activate buff
Send, {8 down}
Sleep 10
Send, {8 up}Code: Select all
$2:: ;hotkey to activate buff
Send, {2 down}
Sleep 10
Send, {2 up}Code: Select all
timerCount := 10 ; Change meCode: Select all
WinMove, 200, 5 ; Change these values to move the windowCode: Select all
/fswindow
/mpredictYou can now run program as an ahk script or compile it to exe (save file, right click and select "Compile Script")
Always run it before running NwN2. You can also create bat file to make 1 shortcut run 2 programs at the same time. Here is how to do it: http://www.makeuseof.com/tag/launch-mul ... atch-file/
When you exit NwN2 timer window will still be visible on screen - to close it simply press "\"
Also you can change that hotkey editing line:
Code: Select all
\::
ExitApp