| View previous topic :: View next topic |
| Author |
Message |
jamestr
Joined: 05 Apr 2004 Posts: 96 Location: Connecticut USA
|
Posted: Sun May 09, 2004 12:45 am Post subject: Hotkeys for click on menubar - titlebar - scrollbar |
|
|
It would be nice if you could add additional mouse hotkeys such as:
LmouseTitleBar ::
RmouseMenuBar::
Mmouse VerticalScrollBar::
and so forth.
Thats a feature I've used in macexp. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun May 09, 2004 12:53 am Post subject: |
|
|
| Interesting idea. I was thinking of adding something that allows detection of which window and/or control the mouse is currently hovering over. This might allow you do make your mouse buttons context sensitive the way you describe. |
|
| Back to top |
|
 |
jamestr
Joined: 05 Apr 2004 Posts: 96 Location: Connecticut USA
|
Posted: Mon Jun 14, 2004 8:56 pm Post subject: |
|
|
| Quote: | | Interesting idea. I was thinking of adding something that allows detection of which window and/or control the mouse is currently hovering over. |
yes that would be nice. I just wrote a macexp script that uses that exact feature.
It responds to a 'right click' over Opera's 'menu bar' , and triggers the script.
macexp also has a "RmouseMenuBar::"
type function, but it didnt recognize Opera's menu bar.
so instead I had the script detect the control under the mouse and compare it to operas 'menu bar' control (value = OUIWINDOW). |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Jun 15, 2004 1:58 am Post subject: |
|
|
One feature of interest was added in v1.0.12: "Improved MouseGetPos to optionally retrieve the unique ID number of the window under the mouse cursor. This ID number can be used in the WinTitle parameter of all windowing commands by preceding it with the string ahk_id."
However, it doesn't seem like the above would be needed in your example, since if you right click on an Opera window, it should be active, which in turn should allow MouseGetPos to report the cursor's coordinates relative to that window. If the coordinates are in the menu area, maybe that's all that's needed.
But to make it more exact, maybe it would be best to improve MouseGetPos so that it can also retrieve the name of the control under the mouse cursor, even if that control is in an inactive window. I think this is an easy change so will try to get it in the next release. Thanks for the idea. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Jun 15, 2004 4:02 pm Post subject: |
|
|
| Quote: | LmouseTitleBar ::
RmouseMenuBar::
Mmouse VerticalScrollBar:: |
They seem like great features. Hopefully they will get added sometime in the next month or so. |
|
| Back to top |
|
 |
savage
Joined: 02 Jul 2004 Posts: 206
|
Posted: Sat Jul 03, 2004 7:12 pm Post subject: |
|
|
| The titlebar one would be great for window rolling and whatnot. |
|
| Back to top |
|
 |
Beastmaster
Joined: 15 Apr 2004 Posts: 182
|
Posted: Sat Jul 03, 2004 11:33 pm Post subject: |
|
|
| Quote: | | Improved MouseGetPos to optionally retrieve the unique ID number of the window under the mouse cursor. This ID number can be used in the WinTitle parameter of all windowing commands by preceding it with the string ahk_id." |
I need something similar (or is it the other way around ). There's one control (a "column bar", heading a list control. Unfortunately the naming on each separate column header can't be detected with Window Spy, so all af them are named the same. I've to get an ascending sort within the list field by clicking with the mouse onto that one specific column header ("No. Lines"). Currently I click onto it using a static mouse position. I would be happy if I could "advise" the mouse to move to that control to click it
Thanks. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Jul 03, 2004 11:53 pm Post subject: |
|
|
| You could try using ControlGetPos to get the control's position, and then mouse-clicking at an offset from that position (if the column is always the same x & y distance from its control's upper left corner). |
|
| Back to top |
|
 |
Beastmaster
Joined: 15 Apr 2004 Posts: 182
|
Posted: Sun Jul 04, 2004 10:49 am Post subject: |
|
|
I'll try it.
Well, I've to apologize. It came up that it makes sense to check which release you're working with before requesting an additional command (I used the "historic" 1.0.12 on my NoBo while working with another release on the server ) Thx for your support. |
|
| Back to top |
|
 |
|