This is a fast loot script based on the one that "lefkas" posted before, but improved.
it may work for all resolutions and only on pubg, I couldn't test if someone get a problem feel free to ask me help.
Tutorial:
1 - Install AHK
2 - Create a AHK document
3 - take the code in this topic and put inside of the document
4 - save and open.
How to change hotkey?
1 - press ctrl + F
2 - insert "Change your hotkey here"
3 - you will see something like this:
Code:
~V:: ; Change your hotkey here
Change "V" to whatever key you want, you can find a list in google. search for "ahk keylist" (I'm not allowed to post links)
example (changed to T):
Code:
~T:: ; Change your hotkey here
------------------------------------------------------------
Script Code[FAST LOOT]:
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force ;It allows to run only one at the same time.
SetTitleMatchMode, 2 ;Matching for window title.
#ifwinactive, PLAYERUNKNOWN'S BATTLEGROUNDS ;Active only when in PUBG.
activeMonitorInfo(X, Y, Width, Height) ; Get current resolution
;#####################
;# Fast Loot #
;#####################
~V:: ; Change your hotkey here
if (isMouseShown() == true)
{
ScreenRatio := ((Width/Height) - 0.6)
ModResX := (Width/1680) * ScreenRatio
ModResY := (Height/1050) * ScreenRatio
MouseClickDrag, Left, 88 * ModResX, 156*ModResY, 831* ModResX, 300*ModResY , 0
Sleep 1
MouseClickDrag, Left, 91* ModResX, 214*ModResY, 831* ModResX, 300*ModResY , 0
Sleep 1
MouseClickDrag, Left, 165* ModResX, 293*ModResY, 831* ModResX, 300*ModResY , 0
Sleep 1
MouseClickDrag, Left, 164* ModResX, 401*ModResY, 831* ModResX, 300*ModResY , 0
Sleep 1
}
Sleep 15
return
isMouseShown()
{
StructSize := A_PtrSize + 16
VarSetCapacity(InfoStruct, StructSize)
NumPut(StructSize, InfoStruct)
DllCall("GetCursorInfo", UInt, &InfoStruct)
Result := NumGet(InfoStruct, 8)
if Result > 1
Return true
else
Return false
}
;##########################
;# 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
}
}
}
known bugs:
- sometimes mouse pointer appears in your screen ( for now just press esc to fix)
video: