实现1
;Settings adjusted by KratosHaynes
;Credits to HHenryYYT
SendMode Input
;Adjust sens below
;Settings
;============
;===============================
sens:=1
zoomsens:=0.01
;Binds
;============
;==============================
;Key Bind
key_Terminate:="F1"
;Sens
;==========
;=============================
;Don't touch, only if you know what this does.
modifier:=2.52/sens
modifierr:=2.600/sens
modifiers:=2.52/sens
amodifier:=2/sens
modifierz:=1.9/sens
;Script
;========
;============================
;180 Turnaround If you want to change the hotkey: Change the "z" to your chosen button below this instruction
*~$z::
DllCall("mouse_event", "UInt", 0x01, "UInt", 223*modifiers, "UInt", 0)
sleep 1
DllCall("mouse_event", "UInt", 0x01, "UInt", 432*modifiers, "UInt", 0)
sleep 1
DllCall("mouse_event", "UInt", 0x01, "UInt", 432*modifiers, "UInt", 0)
sleep 1
DllCall("mouse_event", "UInt", 0x01, "UInt", 432*modifiers, "UInt", 0)
sleep 1
DllCall("mouse_event", "UInt", 0x01, "UInt", 432*modifiers, "UInt", 0)
sleep 1
DllCall("mouse_event", "UInt", 0x01, "UInt", 432*modifiers, "UInt", 0)
sleep 1
DllCall("mouse_event", "UInt", 0x01, "UInt", 432*modifiers, "UInt", 0)
sleep 1
DllCall("mouse_event", "UInt", 0x01, "UInt", 432*modifiers, "UInt", 0)
sleep 200
return
F1::ExitApp
return
实现2
#NoEnv
#SingleInstance, Force
SendMode, Input
SetBatchLines, -1
SetWorkingDir, %A_ScriptDir%
; 仅制作了不瞄准的180度转向,瞄准与否,对应的鼠标灵敏度不同,转向角度也不同。
; SPEED决定转向速度,LOOP_TIMES决定转向幅度。
LOOP_TIMES := 23
SPEED := -1200 ; Set It To -300 To Go To The Left
[key]::
Loop, %LOOP_TIMES%
{
DllCall("mouse_event", uint, 1, int, SPEED, int, 0, uint, 0, int, 0)
Sleep, 10
}
return