je voudrais que la ahk appuis sur la touch f des qu'il vois une image
a peu comme si dessou mais avec la touch f
Code: Select all
SetTitleMatchMode=2
WinGet, client, ID, Blade & Soul
CoordMode, Pixel, Screen
WinActivate, ahk_id %client%
MouseGetPos,,, WinID, WinCon
SetControlDelay 0
Loop
{
ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *50 escape.png
if ErrorLevel = 0
{
ControlSend, ahk_parent, {Escape}, ahk_id %WinID%
sleep 3000
}
else if ErrorLevel = 1
{
sleep 100
}
else if ErrorLevel = 2
{
MsgBox Cannot open image or bad format
ExitApp
}
}
return