colondee
04-14-2011, 10:48 AM
HoNbound 1.1 (Updated April 21)
This little script made in AutoHotKey prevents you from accidentally switching to other Windows applications when playing HoN. The script is programmed exclusively (will not affect other applications) and is provided in an executable (.exe file). When you open it, it checks for whether hon is already running and switches you into it. If hon is not running, it will start it for you. The program terminates once hon exits. Currently disabled Windows hotkeys are:
ALT+TAB
WINDOWS button (both left and right)
After downloading, place the file to the HoN installation directory to make it work
You can still exit HoN via CTRL+ESC for example
If you want more hotkeys to be disabled / reprogrammed for HoN, you can suggest it in a reply or PM me (or write your own script after all)
(https://rapidshare.com/files/458499415/honbound.zip)DOWNLOAD HERE (v 1.1 from April 21) (http://laggards.clanhost.cz/honbound.zip)
1.1 changelog:
-Replaced the icon with a scaling one
-Turned the script into a launcher of hon (to prevent uncecessary memory exhaustion). It will terminate when hon quits. Will never run a second instance of hon.
to fix:
-May work only with D3D version of hon (not tested)
Source code:
; disable switching in HoN
SetTitleMatchMode, RegEx
IfNotExist hon.exe
{
MsGBox Please move the HoNbound file to HoN installation directory, usually C:\Program Files\Heroes of Newerth
ExitApp
}
IfWinExist Heroes of Newerth ahk_class K2*
{
winactivate
; MsgBox found
WinWait Heroes of Newerth ahk_class K2*
WinWaitClose
; MsgBox closed
ExitApp
}
else
{
run hon.exe
WinWait Heroes of Newerth ahk_class K2*
WinWaitClose
; MsgBox closed
ExitApp
}
#ifwinactive Heroes of Newerth ahk_class K2*
!Tab::return
Lwin::return
Rwin::return
#ifwinactive
; _Direct3D
This little script made in AutoHotKey prevents you from accidentally switching to other Windows applications when playing HoN. The script is programmed exclusively (will not affect other applications) and is provided in an executable (.exe file). When you open it, it checks for whether hon is already running and switches you into it. If hon is not running, it will start it for you. The program terminates once hon exits. Currently disabled Windows hotkeys are:
ALT+TAB
WINDOWS button (both left and right)
After downloading, place the file to the HoN installation directory to make it work
You can still exit HoN via CTRL+ESC for example
If you want more hotkeys to be disabled / reprogrammed for HoN, you can suggest it in a reply or PM me (or write your own script after all)
(https://rapidshare.com/files/458499415/honbound.zip)DOWNLOAD HERE (v 1.1 from April 21) (http://laggards.clanhost.cz/honbound.zip)
1.1 changelog:
-Replaced the icon with a scaling one
-Turned the script into a launcher of hon (to prevent uncecessary memory exhaustion). It will terminate when hon quits. Will never run a second instance of hon.
to fix:
-May work only with D3D version of hon (not tested)
Source code:
; disable switching in HoN
SetTitleMatchMode, RegEx
IfNotExist hon.exe
{
MsGBox Please move the HoNbound file to HoN installation directory, usually C:\Program Files\Heroes of Newerth
ExitApp
}
IfWinExist Heroes of Newerth ahk_class K2*
{
winactivate
; MsgBox found
WinWait Heroes of Newerth ahk_class K2*
WinWaitClose
; MsgBox closed
ExitApp
}
else
{
run hon.exe
WinWait Heroes of Newerth ahk_class K2*
WinWaitClose
; MsgBox closed
ExitApp
}
#ifwinactive Heroes of Newerth ahk_class K2*
!Tab::return
Lwin::return
Rwin::return
#ifwinactive
; _Direct3D