Quote Originally Posted by ninjaman4bit View Post

known bugs:

- sometimes mouse pointer appears in your screen ( for now just press esc to fix)

You can fix that with this code

Code:
DllCall("SystemParametersInfo", UInt, 0x0017, UInt, 0, UInt, 0, UInt, 0x01)
So your new code is this;

Code:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance force
SetTitleMatchMode, 2

DllCall("SystemParametersInfo", UInt, 0x0017, UInt, 0, UInt, 0, UInt, 0x01)

#ifwinactive, PLAYERUNKNOWN'S BATTLEGROUNDS

activeMonitorInfo(X, Y, Width, Height)

~V::
	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
}

activeMonitorInfo( ByRef X, ByRef Y, ByRef Width,  ByRef  Height  )
{
	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
			}
		}
}