LF Help in modifying an autohotkey script menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Unholyshaman's Avatar ★ Elder ★
    Reputation
    1517
    Join Date
    Jun 2007
    Posts
    2,827
    Thanks G/R
    20/20
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LF Help in modifying an autohotkey script

    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

    LF Help in modifying an autohotkey script
  2. #2
    Parog's Avatar Kitsune Da-O! M.L.G. CoreCoins Purchaser Authenticator enabled
    Reputation
    1528
    Join Date
    May 2007
    Posts
    3,169
    Thanks G/R
    540/266
    Trade Feedback
    20 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 02:19 PM.
    What's a Parog?
    Looking for competitive Valorant team!

  3. #3
    Unholyshaman's Avatar ★ Elder ★
    Reputation
    1517
    Join Date
    Jun 2007
    Posts
    2,827
    Thanks G/R
    20/20
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Parog's Avatar Kitsune Da-O! M.L.G. CoreCoins Purchaser Authenticator enabled
    Reputation
    1528
    Join Date
    May 2007
    Posts
    3,169
    Thanks G/R
    540/266
    Trade Feedback
    20 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    What's a Parog?
    Looking for competitive Valorant team!

Similar Threads

  1. Need help fixing some simple lua scripts :-)
    By kaato in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 04-10-2009, 06:11 PM
  2. Information to help you create Lua boss scripts and their Sql's
    By Nymphx in forum WoW EMU General Releases
    Replies: 2
    Last Post: 10-31-2008, 03:00 PM
  3. Need help plx :) about a sapp script
    By tippythop in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-30-2008, 02:55 PM
  4. [help] i need a vendor script
    By edded in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-13-2008, 02:18 AM
  5. [Help] Attack Rnd Player LUA Script
    By wurstbr0t in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-02-2008, 11:01 AM
All times are GMT -5. The time now is 06:04 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search