AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hotkeys for click on menubar - titlebar - scrollbar

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
jamestr



Joined: 05 Apr 2004
Posts: 96
Location: Connecticut USA

PostPosted: Sun May 09, 2004 12:45 am    Post subject: Hotkeys for click on menubar - titlebar - scrollbar Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun May 09, 2004 12:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jamestr



Joined: 05 Apr 2004
Posts: 96
Location: Connecticut USA

PostPosted: Mon Jun 14, 2004 8:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Jun 15, 2004 1:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Jun 15, 2004 4:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
savage



Joined: 02 Jul 2004
Posts: 206

PostPosted: Sat Jul 03, 2004 7:12 pm    Post subject: Reply with quote

The titlebar one would be great for window rolling and whatnot.
Back to top
View user's profile Send private message AIM Address
Beastmaster



Joined: 15 Apr 2004
Posts: 182

PostPosted: Sat Jul 03, 2004 11:33 pm    Post subject: Reply with quote

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 Confused ). 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 Embarassed

Thanks.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jul 03, 2004 11:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Beastmaster



Joined: 15 Apr 2004
Posts: 182

PostPosted: Sun Jul 04, 2004 10:49 am    Post subject: Reply with quote

I'll try it. Very Happy

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 Embarassed ) Thx for your support.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group