Results 1 to 15 of 105

Threaded View

  1. #1
    FxOxAxD's Avatar
    Join Date
    Oct 2017
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    356

    PUBG AHK Helper [Official]

    Ok someone stole my source from ****** and posted it here as his without any credits or thanks, just deleted my credits... any way, now it's already improved.

    Some ahk scripts to make PLAYERUNKNOWN'S BATTLEGROUNDS more confortable to play.
    ADS (Fast Aiming), CrouchJump, AutoFire and Compensation.


    Code:
    ; PUBG Helper by FxOxAxD [Ver: 0.95]
    ToolTip("PUBG Helper by FxOxAxD [Ver: 0.95]")
    
    ;#########################
    ;#     Configuration     #
    ;#########################
    #NoEnv ; Improves performance and compatibility with future AHK updates.
    #SingleInstance force ; It allows to run only one at the same time.
    SetTitleMatchMode, 2 ; Matching for window title.
    #ifwinactive, PLAYERUNKNOWN'S BATTLEGROUNDS ; enabled only when in PUBG.
    
    ;#####################
    ;#     Variables     #
    ;#####################
    isMouseShown() ; To suspend script when mouse is visible.
    
    ADS = 0 ; Var for fast aiming.
    CrouchJump = 1 ; Var for crouch when jumping.
    AutoFire = 0 ; Var for autofiring.
    Compensation = 1 ; Var for compensation when autofiring.
    compVal = 8 ; Compensation value. (Default: 8, optimal for short/mid range)
    
    ;########################################
    ;#     Suspends if mouse is visible     #
    ;########################################
    
    
    isMouseShown() ; It suspends the script when mouse is visible (map, inventory, menu).
    {
      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
    }
    
    
    ;#######################
    ;#     Fast Aiming     #
    ;#######################
    
    *RButton:: ; Fast Aiming
    if ADS = 1
    { ; If enabled, clicks once and clicks again when button is released.
      SendInput {RButton}
      SendInput {RButton Down}
      KeyWait, RButton
      SendInput {RButton Up}
    } else { ; If not, just keeps holding until button is released.
      SendInput {RButton Down}
      KeyWait, RButton
      SendInput {RButton Up}
    }
    Return
    
    ;######################
    ;#     CrouchJump     #
    ;######################
    *$Space::
    if CrouchJump = 1
    {
      KeyWait, Space, T0.08
      If ErrorLevel = 1  ; If Space is holding then jumps and crouch.
      {
        SendInput {Space}{c down}
        Sleep 500 ; And keeps crouching 0.5 seconds to improve the jump.
        SendInput {c up}
      } else { ; Else just jumps.
        SendInput {Space}
      }
    } else
      SendInput {Space}
    Return
    
    ;####################
    ;#     AutoFire     #
    ;####################
    ~$*LButton:: ; AutoFire
    If GetKeyState("RButton") ; Only works while holding aim (so you'll be able to throw grenades)
    {
      if (AutoFire = 1 || Compensation = 1)
      {
      	Loop ; If AutoFire or Compensation are activated loops this section.
          {
            Sleep 1
          	GetKeyState, LButton, LButton, P
          	if LButton = U ; If Left Click is released then breaks the loop.
          		Break
              If AutoFire = 1 ; If enabled keeps clicking.
            	  MouseClick, Left,,, 1
              if Compensation = 1 ; If enabled, call to Compensation.
                mouseXY(0, compVal)
            ; Gosub, RandomSleep ; Call to RandomSleep. (Currently unstable)
            Sleep 25
          }
      }
    }
    Return
    RandomSleep: ; Random timing between clicks, just in case.
      Random, random, 14, 25
      Sleep %random%-5
    Return
    
    
    
    
    ;########################
    ;#     Compensation     #
    ;########################
    
    mouseXY(x,y) ; Moves the mouse down to compensate recoil (value in compVal var).
    {
      DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
    }
    
    ;###################
    ;#     ToolTip     #
    ;###################
    
    ToolTip(Text) ; Function to show a tooltip when activating, deactivating or changing values.
    {
      activeMonitorInfo(X, Y, Width, Height) ; Get current resolution
      xPos := Width / 2 - 50
      yPos := Height / 2 + (Height / 10)
    
      ToolTip, %Text%, xPos, yPos ; Tooltips are shown under crosshair.
      SetTimer, RemoveToolTip, 1300 ; Removes tooltip after 1.3 seconds.
      return
      RemoveToolTip:
      SetTimer, RemoveToolTip, Off
      ToolTip
      Return
    }
    
    ;####################################
    ;#     Hotkeys to change values     #
    ;####################################
    
    ; Toggles
    Pause::
    	Suspend
    	if (A_IsSuspended)
      {
    		ToolTip("SCRIPT OFF")
    	} else
    		ToolTip("SCRIPT ON")
    return
    *XButton2::( ADS = 0 ? (ADS := 1,ToolTip("ADS ON")) : (ADS := 0,ToolTip("ADS OFF")) ) ; ADS Toggle
    *NumPadDot::( Compensation = 0 ? (Compensation := 1,ToolTip("Compensation ON")) : (Compensation := 0,ToolTip("Compensation OFF")) ) ; Compensation Toggle
    *NumPad0::( CrouchJump = 0 ? (CrouchJump := 1,ToolTip("CrouchJump ON")) : (CrouchJump := 0,ToolTip("CrouchJump OFF")) ) ; CrouchJump Toggle
    
    ~CapsLock:: ; AutoFire Toggle
    if (GetKeyState("CapsLock","t")=0)
    {
      AutoFire = 0
      ToolTip("AutoFire OFF")
    } else if (GetKeyState("CapsLock","t")=1) {
      AutoFire = 1
      ToolTip("AutoFire ON")
    }
    Return
    
    *NumpadAdd:: ; Adds compensation.
      compVal := compVal + 2
      ToolTip("Compensation " . compVal)
    Return
    
    *NumpadSub:: ; Substracts compensation.
    if compVal > 0
    {
      compVal := compVal - 2
      ToolTip("Compensation " . compVal)
    }
    Return
    
    ;##########################
    ;#     Get Resolution     #
    ;##########################
    
    activeMonitorInfo( ByRef X, ByRef Y, ByRef Width,  ByRef  Height  )
    { ; Retrieves the size of the monitor, the mouse is on
    
    	CoordMode, Mouse, Screen
    	MouseGetPos, mouseX , mouseY
    	SysGet, monCount, MonitorCount
    	Loop %monCount%
        { 	SysGet, curMon, Monitor, %a_index%
            if ( mouseX >= curMonLeft and mouseX <= curMonRight and mouseY >= curMonTop and mouseY <= curMonBottom )
                {
    				X      := curMonTop
    				y      := curMonLeft
    				Height := curMonBottom - curMonTop
    				Width  := curMonRight  - curMonLeft
    				return
    			}
        }
    }
    INFO

    You need Auto Hotkey to run this script, once installed, download pubg-ahk-helper.ahk and you should be able to run it.

    Please set Screen Mode to Window or Windowed Fullscreen, it wont work on FullScreen.

    It'll show you a tooltip under your crosshair whenever you enable/disable or change a value of a module. Tooltips are working for all resolutions.

    You can toggle Pause/Play script with Pause Button (Yes, there is a button for that) Although it only works if PUBG is your active window and the cursor is not visible (e.g. inventory, map... so you can drag items, mark locations, etc)

    ADS (Fast Aiming)

    You'll be able to aim from the ads while holding right click instead of clicking twice. If enabled, clicks once and clicks again when button is released. If not, just keeps holding until button is released.
    [Toggle: Mouse 5 Button]

    Crouch Jump

    Crouch jumping, aka super jump, before you had to press Space and C exactly at the same time, that makes it quite difficult... With this script you can jump normally with single Space press, and super jump if you press and hold Space. So, single press = normal jump, hold space = super jump. Also keeps crouching 0.5 seconds to improve the jump. This will be useful at least until vaulting is released.
    [Toggle: NumPad 0]

    AutoFire

    It'll allow you to shot in Full Auto mode for all semi automatic weapons (e.g. M16, SKS, Mini-14 and Pistols) Only works while holding aim (holding right click) so you'll be able to throw grenades.
    [Toggle: CapsLock]

    Compensation

    Moves the mouse down to compensate recoil, by default is set to 8, which is optimal for short/mid range. Also it only works while holding aim, to allow you throw grenades properly.
    [Toggle: NumPad Dot]
    [Adds Compensation: NumPad +]
    [Substracts Compensation: NumPad -]

    Credits

    Thanks to TheRagingWampa for AutoFire Script

    Changelog

    V0.95: Fixed AutoFire issue when ADS is enabled.

    v0.94: Improved CrouchJump (single space press to jump, keep holding to crouchjump)

    v0.90: Added Suspend toggle Improved ToolTips (all resolutions are now available) Improved Toggles Fixed problem when throwing grenades

    v0.82: Added ToolTips under crosshair Improved AutoFire module (compensation no longer needs to be called inside autofire)

    v0.80: First Release Added ADS module Added CrouchJump module Added AutoFire module Added Compensation module Added toggles to enable/disable modules
    <b>Downloadable Files</b> Downloadable Files
    Last edited by T-800; 10-12-2017 at 09:26 AM.

  2. The Following 354 Users Say Thank You to FxOxAxD For This Useful Post:

    0empty0 (12-12-2017),155319977 (10-30-2017),1935560188 (01-10-2018),2251074 (01-17-2018),2bsheep (11-22-2017),373418787 (10-11-2017),5rBo6 (10-13-2017),974122397 (10-30-2017),980803175 (12-05-2017),a2008asd (10-11-2017),a369629141 (10-15-2017),a3728077 (11-14-2017),a83676187 (01-11-2018),adokun13 (09-29-2018),ADS1221 (06-14-2018),ahdkdl666 (10-13-2017),ajoeys (11-06-2017),akf415 (11-09-2017),Akhlaqchand (05-21-2019),akqjq2577 (11-06-2017),almszaza (10-18-2017),alonesb (11-07-2017),apidotmy (12-20-2017),aquaman111 (11-04-2017),aradons (10-15-2017),arep69 (11-06-2017),aries089 (10-10-2017),asdrubous (02-17-2018),aujv (10-16-2017),aziz41 (12-30-2017),beamkira (10-23-2017),bigbou (10-26-2017),BigCGames (10-11-2017),bigjosa (12-09-2017),bigkillerstorm (10-13-2017),bintian (10-11-2017),bio19931108 (10-16-2017),bizzron (03-25-2018),bolotas (03-03-2020),Bosnjak (10-14-2017),boszeiei (02-23-2018),bowenz123 (10-31-2017),Boxershorts727 (12-03-2017),brightdan (01-30-2018),BROOZAN (09-15-2018),BRUCE-KANG (12-20-2017),MrBoolean (10-14-2017),buendia1984 (11-10-2017),byxiaoxie (11-20-2017),canin (10-11-2017),CapitanManaos (11-16-2017),CasualVrodie (11-07-2017),celo88 (02-23-2019),ChefBoiardee (11-11-2017),chengboy12 (12-03-2017),chonghaozhe (12-29-2017),chtkl (01-17-2018),cobra8900 (10-10-2017),conlonbeo (10-13-2017),crazy3214 (10-15-2017),crespoma (12-11-2017),crow0121 (01-10-2018),csxjzcs (11-30-2017),custardad (11-22-2017),Daberon (10-15-2017),daikii (10-11-2017),dandik (11-01-2017),dangtran31176 (01-05-2018),danielsan00 (12-16-2017),daotac08 (11-08-2017),darkhero666 (11-12-2017),dautruongybb (10-10-2017),dd1020 (10-16-2017),demon-cg (12-10-2017),denizli06 (10-11-2017),Diego382 (11-16-2017),diestroNyk (10-16-2017),djadert (02-26-2018),doens (10-13-2017),Don Broco (10-30-2017),doraemon5 (10-13-2017),downloadkct (11-01-2017),dravenautumn (11-01-2017),Ducard (12-24-2018),durak23 (10-22-2022),dwx1995 (11-04-2017),Effnmouse (10-18-2017),ein91 (10-15-2017),eleabe (11-07-2017),elkahira (10-13-2017),elliryc (07-14-2019),elvisyik (10-29-2017),emilzkieee (10-24-2017),emkhongve0000 (10-18-2017),erickiller2016 (10-19-2017),eskopasko (10-29-2017),etw (10-15-2017),extreme0611 (01-25-2018),faiz466 (02-03-2018),fansheng (01-16-2018),finalmaxgear (10-28-2017),florida_man (10-10-2017),fraxo0 (10-14-2017),freesoulgg (01-09-2019),FykerZ2 (11-15-2017),gamerkickastv1 (02-12-2018),giordanoshai (11-11-2017),glotur2006 (11-07-2017),golfkakza00 (12-02-2017),gothoren55533 (12-07-2017),GSM123 (10-11-2017),GuiPlaysbr (10-15-2017),gustam (08-26-2018),hackerdude2 (10-30-2017),hanqi2865 (10-11-2017),ha_qop (01-07-2018),hexyness (11-02-2017),HJADR (12-10-2017),hoangthach1405 (10-24-2017),hoanhanhthang (10-15-2017),hofman58 (12-22-2017),HoNo135 (11-01-2017),iamzetex (01-24-2018),ikerbboy (11-04-2017),Imzyper (10-14-2017),iRuxu (11-06-2017),issong1 (10-11-2017),J4B3Z (12-03-2017),jaiwie (10-13-2017),jajayou07 (07-23-2018),Jaleel (10-11-2017),jaysim (12-19-2017),JhowBRCG (12-29-2017),jijijinw (12-19-2017),joao96111 (11-01-2017),johnlarkin4 (10-19-2017),jokn504 (10-14-2017),jordan123pal1 (10-10-2017),justforfunm8 (10-19-2017),jw1220 (12-02-2017),KEKISTTTANB (02-19-2018),Kele6688 (11-01-2017),kevinling (12-12-2017),khushaba (10-27-2017),KIMHOE (12-06-2017),kimkrrr (11-01-2017),kinggiball007 (11-25-2017),kirg (10-30-2017),kkkllliii (10-31-2017),Klaus Wiebel (10-21-2017),Kokkermaister (11-07-2017),kordian105 (11-02-2017),koshinator (10-10-2017),kozzaiozzai (10-30-2017),KreptoGames (08-26-2018),KuroNeko394 (01-01-2018),kygoku (11-02-2017),lagostakuzida (10-13-2017),lahung1 (11-10-2017),lc0001 (01-18-2018),LITTLEBREIT28 (10-14-2017),liu007 (04-20-2018),liuluyu (11-11-2017),LKZIRSON (10-17-2017),loveamybg (12-07-2017),lovenarong2 (11-29-2017),lovesmile (11-21-2017),lp1235 (01-10-2018),lqhienpubg (12-05-2017),lso7348 (10-11-2017),lubaliam (01-07-2018),Lukulele (01-11-2018),luna68 (10-12-2017),mafia0013 (10-11-2017),maniexe (10-11-2017),mariusks2 (04-06-2018),markito1 (10-16-2017),marlonloxa (10-12-2017),MASAN (10-04-2021),MathiasBro (11-11-2017),Maximus1979 (10-24-2017),MaxonSaxon (01-11-2018),Merforga (10-10-2017),mhmdhih (10-10-2017),midourez (10-12-2017),mkhm (11-21-2017),mohdazli (12-02-2017),momonpler (10-15-2017),Monsted (11-02-2017),mortemxxx (11-02-2017),most253822 (10-11-2017),mregib (10-13-2020),murz21 (11-29-2017),n28k (10-30-2017),naer8818 (11-01-2017),Najava (01-16-2018),Nakaringong (12-09-2017),NanoZilla (10-14-2017),nattapong50 (12-04-2017),nattapongnoonak (11-09-2018),neechannz (10-21-2017),NewbieSticky (10-15-2017),ngocsondns (12-10-2017),niceyu (04-08-2019),nickopets04 (01-26-2019),nickyyeunggg (10-11-2017),nic_crompton (11-02-2017),noeldson (11-13-2017),Noizedom (12-10-2017),nuengine (11-01-2017),nvannarsdall (01-10-2018),ondlne (10-18-2017),onlinekid (10-15-2017),onoloks (10-31-2017),oopspro (02-08-2019),OPQSDIE (10-16-2017),otakutuzki (10-14-2017),owake (11-08-2017),pannf112 (11-03-2017),pasixireflez (12-24-2017),pc2795061 (10-12-2017),Penguin(nothacking) (11-21-2017),Pens (11-01-2017),Phillip1771 (04-29-2018),phillip_avari (11-05-2017),phong157 (12-12-2017),pijot01 (10-26-2017),pjy7100 (11-13-2017),poltan (11-02-2017),ponziopilato (10-15-2017),povii53 (12-04-2017),princedeku (05-06-2018),prod_ (11-01-2017),progamevn123 (12-21-2017),purplerabbit (10-17-2017),Q8UF (02-10-2022),qaz115115115 (10-16-2017),qq842236004 (10-12-2017),qq900515 (11-13-2017),quangvinh9 (01-14-2018),qvbfmudyni (12-04-2017),radmation (12-26-2017),rahzeiniik (10-15-2017),reew1100 (10-13-2017),rfdsddc (02-07-2019),RiceAX (11-13-2017),rimasfakhri (11-04-2017),Ringinblood (10-10-2017),rlaghdn01 (11-01-2017),Robinson4545 (11-02-2017),RobitNinja (12-06-2017),rokkotun (10-29-2017),Romain144728 (11-06-2017),Rondon36 (11-03-2017),RyZii (11-14-2017),s4asuna (04-17-2019),sadil123 (10-30-2017),sami77 (11-04-2017),sanjuc0321 (12-08-2017),satebjn (01-16-2018),saud_77 (10-12-2017),scorpiof (10-23-2017),Scough (11-01-2017),SCP-114514 (10-20-2017),sdgss (12-20-2017),seshiro4 (11-08-2017),sfx158 (10-22-2017),Sgt.Hippo (10-11-2017),SgUePeEkR (10-30-2017),shan zei (01-29-2018),shardul5711 (12-29-2017),sharljimhtsin (10-23-2017),Shenrio (10-28-2017),shin8708220414 (10-12-2017),sinedds (01-26-2018),skswjdghks (12-07-2017),SkyStardust (10-11-2017),sm0king21 (12-10-2017),Snowbadua (10-11-2017),soc06103 (11-20-2017),soloermy (02-19-2018),Soulkillahh (12-10-2017),srzzmy1994 (10-12-2017),Stajn12 (10-24-2017),standavid199 (10-29-2017),standless100 (12-08-2017),stevenkane (10-13-2017),stranger321 (10-15-2017),suhan (12-14-2017),sukeqb (11-03-2017),superduper124 (12-04-2017),swc72 (11-21-2017),sylentt (07-04-2018),SylphSkye (11-01-2017),TeuzKiller (11-01-2017),TheCookieMC (10-12-2017),TheDevil007 (10-14-2017),TheLimeHit (10-31-2017),theone8x (10-11-2017),tigerzz08989 (10-19-2017),Tinyman110 (08-23-2019),tmxhsw (10-11-2017),tnwjs127 (11-18-2017),TraakaYT (10-11-2017),TurdNerd (10-31-2017),UbiquitousGaming (11-07-2017),Umbrako (11-10-2017),unkut92 (11-01-2017),user101555 (10-30-2017),vcon0312 (10-13-2017),vesais113 (11-16-2017),Vhenla (10-21-2017),viado321 (11-11-2017),virusvirus300 (04-03-2022),vmnb456 (10-12-2017),w64 (10-11-2017),waliking999 (10-10-2017),wesley809 (06-13-2018),WhensSharkWeek (10-14-2017),whyrs (01-24-2018),Wild_Wolfi (11-08-2017),wojiejie313 (10-12-2017),woorarzzangu (12-08-2017),woshiyizi0800 (12-06-2017),Wzrd2k123 (11-01-2017),xdgxdg123 (05-01-2021),xhwteam (01-18-2018),xiaoqinzy (10-12-2017),xkakao (03-18-2018),Xman999 (05-13-2019),xojafafasfa (10-15-2017),xsonic123 (12-08-2017),XWSX (10-24-2017),y7yz (11-07-2017),yaqmoz (12-04-2019),Ypres (10-11-2017),yuhaohu (11-29-2017),yusuf0953 (10-15-2017),Yxp000 (11-20-2017),yy960865209 (12-12-2017),z31drifterlf (12-11-2017),zaoooza1 (10-15-2017),zappintitaki (12-10-2017),zatoeddie (03-02-2020),zerofrueh (10-11-2017),zhz950107 (10-21-2017),zilang721 (10-11-2017),zodiacdignity (11-20-2017),zoul1380 (11-02-2017),zpj0605 (10-10-2017),zxc66232251 (10-15-2017),zxzxcczx1 (11-02-2017),zydycjr (10-14-2017),zyqd (12-01-2017)

Similar Threads

  1. [Release] AHK Game Helper
    By 481k in forum Counter-Strike 2 Scripts
    Replies: 17
    Last Post: 06-17-2016, 01:29 PM
  2. 33 US Senators Voted Against English as America's Official Language!
    By x1xtomx1x in forum United States of America
    Replies: 3
    Last Post: 12-18-2007, 10:25 PM
  3. The Official WarRock Hack, created by K2 Network
    By masaki619 in forum WarRock - International Hacks
    Replies: 44
    Last Post: 12-10-2007, 01:00 PM
  4. Random12 is now officially my bitch :D
    By MikeM in forum General
    Replies: 23
    Last Post: 08-10-2007, 07:22 PM