AutoHotkey Community

It is currently May 27th, 2012, 11:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: September 9th, 2010, 2:24 pm 
Offline

Joined: September 15th, 2009, 7:16 pm
Posts: 67
Location: Ga, USA
I'm using code that allows a user to move up and down a listbox using arrow keys.

when the user right clicks on the selected item, I want to pop up a gui, so i use Guicontextmenu. The mouse is not always at the selected line, but the context menu need to pop up at the selected line.

How ?

Do I need to use line heights and font sizes ? painful


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2010, 2:38 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
MouseGetPos wrote:
Retrieves the current position of the mouse cursor, and optionally which window and control it is hovering over.
Source: http://www.autohotkey.com/docs/commands/MouseGetPos.htm
:?:

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2010, 9:16 pm 
Offline

Joined: September 15th, 2009, 7:16 pm
Posts: 67
Location: Ga, USA
The mouse may be somewhere else entirely, the user can interact with the listbox with up and down arrows to their selection and then hit enter to select. The mouse does not track their selection. Thus getmousepos is not useable


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2010, 11:07 pm 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6074
Location: San Diego, California
Some of your statements. made in different replies. are contradictory.

>>when the user right clicks on the selected item, I want to pop up a gui, so i use Guicontextmenu.

>>The mouse may be somewhere else entirely

Nevertheless, I believe I have what you want.
Please see my post on your prior thread.
http://www.autohotkey.com/forum/viewtop ... 389#381389


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group