#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#ifWinActive ahk_class LaunchUnrealUWindowsClient
F1:: ; 取色标签.
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
cFun(x,y) ;自定义捕捉已知的坐标的颜色函数.
{
PixelGetColor, color, x,y,RGB
StringRight, color, color, 10
return color
}
XButton1:: ;侧键按下,执行卡刀
#Persistent
SetTimer, pressN, 0
PressN
send r ;左右2卡刀 左右卡刀位rt.
send t
return
XButton1 UP:: ;侧键弹起.
SetTimer, PressN, off
return
#x::
exitapp ;卡死按.
return
#MaxHotkeysPerInterval 1000 ;响应时间超过1秒显示警告窗口.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#ifWinActive ahk_class LaunchUnrealUWindowsClient
F1:: ; 取色标签.
MouseGetPos, mouseX, mouseY
PixelGetColor, color, %mouseX%, %mouseY%, RGB
StringRight color,color,10 ;
tooltip, %mouseX%,%mouseY%颜色是:%color%
return
cFun(x,y) ;自定义捕捉已知的坐标的颜色函数.
{
PixelGetColor, color, x,y,RGB
StringRight, color, color, 10
return color
}
XButton1:: ;侧键按下,执行卡刀
#Persistent
SetTimer, pressN, 0
PressN
send r ;左右2卡刀 左右卡刀位rt.
send t
return
XButton1 UP:: ;侧键弹起.
SetTimer, PressN, off
return
#x::
exitapp ;卡死按.
return
#MaxHotkeysPerInterval 1000 ;响应时间超过1秒显示警告窗口.