Jump to content

How to get handle and text from context menu?(By right mouse click of file)


Recommended Posts

How to get handle and text from the context menu? (the image is shown below)

For example, show in the picture, I want to check if the "CRC SHA" exists in the context menu. Simply, somebody can turn the context menu into an array?

 

I can't use the "Autoit window Info"  tool, because of when I click another window the context menu will disappear, so I can't get the information I want with this tool.

Since I have checked almost all discussion of this topic, but I still can't find any solution I want. So I start a new topic to seek this answer.

Almost all solution contains the file <Auto3Lib.au3> or <A3LMenu.au3>, but it seems didn't support anymore. 

I also find the <GuiMenu.au3> but I can't even get the "control ID" of the context menu...

I search for this solution for a whole week, but I can't get any solution work for me.

2018-08-31_LI (2).jpg

Edited by starlitsky
Link to comment
Share on other sites

You can use Windows info if you dont freeze it and move the mouse over the wanted submenu. Then you can freeze it again. 

 

You can freeze wininfo with ctrl+alt+f if i remember

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

43 minutes ago, caramen said:

You can freeze wininfo with ctrl+alt+f if i remember

Thank for your quick reply. But when I try to press the ctrl+alt+f then the context menu will disappear immediately. So I still can't use this way to get any information.

This context menu appears after I click the right mouse click, I can't without a click to show that.

Edited by starlitsky
Link to comment
Share on other sites

5 minutes ago, junkew said:

try simplespy (uses key combination instead of right click) and check FAQ 31.

Thank for your reply. I tried before, I can't use anyway to keep the context menu exists, only if I didn't press any key or mouse click.

Edited by starlitsky
Link to comment
Share on other sites

I think I should give up to use "win info" tool because it really can't do it.

Quote

 

The answer I want to seek was "How to get handle and text from the context menu?"

For example, show in the picture, I want to check if the "CRC SHA" exists in the context menu. Simply, somebody can turn the context menu into an array?

 

 

Edited by starlitsky
Link to comment
Share on other sites

Turn off freeze mode BEFORE clicking the context menu, it will stay off until you turn it back on again, or close the app.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Look i tryed to do the same of you. 

 

-1) I simply opened my windows info tool. 

-2) I unfreeze it.

-3) I right click on any file

-4) going to the sub menu 

-5) When i am on any wanted control i freeze windows info tool WITHOUT MOUVING MY MOUSE (the sub menu will desapear BUT the information showed wont change if you dont move the mouse. )

-7) My windows info tool is now like this :  

image.png.5aa2fc09508e3ce9a69d386066e9b849.pngimage.png.bd3d5056ff4c1ca918906ca8b43b8703.png

 

But i dont got any Class or Instance. So windowsInfo is dead for you i guess. Try somthing else.

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...