Hello guys
I would like to have a hotkey that does its job only at specific coordinates (area). Is it possible? Thanks
Hotkey at specific coordinates Topic is solved
Re: Hotkey at specific coordinates
depends what the "job" is
Re: Hotkey at specific coordinates Topic is solved
Code: Select all
#Requires AutoHotkey v1.1.33
#If inArea(250, 250, 500, 500)
F3::SoundBeep 1500
#If
inArea(x1, y1, x2, y2) {
CoordMode Mouse
MouseGetPos x, y
ToolTip % "(" x ", " y ")"
Return x >= x1 && x <= x2 && y >= y1 && y <= y2
}
Re: Hotkey at specific coordinates
Amazingmikeyww wrote: ↑07 Apr 2023, 18:25Code: Select all
#Requires AutoHotkey v1.1.33 #If inArea(250, 250, 500, 500) F3::SoundBeep 1500 #If inArea(x1, y1, x2, y2) { CoordMode Mouse MouseGetPos x, y ToolTip % "(" x ", " y ")" Return x >= x1 && x <= x2 && y >= y1 && y <= y2 }
Thanks a lot man!
Re: Hotkey at specific coordinates
Is it possible to make it work only in a specific program. e.g. Mozilla Firefox?
Re: Hotkey at specific coordinates
Re: Hotkey at specific coordinates
Thank yountepa wrote: ↑11 Aug 2023, 15:22Try this:
Code: Select all
#If WinActive("ahk_exe firefox.exe") && inArea(250, 250, 500, 500)
Who is online
Users browsing this forum: Rohwedder and 93 guests