Re: AutoHotKey скрипт. Допустим я зажимаю ЛКМ и скрипт быстро нажимает ЛКМ. Можно сам
#
NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
; iloveesl
NRA := 1
; SS
^!p::Suspend
; 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
; #
IF (AutoFire = "1")
~*LButton::
While GetKeyState("LButton", "P") {
SendInput, {vk01}
Random, sleep_value, 100,150
Sleep, % sleep_value
if Compensation = 1
mouseXY(0, compVal)
}
Return
#
IF
Return
; Compensation
mouseXY(x,y) ;Moves the mouse down to compensate recoil (value in compVal var).
{
DllCall("mouse_event",uint,1,int,0,int,7,uint,y,int,3)
}
; 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)
}
Return
Insert::Suspend
#NoEnv,
#IF