Close
Showing results 1 to 2 of 2
  1. #1

    Post Completely Fresh, Could someone help me, please?

    Hello
    I'm Using AutoHotKey.
    I've snatched a simple WoW hotkey script from the wiki and modified it, as far as my understanding goes, to work for Lord of the Rings Online.
    However, ofcourse, something is wrong. So it appears that my script will find the windows, however, it doesn't correctly send the input, or sends it to the wrong window.
    I have really no clue what's going on, Any help would be greatly appreciated!

    Code:
    SplashTextOn, 325, , Preparing to find your Main and Clone windows of LotRO. 
    Sleep, 2000 
    SplasHtextoff 
    
    
    ;Grab unique window ID's 
    WinGet, wowid, List, The Lord of the Rings Online 
    
    
    ; Minimize All WOW windows 
    WinMinimize, ahk_id %wowid1% 
    WinMinimize, ahk_id %wowid2% 
    
    
    ;Determine Main and Clone Windows 
    WinActivate, ahk_id %wowid1% 
    
    
    MsgBox, 4,, Is this your LotRO Main window? (press Yes or No) 
    IfMsgBox Yes 
    idMain = %wowid1% 
    else 
    idMain = %wowid2% 
    
    
    If idMain = %wowid1% 
    { 
    idClone = %wowid2% 
    } else { 
    idClone = %wowid1% 
    } 
    
    
    ;Activate All WOW windows 
    WinActivate, ahk_id %idMain% 
    WinActivate, ahk_id %idClone% 
    
    
    
    
    ;*** Special Functions *** 
    
    
    
    
    
    
    ; ******************* 
    ; *** Hotbars 1-0 *** 
    ; ******************* 
    #IfWinNotActive, ahk_id The Lord of the Rings Online
    ~1:: 
    ControlSend,,{1 down}{1 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, %idClone% 
    ControlSend,,{1 down}{1 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~2:: 
    ControlSend,,{2 down}{2 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{2 down}{2 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~3:: 
    ControlSend,,{3 down}{3 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{3 down}{3 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~4:: 
    ControlSend,,{4 down}{4 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{4 down}{4 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~5:: 
    ControlSend,,{5 down}{5 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{5 down}{5 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~6:: 
    ControlSend,,{6 down}{6 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{6 down}{6 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~7:: 
    ControlSend,,{7 down}{7 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{7 down}{7 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~8:: 
    ControlSend,,{8 down}{8 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{8 down}{8 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~9:: 
    ControlSend,,{9 down}{9 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{9 down}{9 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~0:: 
    ControlSend,,{0 down}{0 up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{0 down}{0 up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~-:: 
    ControlSend,,{Ctrl down}{- down}{- up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{- down}{- up}{Ctrl up}, ahk_id %idClone% 
    return
    
    
    #IfWinActive, The Lord of the Rings Online
    ~=:: 
    ControlSend,,{Ctrl down}{= down}{= up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{= down}{= up}{Ctrl up}, ahk_id %idClone% 
    return
    
    
    
    
    ; *************************** 
    ; *** Hotbars Shift ^ 1-0 *** 
    ; *************************** 
    #IfWinActive, The Lord of the Rings Online
    ~+1:: 
    ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+2:: 
    ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+3:: 
    ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+4:: 
    ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+5:: 
    ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+6:: 
    ControlSend,,{Shift down}{6 down}{6 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{6 down}{6 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+7:: 
    ControlSend,,{Shift down}{7 down}{7 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{7 down}{7 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+8:: 
    ControlSend,,{Shift down}{8 down}{8 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{8 down}{8 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+9:: 
    ControlSend,,{Shift down}{9 down}{9 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{9 down}{9 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+0:: 
    ControlSend,,{Shift down}{0 down}{0 up}{Shift up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Shift down}{0 down}{0 up}{Shift up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+-:: 
    ControlSend,,{Ctrl down}{- down}{- up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{- down}{- up}{Ctrl up}, ahk_id %idClone% 
    return
    
    
    #IfWinActive, The Lord of the Rings Online
    ~+=:: 
    ControlSend,,{Ctrl down}{= down}{= up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{= down}{= up}{Ctrl up}, ahk_id %idClone% 
    return
    
    
    ; ************************** 
    ; *** Hotbars Cntl ^ 1-0 *** 
    ; ************************** 
    #IfWinActive, World of Warcraft 
    ~^1:: 
    ControlSend,,{Ctrl down}{1 down}{1 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{1 down}{1 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^2:: 
    ControlSend,,{Ctrl down}{2 down}{2 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{2 down}{2 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^3:: 
    ControlSend,,{Ctrl down}{3 down}{3 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{3 down}{3 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^4:: 
    ControlSend,,{Ctrl down}{4 down}{4 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{4 down}{4 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^5:: 
    ControlSend,,{Ctrl down}{5 down}{5 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{5 down}{5 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^6:: 
    ControlSend,,{Ctrl down}{6 down}{6 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{6 down}{6 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^7:: 
    ControlSend,,{Ctrl down}{7 down}{7 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{7 down}{7 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online 
    ~^8:: 
    ControlSend,,{Ctrl down}{8 down}{8 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{8 down}{8 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online 
    ~^9:: 
    ControlSend,,{Ctrl down}{9 down}{9 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{9 down}{9 up}{Ctrl up}, ahk_id %idClone% 
    return 
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^0:: 
    ControlSend,,{Ctrl down}{0 down}{0 up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{0 down}{0 up}{Ctrl up}, ahk_id %idClone% 
    return
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^-:: 
    ControlSend,,{Ctrl down}{- down}{- up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{- down}{- up}{Ctrl up}, ahk_id %idClone% 
    return
    
    
    #IfWinActive, The Lord of the Rings Online
    ~^=:: 
    ControlSend,,{Ctrl down}{= down}{= up}{Ctrl up}, ahk_id %idMain% 
    ControlSend,,{f2 down}{f2 up}, ahk_id %idClone% 
    ControlSend,,{Ctrl down}{= down}{= up}{Ctrl up}, ahk_id %idClone% 
    
    return
    Last edited by Megaddd : 02-17-2012 at 05:14 AM

  2. #2

    Default

    I can't help you with Autohotkey, but I can say that I'm fairly certain World of Warcraft and Lord of the Rings Online do not work in the same fashion. WoW will receive keystrokes in the background, but I believe LotRO requires that the window be focused to receive input.

    Most people who multibox LotRO use ISBoxer. I've also successfully boxed multiple clients on one computer with HotKeyNet. http://www.dual-boxing.com/threads/3...t-starting-out
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

Posting Rules

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