Results 1 to 3 of 3
  1. #1
    Loyal Swiftie's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1

    AHK Double Pump, shoot with Left Click

    So far, all the double pump scripts I see require shooting with an alternate key. I made a double pump script that automatically enables when you hit the "2" button, and automatically disables when you push other keys (like building, weapon changing, editing). That way you can shoot with your left click.

    This script has many instructions to use properly:
    1. The bottom half of the script contains all of my personal key bindings that would cause the game to switch weapons, or switch into building mode. You'll have to change it to suit your key bindings.
    2. F5 will toggle the script on and off, and will display a small pop-up informing you if it's on or off. (i.e. You won't always have 2 pumps, so you don't always want the script running)
    3. You must have a pump shotgun in weapon slot 2, and weapon slot 3.
    4. The script is designed to ONLY change weapons for you. You control the timing of each shot. All you have to do is point and click, and the script will automatically cycle back and forth between the shotguns after each click.

    Code:
    #IfWinActive Fortnite
    
    F5::
    Suspend, permit
    if (State = 0) {
    	Gui, +AlwaysOnTop +Disabled -SysMenu +Owner 
    	Gui, Add, Text,, Double Pump ON
    	Gui, Show, xCenter y10, State, NoActivate,
    	sleep, 800
    	Gui, Destroy
    	State++
    }
    else {
    	State := 0
    	Gui, +AlwaysOnTop +Disabled -SysMenu +Owner 
    	Gui, Add, Text,, Double Pump OFF
    	Gui, Show, xCenter y10, State, NoActivate, 
    	sleep, 800
    	Gui, Destroy
    }
    Suspend, toggle
    return
    
    ~*2::
    enable=1
    lbutton_count :=0
    return
    
    ~*LButton::	
    if enable
    	{
    		lbutton_count++    	
    
    		If (lbutton_count = 1)
    		{
    			Sleep 50
    			Send {3}
    			Sleep 300
    		}
    		
    		If (lbutton_count = 2)
    		{
    			Sleep 50
    			Send {2}
    			Sleep 300
    		}
    	
    
    		If (lbutton_count = 2)
    		{
    			lbutton_count := 0
    		}
    		return
    	}
    
    else
    	{
    		return
    	}
    
    
    ; Change the things below here to suit your own key bindings.
    
    ~*a::
    enable=0
    return
    
    ~*d::
    enable=0
    return
    
    ~*r::
    enable=0
    return
    
    ~*MButton::
    enable=0
    return
    
    ~*XButton1::
    enable=0
    return
    
    ~*XButton2::
    enable=0
    return
    
    ~*1::
    enable=0
    return
    
    ~*3::
    enable=0
    return
    
    ~*4::
    enable=0
    return
    
    ~*5::
    enable=0
    return
    
    ~*LShift::
    enable=0
    return
    
    ~*CapsLock::
    enable=0
    return
    
    ~*v::
    enable=0
    return
    
    *Alt::
    enable=0
    Send {Alt down}
    Keywait, Alt
    Send {Alt up}
    enable=1
    return
    
    #IfWinActive

  2. #2
    Ping123's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Posts
    32
    Reputation
    23
    Thanks
    10
    Nice man, thanks

  3. #3
    070043658's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    14
    Reputation
    26
    Thanks
    7
    thanks for the code

Similar Threads

  1. [Help Request] Sending mouse(Left) clicks(Rapidly) with mouse button 1(Left)
    By dmratcliffe in forum Visual Basic Programming
    Replies: 3
    Last Post: 04-13-2013, 06:45 PM
  2. [Tutorial] Use Macro 1.2 with left click
    By dogboy10 in forum Alliance of Valiant Arms (AVA) Discussions
    Replies: 8
    Last Post: 01-21-2012, 11:27 AM
  3. [Release] Macro with left click xD
    By Battlefield 3 in forum Alliance of Valiant Arms (AVA) Hacks & Cheats
    Replies: 140
    Last Post: 10-09-2011, 06:31 AM
  4. [Solved] When i TRY to open a folder with double left click
    By deathtrap in forum CrossFire Help
    Replies: 5
    Last Post: 09-24-2011, 09:34 AM
  5. MACRO WITH LEFT CLICK
    By XBosX in forum Alliance of Valiant Arms (AVA) Help
    Replies: 18
    Last Post: 08-19-2011, 03:43 PM