Welcome to OwnedCore - Massively Multiplayer Owned

The world's most notorious World of Warcraft exploit site! Join us now and be apart of an active, richly talented, and experienced World of Warcaft community. Here you will find:


---The hottest WoW exploits and guides.

---Experienced WoW EMU developers.

---Talented WoW model editing experts.

---Advanced WoW Bots and Programs

---Exploits from the top MMOs and so much more!


....we are OwnedCore - Massively Multiplayer Owned


YES! I want to register an account for free right now!


Thread: LF Help in modifying an autohotkey script
  

Results 1 to 4 of 4
  1. #1 LF Help in modifying an autohotkey script 
    Moderator Unholyshaman's Avatar
    Reputation
    1204
    Join Date
    Jun 2007
    Location
    South Africa, CpT
    Posts
    2,532
    Blog Entries
    5


    Donate to remove ads, get special forum and shoutbawx access
    Hey folks, what I'm trying to accomplish is simply:

    I want to get AHK to send keypresses to wow upon detecting movement of my mouse. (Basically to prospect and mill)

    Code:
    #persistent
    coordmode, mouse, screen
    
    
    mousegetpos, sx, sy
    
    
    settimer, check, 1000
    return
    
    
    check:
    mousegetpos, cx, cy
    if (cx != sx or cy != sy)
    {
      ; mouse has moved, calculate by how much
      if (cx > (sx+2) or cx < (sx-2) or cy > (sy+2) or cy < (sy-2))
      {
        ControlSend,,=,World of Warcraft
        mousegetpos, sx, sy ; get new mouse position
      }  
    }      
    return
    That script there effectively covers what I want it to do, but I need a few modifications.

    1) I need a way to distinguish between my 2 World of Warcraft clients and only send the keypress to one of the client. This is not absolutely a must have but it would be nice.
    2) I want to make the keypresses that it sends more random. Prospecting/milling takes about 2 seconds to cast, so it would be great if there was a way to randomize the time in which it sends those keypresses within that 2 second window. I'm using it for a legitimate use where it only sends the keypress upon mouse movement, but I simply don't want to deal with the inconvenience of Blizzard banned me thinking I was botting.

    My +7 rep to anyone that can help me out

    Reply With Quote  
     

  2. #2  
    Away for a little bit. Parog's Avatar
    Reputation
    768
    Join Date
    May 2007
    Location
    Where's a Parog?
    Posts
    2,015
    Going for a few meetings in 5 minutes so I can't help all that much, but here's what you'll need.

    AutoHotkey Guide - Dual-Boxing.com





    WinGet, wowid, List, World of Warcraft

    ^ To get a list of your process ID running by the name of World of Warcraft.


    ;Determine Main and Clone Windows WinActivate, ahk_id %wowid1% MsgBox, 4,, Is this your WOW Main window? (press Yes or No) IfMsgBox Yes idMain = %wowid1% else idMain = %wowid2% If idMain = %wowid1% { idClone = %wowid2% } else { idClone = %wowid1%




    }
    To assign a variable to each process id so you can send the keys to a specific client.

    idMain and idClone are variable names you can change.



    ControlSend,,=,World of Warcraft
    ^ from your original script. Instead of specifying a window name, use the variable name for whatever window you'd like instead of World of Warcraft.


    EDIT: FORMATING FAAAAAAAAIL! It's all in the Wiki page.
    Last edited by Parog; 09-12-2011 at 04:19 PM.
    Don't let this happen! Educate yourself about SOPA / PIPA today: http://en.wikipedia.org/wiki/Wikiped...ive/Learn_more

    This message does not reflect OwnedCore's stance on the matter. It is something I, as an individual, deem important.

    Reply With Quote  
     

  3. #3  
    Moderator Unholyshaman's Avatar
    Reputation
    1204
    Join Date
    Jun 2007
    Location
    South Africa, CpT
    Posts
    2,532
    Blog Entries
    5
    Something interesting I've found is that adding a random delay timer to AHK is bannable.

    AutoHotKey - Dual-Boxing.com

    For AutoHotKey this means that any kind of delay introduced in your script between sending commands is classified as automation and will get you banned. Please avoid using any kind of delays in your scripts as not only will it get you banned but if Blizzard finds that people abuse AutoHotKey to achieve automation then they may decide to ban AutoHotKey altogether.

    Reply With Quote  
     

  4. #4  
    Away for a little bit. Parog's Avatar
    Reputation
    768
    Join Date
    May 2007
    Location
    Where's a Parog?
    Posts
    2,015
    If anything, the random would actually make it near impossible to see on the logs unless you had a really narrow range of random numbers.
    Don't let this happen! Educate yourself about SOPA / PIPA today: http://en.wikipedia.org/wiki/Wikiped...ive/Learn_more

    This message does not reflect OwnedCore's stance on the matter. It is something I, as an individual, deem important.

    Reply With Quote  
     

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155