Close
Showing results 1 to 9 of 9

Threaded View

  1. #9

    Default

    Phew, solved it. For those that need to send alternating keystrokes with FTL modifiers, here is a working adaptation of Olipcs' FTL code.
    I won't be testing it in-game until after Christmas, but it was sending the correct keystrokes and modifiers to the login screens according to the actions window.

    I've commented in the basics. Those who can wrap their head around the FTL stuff will hopefully have enough to go on there.


    Code:
    //-----------------------------------------------------------
    // Example of creating an FTL hotkey which toggles.
    // Here, pressing 4 will toggle between sending 4 and 9, 
    // and still also send the FTL modifiers correctly.
    //-----------------------------------------------------------
    
    
    //-----------------------------------------------------------
    // TEMPLATES FOR SETTING UP THE FTL HOTKEYS
    // These are only really different from Olipcs' method in that
    // the kotkey may be a different key to the keys being sent.
    //-----------------------------------------------------------
    
    // %1% : Master key
    // %2% : Slave key
    // %3% : Modifier
    // %4% : List of mail labels for the slave windows
    <Template SendMasterAndSlave>
        <SendFocusWin>
            <Key %1%>
        <SendLabel %4%>
            <Key %3% %2%>
    <EndTemplate>
    
    // %1% : Master key
    // %2% : Slave key
    // %3% : Modifier
    // %4% : Active window
    // %5% : List of mail labels for the slave windows
    <Template SendLeaderless>
        <If ActiveWinIs %4%>
            <ApplyTemplate SendMasterAndSlave "%1%" "%2%" "%3%" "%5%">
    <EndTemplate>
    
    
    // %1% : Hotkey (Key to be pressed)
    // %2% : master-key (Key to be sent to Focus window)
    // %3% : slave-key (Key to be sent to other windows, with the FTL modifier)
    <Template FTL>
        <Hotkey %1%>
            <ApplyTemplate SendLeaderless "%2%" "%3%" "rctrl rshift" WoW1 "w2,w3,w4,w5">
            <ApplyTemplate SendLeaderless "%2%" "%3%" "rctrl ralt" WoW2 "w1,w3,w4,w5">
            <ApplyTemplate SendLeaderless "%2%" "%3%" "ralt rshift" WoW3 "w1,w2,w4,w5">
            <ApplyTemplate SendLeaderless "%2%" "%3%" "rctrl ralt rshift" WoW4 "w1,w2,w3,w5">
            <ApplyTemplate SendLeaderless "%2%" "%3%" "rctrl" WoW5 "w1,w2,w3,w4">
    <EndTemplate>
    
    
    //-----------------------------------------------------------
    // USE THE TEMPLATES TO CREATE 2 HOTKEYS 
    // I used 2 Japanese letters which do not appear on my keyboard
    // in order to save keys, since these two are only ever going 
    // to be 'pressed' by HKN. 
    // So 'pressing' Kana will send 4 to the active window, and 4 with 
    // FTL modifiers to the other windows, and 'pressing' Junja will 
    // send 9 in the same way.  
    //-----------------------------------------------------------
    
    <ApplyTemplate FTL "Kana" "4" "4">
    <ApplyTemplate FTL "Junja" "9" "9">
    
    
    //-----------------------------------------------------------
    // CREATE A FINAL HOTKEY TO CALL THE OTHER TWO ALTERNATELY
    //-----------------------------------------------------------
    
    <Hotkey 4>
        <Toggle>
            <DoHotkey Hotkey Kana>
        <Toggle>
            <DoHotkey Hotkey Junja>
    
    
    // I haven't tested them, but I believe you can use "Final" and "Hanja" as  hotkeys
    // as well.
    Last edited by Flekkie : 12-21-2010 at 06:44 PM
    Coming out of nowhere drivin' like rain, Stormbringer dance on the thunder again
    Dark cloud gathering breaking the day, no point running cause its coming your way

    Rainbow shaker on a stallion twister, bareback rider on the eye of the sky
    Stormbringer coming down meaning to stay, thunder and lightning heading your way

    Ride the rainbow crack the sky, Stormbringer coming time to die

    ~ Deep Purple, Stormbringer

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •