Autofire(1080p).ahk menu

User Tag List

Results 1 to 7 of 7
  1. #1
    syscall78's Avatar Banned
    Reputation
    55
    Join Date
    Jan 2017
    Posts
    159
    Thanks G/R
    24/52
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Autofire(1080p).ahk


    Source TheRagingWampa


    The autofire script will ONLY work in PlayerUnkown's Battlegrounds and ONLY while the mouse cursor is not visible. This means that the auto fire can only go off while you are in game and not in a menu, this allows you to keep Autofire on and continue to manage you inventory.
    Make sure to use the auto fire that is for your monitor resolution, currently supported are 1080p, you can request a different one if you need it.
    Autofire also Disables the mouse wheel while in game.
    Fire rate is randomized between 14ms and 25ms with the randomized value subtracted by 5ms.
    Displays Autofire on tooltip when zooming in, if it is on.
    Compensation is currently disabled.

    Autofire Keybinds: Fire - Left Mouse Button, when enabled
    Toggle Autofire on and off - "B"
    Enable Autofire - Numpad 1/Numpad End
    Disable Autofire - Numpad 0/Numpad Insert
    Code:
    ; Autofire for PUBG made by Wampa v2.7
    ;---------------------------------------
    ; Script Settings
    ;---------------------------------------
    	
    	#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
    	#SingleInstance force ; Forces the script to only run one at a time.
    	SetTitleMatchMode, 2 ; Sets mode for ifwinactive window.
    	#ifwinactive, PLAYERUNKNOWN'S BATTLEGROUNDS ; Ensures Autofire only works in PUBG.
    	
    ;---------------------------------------
    ; Variables
    ;---------------------------------------
    
    	V_AutoFire = 0 ; Value for Autofire being on and off.
    	isMouseShown() ; Value for suspending when mouse is visible.
    	comp = 0 ; Value for compensation, currently disabled due to unreliability.
       
    ;---------------------------------------   
    ; Suspend if mouse is visible
    ;---------------------------------------   
    
    	isMouseShown()			; Suspends the script when mouse is visible ie: inventory, menu, map.
    	{
    		StructSize := A_PtrSize + 16
    		VarSetCapacity(InfoStruct, StructSize)
    		NumPut(StructSize, InfoStruct)
    		DllCall("GetCursorInfo", UInt, &InfoStruct)
    		Result := NumGet(InfoStruct, 8)
    
    	if Result > 1
          Return 1
    	else
          Return 0
    	}
    	Loop
    	{
    		if isMouseShown() == 1
    			Suspend On
    		else
    			Suspend Off
    		Sleep 1
    	}
    
    ;---------------------------------------
    ; Disable Mouse Wheel
    ;---------------------------------------
    
    	WheelUp::Return 			; Disables Mouse Wheel Up.
    	~$*WheelUp::Return 			; Disables Mouse Wheel Up.
    	WheelDown::Return 			; Disables Mouse Wheel Up.
    	~$*WheelDown::Return 		; Disables Mouse Wheel Down.
    
    ;---------------------------------------   
    ; Crouch Jumping
    ;---------------------------------------
       
       ~space::c					; Crouches when you press the spacebar making jumps higher than normal.
       
    ;---------------------------------------
    ; Autofire Setup
    ;---------------------------------------
    
    	~$*b::					; Swaps the state of Autofire with the press of "B".
    		if V_AutoFire = 0
    		{
    			V_AutoFire = 1 
    			tooltip, Autofire on, 930, 650 
    			SetTimer, RemoveToolTip, 2000
    		}
    		else
    		{
    			V_AutoFire = 0 
    			tooltip, Autofire off, 930, 650 
    			SetTimer, RemoveToolTip, 2000
    		}
    	Return
    
    	~$*Numpad0::			; Disables Autofire.
    	~$*NumpadIns::
    		V_AutoFire = 0
    		tooltip, Autofire off, 930, 650
    		SetTimer, RemoveToolTip, 2000
    	Return
    
    	~$*Numpad1::			; Enables Autofire.
    	~$*NumpadEnd::
    		V_AutoFire = 1
    		tooltip, Autofire on, 930, 650
    		SetTimer, RemoveToolTip, 2000
    	Return
    	
    	/*
    	~$*Numpad5::			; Displays compensation value, currently disabled.
    	   tooltip, %comp%, 930, 650
    	   SetTimer, RemoveToolTip, 2000
    	Return
    	
    	~$*NumpadAdd::			; Adds compensation value, currently disabled.
    		comp := comp + 5
    		tooltip, %comp%, 930, 650
    		SetTimer, RemoveToolTip, 2000
    	Return
       
    	~$*NumpadSub::			; Subtracts compensation value, currently disabled.
    		comp := comp - 5
    		tooltip, %comp%, 930, 650
    		SetTimer, RemoveToolTip, 2000
    	Return
    	~$*NumpadEnter::		; Resets compensation value to 0, currently disabled.
    		comp := 0
    		tooltip, %comp%, 930, 650
    		SetTimer, RemoveToolTip, 2000
    	Return
    	*/
       
    ;---------------------------------------
    ; Auto Firing
    ;---------------------------------------
    
    	~$*LButton::			; Fires Automaticly when Autofire is on.
    		if V_AutoFire = 1
    	{
    		Loop
    	{
    		GetKeyState, LButton, LButton, P
    		if LButton = U
    			Break
    		MouseClick, Left,,, 1
    		Gosub, RandomSleep
    		Mousemove, 0, %comp%,, R 	; Compensation, currently disabled.
    	}
    	}
    	Return 
    
    ;---------------------------------------
    ; Tooltips and Timers
    ;---------------------------------------
    	
    	RandomSleep:			; Random timing between Autofire shots
    		Random, random, 14, 25
    		Sleep %random%-5
    	Return
    	
    	RemoveToolTip:			; Used to remove tooltips.
    	   SetTimer, RemoveToolTip, Off
    	   tooltip
    	Return
       
    	~$*RButton::			; Displays Autofire on tooltip when zooming in.
    		if V_AutoFire = 1
    		{	
    			tooltip, Autofire on, 930, 650 
    			SetTimer, RemoveToolTip, 2000
    		}
    		else
    tooltip

    Autofire(1080p).ahk
  2. Thanks xqzmi (1 members gave Thanks to syscall78 for this useful post)
  3. #2
    wusisoul's Avatar Member
    Reputation
    1
    Join Date
    Jan 2017
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can this get us banned?

  4. #3
    xqzmi's Avatar Member
    Reputation
    5
    Join Date
    Jun 2015
    Posts
    23
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not sure what it does tbh.
    I just tested it and it does nothing when I am just right clicking and if I left click I just shoot.
    Am I supposed to hold down the Lmousebutton and the script will do single shots for me or what am I missing here?

    Nice code tho. clean af

  5. #4
    demontronpc's Avatar Member
    Reputation
    1
    Join Date
    Apr 2017
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is this ahk or what? How to compile through what?

  6. #5
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1415
    Join Date
    Apr 2006
    Posts
    3,942
    Thanks G/R
    285/571
    Trade Feedback
    1 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by demontronpc View Post
    is this ahk or what? How to compile through what?
    You can tell by the .ahk extension that you need to insert this code into a WoW Private Server's source code, and have it running in the background.

  7. #6
    hristoaz's Avatar Member
    Reputation
    2
    Join Date
    Oct 2016
    Posts
    4
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sychotix View Post
    You can tell by the .ahk extension that you need to insert this code into a WoW Private Server's source code, and have it running in the background.
    what he said. works perfectly, but you have to use mists of pandaria :/ that's pretty lame

  8. Thanks Sychotix (1 members gave Thanks to hristoaz for this useful post)
  9. #7
    toyz89's Avatar Member
    Reputation
    12
    Join Date
    Jul 2014
    Posts
    15
    Thanks G/R
    5/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    banned on my alt account for using this .. have fun

Similar Threads

  1. autofire [autoit source]
    By mnbvc in forum World of Warcraft Bots and Programs
    Replies: 7
    Last Post: 03-25-2010, 12:29 AM
  2. [Question] How can i set autofire to a mouse button?
    By rael81 in forum World of Warcraft General
    Replies: 4
    Last Post: 09-10-2009, 08:18 AM
  3. [AHK Script] Multi-directional Hunter Disengage
    By CrazyCactuaR in forum World of Warcraft Bots and Programs
    Replies: 2
    Last Post: 04-03-2009, 09:11 AM
  4. Auto prospecting! AHK!
    By Speakerwire in forum World of Warcraft Guides
    Replies: 7
    Last Post: 01-05-2009, 03:38 PM
All times are GMT -5. The time now is 03:48 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