Quote Originally Posted by Freddie',index.php?page=Thread&postID=154692#post1 54692]
[quote='Rampage',index.php?page=Thread&postID=15467 5#post154675]I have managed to get it to work.Last thing is that it seems that enabling hotkeys(example number 2) seems to disable number 2 on all other applications.Is there a way to lock hotkeys to WOW only and disable them when out of wow(without using a hotkey to disable HKN)?[/quote]
I'm enjoying watching other people answer, but maybe I better help with this question. It's explained in the second paragraph of the instructions for If-Else-EndIf:

[url='http://hotkeynet.com/p/if-else-endif.html
If-Else-Endif in HotkeyNet[/url]

You need to add another Else to your hotkey to cover the case when neither WoW window is active:

<Hotkey 2>
<If ActiveWinIs wow1> <main1 %trigger%><assist1 2>
<Else If ActiveWinIs wow2> <Main2 %trigger%><assist2 2>
<Else><SendFocusWin><Key %trigger%>

This is necessary because when you define 2 as a hotkey, you're deciding that 2 is no longer the 2 key. It's now the trigger of a hotkey and it only performs whatever actions you specify in your script. You didn't define any actions for it when neither window is active so in those cases, the key doesn't do anything.

If you want 2 to preserve its normal function in addition to whatever you define in the hotkey, you always have that option by including <PassThrough> in the hotkey.
Excellent.Did what i wanted it to do.

Last but not least i have ENTER set to disable HKN's hotkeys.It gets real irritating when i alt tab to talk on msn.Any advice for this?

Code:
<hotkey OEM2 , ENTER , F12>
	<PassThrough>
	<sendpc local>
	<ToggleHotkeys>