Thanks for your response, Mikeyww. Regarding my script, these are the answers to your questions:
1) When I run the script, it does nothing. Pressing AltGr + or nothing happens, whether the icon is visible or not visible.
The result I expect is that, when the icon is visible, when I press AltGr + o, the script will click on the toolbar to display a menu.
2) The search does not return any results.
3) The coordinates are relative to the client area of the active window.
Regarding your script, a window appears that says: Result:
Title: Autohotkey - Tablacus Explorer
found = 0.
So I added the image address in your script
Code: Select all
#Requires AutoHotkey v2.0
WinActive('ahk_exe paintdotnet.exe')
image := 'F:\Documents\AutoHotkey\Imágenes ImageSearch AHK\Herramienta Formas Paint.net.png'
x1 := 70
y1 := 70
x2 := 100
y2 := 100
found := ImageSearch(&x, &y, x1, y1, x2, y2, image)
MouseMove x1, y1
MsgBox 'Title:`n' WinGetTitle('A') '`n`nfound = ' found, 'Result', 'Iconi'