 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Scratch
Joined: 22 Jan 2009 Posts: 72
|
Posted: Thu Mar 18, 2010 8:07 pm Post subject: function MouseIsOver("ahk_class",x1,y1,x2,y2) |
|
|
In AHK_L we have:
If, MouseIsOver("ahk_class Shell_TrayWnd")
function to determine Mouse is over certain window/control,
or used as directive:
#If, MouseIsOver("ahk_class Shell_TrayWnd")
for context sensitive hotkey.
Proposing to extend this function with optional X/Y parameters to determine if mouse is over a certain rectangle within that window/control
If no ahk-class in quotes given, X/Y rectangle in Active window would be assumed. |
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
|
| Back to top |
|
 |
lexikos* Guest
|
Posted: Fri Mar 19, 2010 3:13 am Post subject: |
|
|
| MouseIsOver really has nothing to do with AHK_L, except that it's useful in combination with #If. Your first example should work fine in standard AHK (assuming you define the MouseisOver function somewhere). I suppose it would be a simple matter of using WinGetPos with the ahk_id returned by MouseGetPos and comparing to the supplied X/Y. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|