1 ahi driver 다운로드 - command line installer 폴더 - ins.cmd 실행
2 ahi folder lib 파일 모으기 - 아래 zip 파일
3 lib 폴더 - Unblocker.ps1 실행
4 ahi folder script 파일 작성
더보기
1 ahi 폴더 생성 <- v2 폴더 전체파일 복사
2 ahi/lib 폴더 <- common/lib 파일 복사
3 ahi/lib 폴더 <- intercep/lib x86 x64 두 폴더 복사
; Ahi info - 사용방법
https://github.com/evilC/AutoHotInterception
; Ahi driver
https://github.com/oblitum/Interception/releases/tag/v1.0.1
; ahi down
https://github.com/evilC/AutoHotInterception/releases
simple code
#Requires AutoHotkey v2.0
#include Lib\AutoHotInterception.ahk
global AHI := AutoHotInterception()
CoordMode "Mouse", "Screen"
s := Random(2335, 2434)
F13::
{
MouseGetPos(&xpos, &ypos)
xpos := (xpos / 3840) * 65535
ypos := (ypos / 2160) * 65535
A_Clipboard := "AHI.SendMouseButtonEventAbsolute(11, 0, 1, " . xpos . ", " . ypos . ") AHI.SendMouseButtonEventAbsolute(11, 0, 0, " . xpos . ", " . ypos . ") `n" "sleep 2333 `n"
Send("^v")
}
#HotIf WinActive("서머너즈워: 크로니클")
f1::
{
; 기존의 고정 좌표 클릭 대신 현재 위치 클릭으로 변경
MouseGetPos(&xpos, &ypos)
xpos := (xpos / 1920) * 65535 ; 화면 해상도에 맞춰 좌표 변환 (예: 1920x1080 기준)
ypos := (ypos / 1080) * 65535
AHI.SendMouseButtonEventAbsolute(11, 0, 1, xpos, ypos)
AHI.SendMouseButtonEventAbsolute(11, 0, 0, xpos, ypos)
sleep ss
}
^f1:: ; war accept
{ loop {
AHI.SendMouseButtonEventAbsolute(11, 0, 1, 38672.4765625, 43143.875) AHI.SendMouseButtonEventAbsolute(11, 0, 0, 38672.4765625, 43143.875)
sleep s
} }
loop 11 { ; scroll down
AHI.SendMouseButtonEventAbsolute(11, 5, -1, 13072.8671875, 37621.944444444445)
sleep 111
}
^f:: ;
{ loop {
AHI.SendKeyEvent(1, GetKeySC("f"), 1) AHI.SendKeyEvent(1, GetKeySC("f"), 0)
Sleep 1234
} }
TrayTip A_Index " 현재 반복 중입니다. "
^\::Reload
^Esc::ExitApp
#hotif
;;;;;;;;;;;;;;;;;;; id / state
0: Left Mouse
1: Right Mouse
2: Middle Mouse
3: Side Button 1
4: Side Button 2
5: Mouse Wheel (Vertical)
6: Mouse Wheel (Horizontal)
btn state 0 (released) or 1 (pressed)
Wheel events, the <state> 1 for Wheel Up / Right and -1 for Wheel Down / Left
N := Random(2222, 3333)
sleep N