내가 지금 부터 복붙하는 내용을 메모장에 붙여놓고 파일이름을 확장자까지 똑같이 스크린샷처럼 저장하면됨.
#include IfWinActive.ahk
#include Optimizer.ahk
global Scripts_Array := Array()
Clipboard := 0
Scripts_Array.insert("Mouse Simulation\Basic\RButton.ahk")
Scripts_Array.insert("Mouse Simulation\Direction\Down.ahk")
Scripts_Array.insert("Mouse Simulation\Direction\Left.ahk")
Scripts_Array.insert("Mouse Simulation\Direction\Right.ahk")
Scripts_Array.insert("Mouse Simulation\Direction\Up.ahk")
Scripts_Array.insert("Mouse Simulation\Movement.ahk")
Scripts_Array.insert("Mouse Simulation\Sensitivity.ahk")
Scripts_Array.insert("Mouse Simulation\Numpad4.ahk")
Scripts_Array.insert("Mouse Simulation\Numpad5.ahk")
Scripts_Array.insert("Mouse Simulation\Numpad6.ahk")
Scripts_Array.insert("Mouse Simulation\Numpad8.ahk")
For idx, val in Scripts_Array{
ahk_file := "Scripts\" . val
Run, %ahk_file%
}
#include IfWinActive.ahk
#include Optimizer.ahk
global ADS_Sensitivity := False
global initSpeed := speed := 46 ; 기호에 맞게 알맞게 조정. 64 32 16 8 과 같은 2의 승수 추천
global delay := 1
global invertAxis := False
Loop
{
xDir := yDir := 0
(down := GetKeyState("NumpadAdd", "P") && GetKeyState("Numpad8", "P")) ? --yDir
(left := GetKeyState("NumpadAdd", "P") && GetKeyState("Numpad4", "P")) ? --xDir
(right := GetKeyState("NumpadAdd", "P") && GetKeyState("Numpad6", "P")) ? ++xDir
(up := GetKeyState("NumpadAdd", "P") && GetKeyState("Numpad5", "P")) ? ++yDir
invertAxis ? yDir := -yDir
if(GetKeyState("NumpadAdd", "P") && Clipboard = "ADS_Sensitivity_OneSixteenth"){
if(ADS_Sensitivity = True){
speed := initSpeed / 16
}
else{
speed := initSpeed / 32
}
}
else if(GetKeyState("NumpadAdd", "P") && Clipboard = "ADS_Sensitivity_Quarter"){
if(ADS_Sensitivity = True){
speed := initSpeed / 8
}
else{
speed := initSpeed / 16
}
}
else if(GetKeyState("NumpadAdd", "P") && Clipboard = "ADS_Sensitivity_Half"){
if(ADS_Sensitivity = True){
speed := initSpeed / 4
}
else{
speed := initSpeed / 8
}
}
else if(GetKeyState("NumpadAdd", "P")){
if(ADS_Sensitivity = True){
speed := initSpeed / 2
}
else{
speed := initSpeed / 4
}
}
else{
speed := initSpeed
}
if(xDir && yDir){
x := Round(xDir * speed * 0.707)
if(GetKeyState("NumpadAdd", "P")){
y := Round(yDir * speed * 0.707)
}
else{
y := Round(yDir * speed * 0.707 * (9 / 16))
}
}
else{
x := (xDir * speed)
if(GetKeyState("NumpadAdd", "P")){
y := (yDir * speed)
}
else{
y := (yDir * speed * (9 / 16))
}
}
mouseMove(x, y, delay)
}
return
mouseMove(x, y, delay){
DllCall("mouse_event", "UInt", 0x0001, "UInt", x, "UInt", y, "UInt", 0, "UInt64P", 0)
DllCall("Sleep", "UInt", delay)
}
;Numpad4::return
;Numpad5::return
;Numpad6::return
;Numpad8::return
*Numpad2::return
*Numpad3::return
*NumpadDot::return
*NumpadSub::return
#include IfWinActive.ahk
#include Optimizer.ahk
~NumpadAdd & CapsLock::
Clipboard := "ADS_Sensitivity_Half"
KeyWait, CapsLock
KeyWait, CapsLock, d t0.15
If(ErrorLevel){
;
}
else{
Clipboard := "ADS_Sensitivity_Quarter"
KeyWait, CapsLock
KeyWait, CapsLock, d t0.15
If(ErrorLevel){
;
}
else{
Clipboard := "ADS_Sensitivity_OneSixteenth"
KeyWait, CapsLock
}
}
Clipboard := ""
return
댓글 0