Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Working on context menu

$
0
0

Hi all,

 

I am working on an application which has a list view, and can open a context menu on each one of the list item.

 

How can I get information about the menu?

 

I managed to go through the menu items by sending "down" commands. 

But how can I check for example the items text?

 

I tried this:

 

$hMenu = _GUICtrlMenu_GetMenu($hListViewHandle)
 
$itemtext =_GUICtrlMenu_GetItemText($hMenu, 1)
 
ConsoleWrite("Menu item text: " & $itemtext & @CRLF)
 
but $itemtext was empty.

 

I think my problem is getting the menu handler, because I am familiar with the _GUICtrlMenu functuions.

 

Thanks!


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>