[游戏][绝地求生]绝地求生无后坐AHK脚本 目前不封

绝地求生无后坐AHK脚本
; 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 ;Active 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 = 0 ;Var for compensation when autofiring.
compVal = 10 ;Compensation value.



; 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 [default: Right Button]
	if ADS = 1
	{ ;If active, clicks once and clicks again when button is released.
		SendInput {RButton Down}
		SendInput {RButton Up}
		KeyWait, RButton
		SendInput {RButton Down}
		SendInput {RButton Up}
	} else { ;If not, just keeps holding until button is released.
		SendInput {RButton Down}
		KeyWait, RButton
		SendInput {RButton Up}
	}
return



; CrouchJump



*XButton2:: ;Crouch when jumping [default: Button 4]
	if CrouchJump = 1
	{
		SendInput {Space down}
		SendInput {c down}
		SendInput {Space up}
		Sleep 500 ;Keeps crouching 0.5 seconds to improve the jump.
		SendInput {c up}
	}
return



; AutoFire



~$*LButton:: ;AutoFire
	if AutoFire = 1
	{
		loop
		{
			GetKeyState, LButton, LButton, P
			if LButton = U
				break
			MouseClick, Left,,, 1
			gosub, RandomSleep ;Call to RandomSleep.
			if Compensation = 1
			{
				MouseXY(0, compVal) ;If active, call to Compensation.
			}
		}
	}
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)
}



; Tooltips



ToolTip(label) ;Function to show a tooltip when activating, deactivating or changing values.
{
	ToolTip, %label%, 930, 650 ;ToolTips are shown under crosshair for FullHD monitors.
	SetTimer, RemoveToolTip, 1300 ;Removes ToolTip after 1.3 seconds.
	return
RemoveToolTip:
	SetTimer, RemoveToolTip, Off
	ToolTip
return
}



; Hotkeys for changing values



;Toggles
*NumPad1::(ADS = 0 ? (ADS := 1,ToolTip("ADS ON")) : (ADS := 0,ToolTip("ADS OFF")))
*NumPad2::(AutoFire = 0 ? (AutoFire := 1,ToolTip("AutoFire ON")) : (AutoFire := 0,ToolTip("AutoFire OFF")))
*NumPad3::(Compensation = 0 ? (Compensation := 1,ToolTip("Compensation ON")) : (Compensation := 0,ToolTip("Compensation OFF")))
*NumPad0::(CrouchJump = 0 ? (CrouchJump := 1,ToolTip("CrouchJump ON")) : (CrouchJump := 0,ToolTip("CrouchJump OFF")))

*NumpadAdd:: ;Adds compensation.
	compVal := compVal + 5
	ToolTip("Compensation " . compVal)
return

*NumpadSub:: ;Substracts compensation.
	if compVal > 0
	{
		compVal := compVal - 5
		ToolTip("Compensation " . compVal)
	}
	returnv1BZ

	安装autoHotkey,然后点击pubg-ahk-helper.ahk运行即可

	进游戏按照上面武器对应的按键 选择快捷键

	UMP:="F1"

	UZI:="F2"

	AKM:="F3"

	M416:="F4"

	Scar:="F5"

	M16a4:="F6"

	Groza:="F7"

	M249:="home"

	Vector:="F9"

	SKS/MINI-14/M14:="F10"

	Tommygun:="F11"

	Glock:="ins"

	Turn off:="CapsLock"

	Terminate:="Del"

 

给TA捐赠
共{{data.count}}人
人已捐赠
其他

[QQ]基于AHK的QQ群发器新春版(QQ轻聊版适用)

2017-12-3 19:24:08

应用

[游戏][吃鸡]PUBG 绝地求生 吃鸡大跳宏 autohotkey

2017-12-4 22:13:20

7 条回复 A文章作者 M管理员
  1. HIALL

    现在会封吗?

  2. 冥器

    运行不了

    • hexuren

      提示是什么?

  3. 日炎。

    就是个简单的压枪宏 核心是通过DllCall(“Mouse_event”,uint,1,int,x,int,y,uint,0,int,0)进行无脑下压 也没有子弹后座数据

  4. user12945

    现在会封吗?

  5. RorpL

    运行不了

  6. RorpL

    报错如图

个人中心
购物车
优惠劵
有新私信 私信列表
搜索