Sending key when Mouse button clicked at certain point on screen
Posted: 11 Apr 2021, 09:58
Code: Select all
#IfWinActive ahk_class IrfanView
LButton::
MouseGetPos,xpos, ypos
If (ypos >170 and ypos <570)
{
Msgbox %ypos%
Send, {Space}
}
#IfWinActive
Return
Please help with inputs/solutions. Thanks.