3. Window-Switching (PiP)
To get the PiP functionality as possible in keyclone, you can add the following code, which uses F1 - F7 to define which Window to switch:
Code:
//PIP Toggeln
<Hotkey F1>
<If WinExists Coventar><ResizeAndPositionRaiding Coltimar Coventar Faxindaxis Marlun Jermayne Teetoe Jackea>
<Else><ResizeAndPosition5Boxing Coltimar Marlun Jermayne Teetoe Jackea>
<Hotkey F2>
<If WinExists Coventar><ResizeAndPositionRaiding Coventar Coltimar Faxindaxis Marlun Jermayne Teetoe Jackea>
<Else><ResizeAndPosition5Boxing Marlun Coltimar Jermayne Teetoe Jackea>
<Hotkey F3>
<If WinExists Coventar><ResizeAndPositionRaiding Faxindaxis Coventar Coltimar Marlun Jermayne Teetoe Jackea>
<Else><ResizeAndPosition5Boxing Jermayne Marlun Coltimar Teetoe Jackea>
<Hotkey F4>
<If WinExists Coventar><ResizeAndPositionRaiding Marlun Coventar Faxindaxis Coltimar Jermayne Teetoe Jackea>
<Else><ResizeAndPosition5Boxing Teetoe Marlun Jermayne Coltimar Jackea>
<Hotkey F5>
<If WinExists Coventar><ResizeAndPositionRaiding Jermayne Coventar Faxindaxis Marlun Coltimar Teetoe Jackea>
<Else><ResizeAndPosition5Boxing Jackea Marlun Jermayne Teetoe Coltimar>
<Hotkey F6>
<If WinExists Coventar><ResizeAndPositionRaiding Teetoe Coventar Faxindaxis Marlun Jermayne Coltimar Jackea>
<Hotkey F7>
<If WinExists Coventar><ResizeAndPositionRaiding Jackea Coventar Faxindaxis Marlun Jermayne Teetoe Coltimar>
This basically executes the appropriate <ResizeAndPosition..>-command, depending which key (F1 - F7) was pressed.
To distinguish if you are raiding or 5boxing its checked if a window named 'Covenat' exists.
4. Broadcasting keys
The next thing to achive is, that normal keys are broadcasted to all windows.
This can be done by the following code:
Code:
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES.
//-----------------------------------------------------------
<Label col Local SendWinM Coltimar>
<Label mar Local SendWinM Marlun>
<Label jer Local SendWinM Jermayne>
<Label tee Local SendWinM Teetoe>
<Label jac Local SendWinM Jackea>
<Label cov Local SendWinM Coventar>
<Label fax Local SendWinM Faxindaxis>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO ALL WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<KeyList MyList A-Z, 3-9, Enter, Tab, Oem4, Space, Comma, Oem6 except W, A, S, D, Q, E, L>
<Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList>
<If WinExists Coventar>
<SendLabel col, mar, jer, tee, jac, cov, fax>
<Key %Trigger%>
<Else>
<SendLabel col, mar, jer, tee, jac>
<Key %Trigger%>
Here first with the <Label ..>-command labels for each window are defined, which can be used with a <SendLabel..>-command. A label mainly defiens which window to send to, on which pc, using which sending-Method. For more information see: HKN: Label
With the <KeyList ...>-command a hole bunch of keys are defined which should be broadcasted. Again as the <Label> this is not neccessary in general to define a hotkey, but it speeds up the setup of a lot keys much. Basicly you can add here every key you want to be broadcasted. For reference see: HKN: Keylist.
With the <Hotkey..>-command the hotkeys are defined using the Keylist defined before and sending the keys to the 5 (or 7) needed windows.
Here if its not clear see: HKN: Hotkey , HKN: SendLabel , HKN: Key
Now you should have your basic script together to broadcast simple keys.
So in the following we will discuss the ftl-speciffic part!
Connect With Us