Part II

Code:
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<KeyList MyList  A-Y, 0-9, Plus, Enter, Oem1, Oem3, Oem4, Oem5, Oem6,Oem8, Oem102, Space, Comma, Period, F1-F12, Backspace, MediaPlayPause, MediaStop, MediaPrevTrack, MediaNextTrack,  NumLock, Divide, NumpadEnter, Decimal, Numpad0-Numpad9 except A, Z, E, Q, S, D, W ,M ,G ,C ,P ,N ,I ,U ,K>
//
// Minus NOT present on french Keyboard
//
// Oem1 $£
// Oem3 ù%
// Oem4 )° between 0 and =
// Oem5 *µ
// Oem6 ^¨
// Oem8 !§
// Oem102 <>
//
// Keys used within HKN, ARE NOT PASSED
//
// Pause          NOT passed-through = Toggle HotKey active or not
// PrintScreen  NOT passed-through = PIP
// Multiply     (numpad *) NOT Passed-through = formation
// BrowserBack     NOT Passed-through = BROADCAST MOUSE CLICKS
// Oem7 ²          (little2 above Tab) NOT passed-Through Used for Toogle casting
// BrowserForward NOT passed-through = Internal processing
//
// Keys left active for WOW for all characters
//
// NumLock Toggle AutoRun
// numpad Divide Toggle Run Walk
//
// Keys left active for WOW on character in active window
//
// Oem2 :/         NOT passed-through /=chat
// VolumeUp     NOT passed-through = Master Volume Up
// Volume Down     NOT passed-through = Master Volume Down
// Home         NOT passed-through = Previous View
// End             NOT passed-through = Next View
// PgUp         NOT passed-through = previous View
// NumpadMinus     NOT passed-through = MiniMap Zoom in
// NumpadPlus     NOT passed-through = MiniMap Zoom out
// Escape         NOT passed-through = GameMenu
// Tab             NOT passed-through = NextTarget
// M             NOT passed-through = Map / Minimap
// G             NOT passed-through = Target Last Hostile
// C             NOT passed-through = Toggle Character Pane
// P             NOT passed-through = Toggle SpellBook
// N             NOT passed-through =  Toggle Talent Pane
// I             NOT passed-through = Toggle Pet Pane / Pet Book
// U             NOT passed-through = Toggle Reputation Pane
// K             NOT passed-through =  Toggle Skill Pane


<Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList>
       <SendLabel w1, w2>
       <Key %Trigger%>


//--------------------------------------------------    
// Work around for if-endif not available in command
// an non-existing key will be triggered with DoHotKey
// The issue, HotKeyNet starts with the hotkeys state
// from when last invoked, so have to test state to 
// in the end less needed because problem with ToggleHotKey
//--------------------------------------------------    
<Hotkey BrowserForward>
    <If HotkeysAreOff>
      <SetButtonColors ON 0x00FF00 0x0F0F0F>
      <SetButtonText ON HKN>
    <Else>
      <SetButtonColors ON 0x0F0F0F 0x00FF00 >
      <SetButtonText ON off>
     <endif>
    <TargetWin HKN>      
     <AlwaysOnTop on>
     <UpdateWin>

    
//---------------------------------------------
// Visual indicator because no scroll lock led
// Display green HKN button if HotkeyNet is forwarding keys
// Visual indicator of next toon to fire if toggle cast is active
// at boot up, state is displayed unknown "???"
//----------------------------------------------    
<Command AutoExec>
    <CreatePanel HKN 10 950 45 55>
    <TargetWin HKN>
    <AlwaysOnTop on>
    <CreateColoredButton ON 0 0 30 30 0xff0f0f 0x000000 ???>
    <AddButtonToPanel ON HKN>    
// <DoHotkey Hotkey BrowserForward> 
// works OK here but then get de-sync with togglekey
// work-around, use ??? to signal "HKN state unknown 
    <CreatePanel ACT 65 950 45 55>
    <TargetWin ACT>
    <HideWin>
    <AlwaysOnTop ON>
    <CreateColoredButton TOGGLE 0 0 30 30 0x00FF00 0x0F0F0F " 1 ">
    <AddButtonToPanel TOGGLE ACT>
    
<hotkey pause>
    <sendpc local>
      <ToggleHotkeys>
      <DoHotkey Hotkey BrowserForward> 


//-----------------------------------------------------------
// General spell Toggle. HOLD DOWN OEM7 
// (ON French KEYBOARDS, THAT'S THE little 2 KEY IN UPPPER LEFT CORNER) 
// WHEN YOU WANT TO CAST alternatively 
// fist sequence start with window2, then window1...
// should be useful for team of equal ability, like 5*warlock
// to conserve mana
//-----------------------------------------------------------
<UseKeyAsModifier Oem7>
<Hotkey Oem7 0-9, Oem4, Plus, F1-F12>
   <Toggle>
      <SendLabel w2>
        <Key %TriggerMainKey%> 
        <SetButtonText TOGGLE " 1 ">
        <TargetWin ACT>
            <AlwaysOnTop on>
        <ShowWin>
    <Toggle>    
      <SendLabel w1>
        <Key %TriggerMainKey%> 
        <SetButtonText TOGGLE " 2 ">
        <TargetWin ACT>
            <AlwaysOnTop on>
        <ShowWin>

//-----------------------------------------------------------
// General Toggle spell reset . HOLD DOWN OEM7 and Backspace
// (ON French KEYBOARDS, THAT'S THE little 2 KEY IN UPPPER LEFT CORNER) 
// WHEN YOU WANT TO CAST toggle starting at toon 2 again 
//-----------------------------------------------------------
<Hotkey Oem7 Backspace>
   <SendPC local>
      <ResetToggles>
      <TargetWin ACT>
        <HideWin>
    
//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
// ADD MORE KEYS IF YOU WANT.
//-----------------------------------------------------------
<MovementHotkey  up, down, left, right>
    <SendLabel w1, w2>
    <Key %Trigger%>

//-----------------------------------------------------------
// BROADCAST MOUSE CLICKS. HOLD DOWN BrowserBack 
// (ON Multimedia KEYBOARDS,THAT'S THE little right arrow key ) 
// WHEN YOU WANT TO BROADCAST.
//-----------------------------------------------------------
<UseKeyAsModifier BrowserBack>

<Hotkey  BrowserBack shift LButton, MButton, RButton, Button4, Button5>
    <TargetWin MOUSE>
    <ShowWin>
   <SendLabel w1, w2>
    <KeyDown shift>
    <ClickMouse  %TriggerMainKey%>
    <KeyUp shift>
    <TargetWin Mouse>
    <HideWin>

    
//----------------------------------------------------------------
// DEFINE A MOVEMENT HOTKEY FOR FORMATION
// Press NumPad Multiply to see toons spred apart
//----------------------------------------------------------------

<MovementHotkey Multiply>
   <If ActiveWinIs wow1>
      <SendLabel w1> <Key Left>
      <SendLabel w2> <Key Right>
   <Else If ActiveWinIs wow2>
      <SendLabel w1> <Key Right>
      <SendLabel w2> <Key Left>