Hey Freddie / Olipcs, I'm afraid I must come asking for help once again .

I'm trying to set up both a FTL setup (with toggle hotkey) and mouseover healing from main to slave healer.

I have it all working except for one part, which is only transmit the mouselocation if within a certain area.
I know the command that does it, but I can't seem to find the correct way to put it in an IF statement without getting errors, because I'm already using If for the toggle FTL key.

Here is the script I am using (which works, note some of the lines are commented out)

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".
I'm basically having trouble using more than one If, even though they shouldn't be nested within each other.
I've tried putting EndIf in appropriate places, but can't seem to get it right. I don't think I entirely understand how the script parses.

Any help would be appreciated!