AutoHotKey - How to add randomisation to this MouseClickDrag? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    VociferateOne's Avatar Member
    Reputation
    6
    Join Date
    Dec 2017
    Posts
    37
    Thanks G/R
    3/5
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AutoHotKey - How to add randomisation to this MouseClickDrag?

    Basically I want to know if I can randomize which MouseClickDrag command gets selected, to make this appear more human like? Below is the script, and the part I am wondering if I can I put a command in to somehow choose a random area within these parameters, or commands below?

    MouseClickDrag, Left, 600, 200, 1350, 850, 30,

    MouseClickDrag, Left, 800, 193, 1347, 657, 23,
    MouseClickDrag, Left, 867, 20, 1301, 709, 15,
    MouseClickDrag, Left, 623, 234, 1567, 812, 6,
    MouseClickDrag, Left, 409, 109, 1947, 801, 32,
    MouseClickDrag, Left, 610, 96, 1747, 677, 11,


    Also, can someone give me a command to have this AHK script only work if the program is in the foreground, and pause when it is in the back ground?

    Code:
    #NoEnv
    zoneX := ( A_ScreenWidth / 2 ) 
    zoneY := ( A_ScreenHeight / 2 ) - ( 0.04 * A_ScreenHeight )
    SetDefaultMouseSpeed, 0
    SetKeyDelay, -1
    
    Numlock::suspend
    
    Insert::    
         
    Send {backspace}
    {
    ControlSend, , {backspace}
    
    Sleep, 50
    }
       {
    SetBatchLines, -1
    SetKeyDelay, -1
    SetMouseDelay, 1
    SetDefaultMouseSpeed, 0
    
    MouseClickDrag, Left, 600, 200, 1350, 850, 30,
    sendinput, {q}
    
    
    }
    {
    SetBatchLines, -1
    SetKeyDelay, -1
    ControlSend, , {q}, StarCraft II
    Send {Shift down}
    Mouseclick, left, %zoneX%, %zoneY%
    
    Send {Shift up}
       }
    Sleep, 45
    SendInput, {[}
    return

    AutoHotKey - How to add randomisation to this MouseClickDrag?

Similar Threads

  1. How to add this into my folder
    By arthur1265 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-10-2008, 10:27 AM
  2. [How to] This is a collection of Silvermoon City explorations/exploits
    By Vilak in forum World of Warcraft Exploration
    Replies: 7
    Last Post: 12-10-2007, 09:55 AM
  3. Does anyone know how to do this?! Look!
    By tyguy22894 in forum World of Warcraft General
    Replies: 11
    Last Post: 06-09-2007, 06:39 PM
  4. How to block adds and commercials
    By Hounro in forum World of Warcraft General
    Replies: 4
    Last Post: 12-03-2006, 09:57 AM
  5. How to add Images?
    By Fault in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 08-17-2006, 05:54 PM
All times are GMT -5. The time now is 01:17 PM. 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