Thread: AutoHotkey code

Results 1 to 3 of 3
  1. #1
    burakoz's Avatar
    Join Date
    Mar 2019
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    AutoHotkey code

    I have code like the following. This code is written for a game that is free to use macro autohotkey macro code. But when I hold down the left click with this code, it pulls the cursor down steadily and non-stop.

    I want that with editing on this code, let's stop the cursor after taking the cursor down for example 600ms, that's it. I wonder if we can make this arrangement in this code?

    code 1
    Code:
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%
    
    ; SS
    ^!p::Suspend
    
    ; NR
    ~LButton::
    while GetKeyState("LButton")
    {
    DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
    Sleep, 15
    DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
    Sleep, 5
    }
    return
    
    ; Nades
    ~MButton::
    if GetKeyState("LButton")
    {
    Sleep, 3000
    MouseClick, Left,,,,, U
    }
    return
    
    Insert::ExitApp

    OR code 2
    Code:
    #NoEnv
    SendMode Input
    
    _auto := true
    
    ~LButton::autofire()
    +LButton::_auto := ! _auto
    F1::ExitApp
    
    autofire()
    {
    global _auto
    if _auto
    {
    Loop
    {
    if GetKeyState("LButton", "P")
    {
    Sleep 25
    mouseXY(0, 6)
    Sleep 20
    }
    else
    break
    } ;; loop
    } ;; if
    } ;; autofire()
    
    mouseXY(x,y)
    {
    DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
    }
    Last edited by burakoz; 08-31-2019 at 05:32 AM.

  2. #2
    OvOBLACKOvO's Avatar
    Join Date
    Sep 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    no response?

  3. #3
    esci96's Avatar
    Join Date
    Sep 2019
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    i try to use this kay but dont work have a logitec mouse and use a logitec program for use it

Similar Threads

  1. [Source Code] Bhop Code for Autohotkey
    By MM_Huskii in forum Counter-Strike 2 Coding & Resources
    Replies: 0
    Last Post: 08-05-2016, 07:17 PM
  2. [Source Code] AUTOHOTKEY SCRIPT CODE TO BOOST YOUR MOUSE
    By devilaim in forum Blackshot Coding & Source Code
    Replies: 3
    Last Post: 04-13-2013, 12:25 PM
  3. [Release] DUtility - The unique python coded utility (with Autohotkey player)
    By chikencow in forum Combat Arms Spammers, Injectors and Multi Tools
    Replies: 20
    Last Post: 05-22-2012, 09:32 AM
  4. Pre-Regerstration - E3 Codes
    By Dave84311 in forum WarRock - International Hacks
    Replies: 67
    Last Post: 06-13-2006, 08:06 AM
  5. a Couple WPE Weapon codes?
    By phil823 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 02-10-2006, 02:14 PM