Code:
//-----------------------------------------------------------
// FTL Setup
//-----------------------------------------------------------
<Template SendMasterAndSlave>
<SendFocusWin>
<Key %1%>
<Sendlabel %4%> //Remove this when activating the other commented lines
// <If MouseIsOverWindowRect WoW6 43 173 235 411>
// <Sendlabel %4%>
<SaveMousePos>
<ClickMouse NoClick NoRestore>
<Key %3% %2%>
<RestoreMousePos>
// <Else>
// <Sendlabel %4%>
// <Key %3% %2%>
<EndTemplate>
<Template SendLeaderless>
<Else If ActiveWinIs %4%>
<ApplyTemplate SendMasterAndSlave "%1%" "%2%" "%3%" "%5%">
<EndTemplate>
<Template FTL>
<Hotkey %1%>
<If FTL_Toggle is 0>
<Sendlabel w1,w2,w3,w4,w5,w6,w7,w8,w9,w10>
<Key %1%>
<ApplyTemplate SendLeaderless "%1%" "%2%" "ralt lctrl" WoW06 "w1,w2,w3,w4,w5,w7,w8,w9,w10">
<ApplyTemplate SendLeaderless "%1%" "%2%" "rshift rctrl lctrl" WoW07 "w1,w2,w3,w4,w5,w6,w8,w9,w10">
<ApplyTemplate SendLeaderless "%1%" "%2%" "rshift rctrl" WoW08 "w1,w2,w3,w4,w5,w6,w7,w9,w10">
<ApplyTemplate SendLeaderless "%1%" "%2%" "rshift lctrl" WoW09 "w1,w2,w3,w4,w5,w6,w7,w8,w10">
<ApplyTemplate SendLeaderless "%1%" "%2%" "rctrl lctrl" WoW10 "w1,w2,w3,w4,w5,w6,w7,w8,w9">
<EndTemplate>
<ApplyTemplate FTL "1" "I">
<ApplyTemplate FTL "2" "K">
<ApplyTemplate FTL "3" "Plus">
<ApplyTemplate FTL "4" "Minus">
<ApplyTemplate FTL "5" "P">
<ApplyTemplate FTL "6" "Period">
<ApplyTemplate FTL "7" "Comma">
<ApplyTemplate FTL "8" "U">
<ApplyTemplate FTL "F" "Divide">
<ApplyTemplate FTL "G" "Multiply">
<ApplyTemplate FTL "R" "NumpadMinus">
<ApplyTemplate FTL "T" "NumpadPlus">
<ApplyTemplate FTL "V" "Oem7">
<ApplyTemplate FTL "Oem3" "O">
The bits commented out are what I would logically think is the correct way of putting the If statement in, however when I use them and come to compile it I get errors like "Else If can only follow If".
Connect With Us