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

    Default Solution? - focusless/leaderless setup

    I have been working on this off and on at work, but I have no internet access there, and once I get home I would rather play then spend too much time working on AHK scripts, when what I have is ok for now (RAF making me feel like I waste time if I don't play wow enough in the first 90 days, lol).

    Anyway, I havin't tested this on anything outside of multiple instances of notepad, but it appears as though it should work. The only thing is tieing in the different instances of WoW to specific toons. I am thinking of making it so when you run the script, after all the WoWs are loaded, you can hover over each window and assign each window to a toon, IE:

    This Window = Toona, This other window = Toonb, ect..

    This is what I have got, if anyone can improve upon it to make it less unwieldly and/or faster, or whatever, please improve upon it!

    I have posted the entire file that I have so far, much of it you can edit out. If you use maximizer (which I do), then you will need to make changes.. Instead of starting wow.exe you need to start maximizer.exe with the correct options for each instance of WoW. I have just been starting wow.exe for now for testing purposes. Like I said, im not positive this will actually work, please give me some feed back whether it does or not.


    #SingleInstance force ; bypasses the dialog box saying the script is already running
    SetKeyDelay, 0 ;speeds up the sending of the keystrokes, may cause problems down the road though?
    GamePath = c:\world of warcraft\wow.exe
    TitleofGameWindow = World of Warcraft

    IfWinNotExist, %TitleofGameWindow%
    {
    InputBox, UserInput, WoW Copies, How many copies of WoW do you want to start?., ,
    if ErrorLevel
    {
    }
    else
    Loop, %UserInput%
    {
    run %GamePath%
    }
    }


    Toon1ModDown = {ctrl down}{shift down}
    Toon2ModDown = {ctrl down}{alt down}
    Toon3ModDown = {alt down}{shift down}
    Toon4ModDown = {ctrl down}{alt down}{shift down}
    Toon5ModDown = {ctrl down}
    Toon1ModUp = {ctrl up}{shift up}
    Toon2ModUp = {ctrl up}{alt up}
    Toon3ModUp = {alt up}{shift up}
    Toon4ModUp = {ctrl up}{alt up}{shift up}
    Toon5ModUp = {ctrl up}
    1Key = ]
    2Key = [

    WinGet, wowid, list, %TitleofGameWindow%
    WinGet, wowpid1, pid, ahk_id %wowid1%
    WinGet, wowpid2, pid, ahk_id %wowid2%
    WinGet, wowpid3, pid, ahk_id %wowid3%
    WinGet, wowpid4, pid, ahk_id %wowid4%
    WinGet, wowpid5, pid, ahk_id %wowid5%

    $1::
    ActiveWindow := WinExist("A") ;gets the unique ID of the currently active window
    if ActiveWindow = %wowid1%
    {
    ControlSend,,1, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%1Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%1Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%1Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%1Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid2%
    {
    ControlSend,,%Toon1ModDown%%1Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,1, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%1Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%1Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%1Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid3%
    {
    ControlSend,,%Toon1ModDown%%1Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%1Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,1, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%1Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%1Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid4%
    {
    ControlSend,,%Toon1ModDown%%1Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%1Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%1Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,1, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%1Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid5%
    {
    ControlSend,,%Toon1ModDown%%1Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%1Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%1Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%1Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,1, ahk_id %wowid5%
    }
    else
    {
    Send 1 ;still sends a 1 to any other window
    }
    Return


    $2::
    ActiveWindow := WinExist("A") ;gets the unique ID of the currently active window
    if ActiveWindow = %wowid1%
    {
    ControlSend,,2, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%2Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%2Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%2Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%2Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid2%
    {
    ControlSend,,%Toon1ModDown%%2Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,2, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%2Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%2Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%2Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid3%
    {
    ControlSend,,%Toon1ModDown%%2Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%2Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,2, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%2Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%2Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid4%
    {
    ControlSend,,%Toon1ModDown%%2Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%2Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%2Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,2, ahk_id %wowid4%
    ControlSend,,%Toon5ModDown%%2Key%%Toon5ModUp%, ahk_id %wowid5%
    }
    else if ActiveWindow = %wowid5%
    {
    ControlSend,,%Toon1ModDown%%2Key%%Toon1ModUp%, ahk_id %wowid1%
    ControlSend,,%Toon2ModDown%%2Key%%Toon2ModUp%, ahk_id %wowid2%
    ControlSend,,%Toon3ModDown%%2Key%%Toon3ModUp%, ahk_id %wowid3%
    ControlSend,,%Toon4ModDown%%2Key%%Toon4ModUp%, ahk_id %wowid4%
    ControlSend,,2, ahk_id %wowid5%
    }
    else
    {
    Send 2 ;sends a 2 to whatever window is active if not a wow window
    }
    Return

  2. #2

    Default

    And that is just for 2 buttons!

    dang..
    I wonder if that could be done easier.

  3. #3

    Default

    Great idea!
    I haven't used ahk, but in theory this should work.
    If you tested this and it works, might i suggest, that you add it to the wiki-page of the ftl?

    (http://www.dual-boxing.com/wiki/inde...aderless_Setup)
    Or if you like, i cann also add it, when i find a little time...
    OLIPCS - ordinary life is pretty complex stuff
    ----------------------------------------------------------------
    Pala, Priest, Druid, Hunter, Mage
    Focusless Targetless Leaderless - Wiki
    HotKeyNet - Guide

  4. #4

    Default

    Gives me a headache trying to figure what the hell its suppose to do.

    Why not just have setup so yeh have one assist button. Create some logic that checks to see what wow has focus if yeh hit that it sends out ( just dont send it out to current focus)

    ToonA if focus send Ctrl + Shift + i
    ToonB if focus send Ctrl + Alt + i
    ToonC if focud send Alt + Shift + i
    ToonD if focus send Ctrl + Alt + Shift + key
    ToonE if focus send Ctrl + key

    then setup

    /assist
    [mod:ctrl,mod:shift,nomod:alt]ToonA;
    [mod:ctrl,mod:alt,nomod:shift]ToonB;
    [mod:alt,mod:shift,nomod:ctrl]ToonC;
    [mod:ctrl,mod:alt,mod:shift]ToonD;
    [mod:ctrl,nomod:alt,nomod:shift]ToonE

    on each one

    that way yeh don't need to hotstring, the rest of the macros dont need to be changed

    hmmm gotta test this

  5. #5

    Default

    I thought this website had been down the last week since I havint been able to access it from my house.

    I have made a ton of changes to that script, but since I havin't been able to access the website I couldint view the original post about the focusless setup so I couldin't create my ingame macros to test my own AHK script.

    I actually have a pretty slick version of the above post which I will try to test out today. One thing about the way I did it above though, is the ID of the wow windows can change every time you restart the script since they are bases on which windows were last ontop of the others, which means I need to figure out a way of keeping them straight. I have a few ideas, just need to work out the kinks and program them.

  6. #6

    Default

    Quote Originally Posted by 'jdraughn',index.php?page=Thread&postID=124318#pos t124318
    I thought this website had been down the last week since I havint been able to access it from my house.

    I have made a ton of changes to that script, but since I havin't been able to access the website I couldint view the original post about the focusless setup so I couldin't create my ingame macros to test my own AHK script.

    I actually have a pretty slick version of the above post which I will try to test out today. One thing about the way I did it above though, is the ID of the wow windows can change every time you restart the script since they are bases on which windows were last ontop of the others, which means I need to figure out a way of keeping them straight. I have a few ideas, just need to work out the kinks and program them.
    So did you had any luck with the script? I would really like to use it if you have an updated version please upload.

  7. #7

    Default

    I've been working on a more simplified version of ftl for autohotkey
    I've got the basic idea fleshed out so to speak just need some time to test it
    Barring any major problems I can post something by next week.

Similar Threads

  1. Focusless, targetless, 'leaderless' (FTL) setup.
    By Pocalypse in forum Macros and Addons
    Replies: 395
    Last Post: 04-09-2012, 08:41 PM
  2. Focusless / Targetless / Leaderless Setup?
    By Qomannon in forum Software Tools
    Replies: 5
    Last Post: 11-03-2008, 02:45 PM
  3. Focusless, targetless, 'leaderless' setup. Semantic issue.
    By Kaynin in forum General WoW Discussion
    Replies: 11
    Last Post: 09-19-2008, 10:17 AM
  4. AHK script for focusless, leaderless... setup?
    By jdraughn in forum General WoW Discussion
    Replies: 1
    Last Post: 09-16-2008, 11:09 AM
  5. Replies: 3
    Last Post: 08-29-2008, 11:07 AM

Posting Rules

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