PDA

View Full Version : HoNbound - disable ALT+TAB in HoN



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

Anduck
04-16-2011, 09:34 AM
"sorry to break it to you, but this sucks just like your understanding of the game"

SHiRKiT
04-16-2011, 10:26 AM
Good job, I got a Razer keyboard so I don't need this :P ALT+ TAB normally isn't accidental, but that's fine.

colondee
04-17-2011, 11:47 AM
"sorry to break it to you, but this sucks just like your understanding of the game"
Thanks for making it clear for me

colondee
04-17-2011, 11:49 AM
Good job, I got a Razer keyboard so I don't need this :P ALT+ TAB normally isn't accidental, but that's fine.
Thank you, it is mainly for the laptop users I believe.. Even if we could afford Razer, we would have nowhere to put it in our little homes.

Vida
04-17-2011, 12:54 PM
Nice little program :)

SHiRKiT
04-17-2011, 08:36 PM
I would suggest the following thing:

You open your software, then your software launches HoN. When HoN closes, the program shutdown. That way, people may only need to open 1 program and no need to run a program in background while not playing :P

colondee
04-20-2011, 09:04 AM
A thought of brilliance says I. ill get to it as soon as possible, the only thing im worried about is someone changing the default installation path. Maybe ill find a workaround

colondee
04-21-2011, 08:49 AM
I changed the program to make it work the way you suggested :)

SHiRKiT
04-21-2011, 09:06 AM
^^

Now it's a great app :P

Talon`
07-12-2011, 02:24 AM
Does this prevent other programs from forcing themselves on top? my friend complains about how his HP Update thingy comes up while playing hon and gg's him in the middle of teamfights. Will this work to prevent it?

Hoteske
07-12-2011, 09:33 AM
The rapidshare link seems to have expired, can you repost it?

GoldMath
07-12-2011, 11:25 AM
WHAT?!? No moar pr0n when you dead ?

colondee
08-05-2011, 02:54 PM
Stupid rapidshare, remaking the link now
http://laggards.clanhost.cz/honbound.zip

colondee
08-05-2011, 03:01 PM
Does this prevent other programs from forcing themselves on top? my friend complains about how his HP Update thingy comes up while playing hon and gg's him in the middle of teamfights. Will this work to prevent it?

Unfortunatelly there is no way of preventing other programs jumping on top in AHK. I have programmed a version which would autofocus hon each time its shut down to the taskbar, but it did not prevent it, it only re-focused he window immediatelly after switching out, this means that you got a crazy delay and a black screen for a while, which rendered it useless.

This only blocks ALT+TAB and Window key, sorry

However, every app should have an option to disable taking window focus over hon... look into it or tell me the app name