This is a fast loot script based on the one that "lefkas" posted before, but improved.
Now with a configuration for all resolutions, since the last one seems to not work for all resolutions.
Tutorial
1 - Download the file FastLoot.rar and extract it.
you will see something like this:
2 - at first open the "[CONFIG SCRIPT] RUN ME FIRST.ahk". you will need to use it only in the first time.
3 - in your game press "tab"
4 - remove at least 4 items of your inventory
5 - put your mouse pointer on the middle of each item and press numpad1 for item 1, numpad2 for item 2... until item 4.
you will be setting the position of each item
6 - now you need to set your inventory position, aim at your character's head in tab menu and press numpad5 to save his head position.
7 - Done! it's all configured. just press "del" to close the script and run "[FAST LOOT] RUN ME.ahk".
tutorial video:
Default hotkey is "V", but you may want to change it.
How to change hotkey?
1 - open the "[FAST LOOT] RUN ME.ahk"
2 - press ctrl + F and find "Change your hotkey here"
you will see something like this:
Code:
~V:: ; Change your hotkey here
Just change the letter "V" to another letter.
example, letter "T".
Code:
~T:: ; Change your hotkey here
OBS: Be aware to do not modify any other thing in the code, like spaces and tabs. it may stop your script.
3 - save the code and be happy!
--------------------------------------
If you don't want to download here is the code:
[CONFIG SCRIPT] RUN ME FIRST.ahk
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.
up_item_posX := 200
up_item_posY := 200
up2_item_posX := 300
up2_item_posY := 300
down_item_posX := 400
down_item_posY := 400
down2_item_posX := 500
down2_item_posY := 500
inv_posX := 600
inv_posY := 600
Loop{
ToolTip, Item 1 -> key: numpad1, up_item_posX, up_item_posY,1
sleep 500
ToolTip, Item 2 -> key: numpad2, up2_item_posX, up2_item_posY,2
sleep 500
ToolTip, Item 3 -> key: numpad3, down_item_posX, down_item_posY,3
sleep 500
ToolTip, Item 4 -> key: numpad4, down2_item_posX, down2_item_posY,4
sleep 500
ToolTip, Inventory -> key: numpad5, inv_posX, inv_posY,5
sleep 500
}
*NumPad1::
MouseGetPos, xpos, ypos
up_item_posX = %xpos%
up_item_posY = %ypos%
IniWrite, %up_item_posX%, config.ini, Coordinates, up_item_posX
IniWrite, %up_item_posY%, config.ini, Coordinates, up_item_posY
ToolTip, Item 1 -> key: numpad1, up_item_posX, up_item_posY,1
return
*NumPad2::
MouseGetPos, xpos, ypos
up2_item_posX = %xpos%
up2_item_posY = %ypos%
IniWrite, %up2_item_posX%, config.ini, Coordinates, up2_item_posX
IniWrite, %up2_item_posY%, config.ini, Coordinates, up2_item_posY
ToolTip, Item 2 -> key: numpad2, up2_item_posX, up2_item_posY,2
return
*NumPad3::
MouseGetPos, xpos, ypos
down_item_posX = %xpos%
down_item_posY = %ypos%
IniWrite, %down_item_posX%, config.ini, Coordinates, down_item_posX
IniWrite, %down_item_posY%, config.ini, Coordinates, down_item_posY
ToolTip, Item 3 -> key: numpad3, down_item_posX, down_item_posY,3
return
*NumPad4::
MouseGetPos, xpos, ypos
down2_item_posX = %xpos%
down2_item_posY = %ypos%
IniWrite, %down2_item_posX%, config.ini, Coordinates, down2_item_posX
IniWrite, %down2_item_posY%, config.ini, Coordinates, down2_item_posY
ToolTip, Item 4 -> key: numpad4, down2_item_posX, down2_item_posY,4
return
*NumPad5::
MouseGetPos, xpos, ypos
inv_posX = %xpos%
inv_posY = %ypos%
IniWrite, %inv_posX%, config.ini, Coordinates, inv_posX
IniWrite, %inv_posY%, config.ini, Coordinates, inv_posY
ToolTip, Inventory -> key: numpad5, inv_posX, inv_posY,5
return
*Del::
ToolTip,Script Configured,500,500,6
Sleep 2000
ExitApp
return
[FAST LOOT] RUN ME.ahk
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.
IniRead up_item_posX, config.ini, Coordinates, up_item_posX
IniRead up_item_posY, config.ini, Coordinates, up_item_posY
IniRead up2_item_posX, config.ini, Coordinates, up2_item_posX
IniRead up2_item_posY, config.ini, Coordinates, up2_item_posY
IniRead down_item_posX, config.ini, Coordinates, down_item_posX
IniRead down_item_posY, config.ini, Coordinates, down_item_posY
IniRead down2_item_posX, config.ini, Coordinates, down2_item_posX
IniRead down2_item_posY, config.ini, Coordinates, down2_item_posY
IniRead inv_posX, config.ini, Coordinates, inv_posX
IniRead inv_posY, config.ini, Coordinates, inv_posY
;#####################
;# Fast Loot #
;#####################
~V:: ; Change your hotkey here
if (isMouseShown() == true)
{
Sleep 1
MouseClickDrag, Left,up_item_posX, up_item_posY, inv_posX, inv_posY , 0
Sleep 1
MouseClickDrag, Left, up2_item_posX, up2_item_posY, inv_posX, inv_posY , 0
Sleep 1
MouseClickDrag, Left, down_item_posX, down_item_posY, inv_posX, inv_posY , 0
Sleep 1
MouseClickDrag, Left, down2_item_posX, down2_item_posY, inv_posX, inv_posY , 0
Sleep 1
}
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
}