starlitsky Posted August 31, 2018 Share Posted August 31, 2018 (edited) 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. Edited August 31, 2018 by starlitsky Link to comment Share on other sites More sharing options...
caramen Posted August 31, 2018 Share Posted August 31, 2018 (edited) 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 August 31, 2018 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
starlitsky Posted August 31, 2018 Author Share Posted August 31, 2018 (edited) 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 August 31, 2018 by starlitsky Link to comment Share on other sites More sharing options...
junkew Posted August 31, 2018 Share Posted August 31, 2018 try simplespy (uses key combination instead of right click) and check FAQ 31. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
starlitsky Posted August 31, 2018 Author Share Posted August 31, 2018 (edited) 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 August 31, 2018 by starlitsky Link to comment Share on other sites More sharing options...
starlitsky Posted August 31, 2018 Author Share Posted August 31, 2018 (edited) 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 August 31, 2018 by starlitsky Link to comment Share on other sites More sharing options...
BrewManNH Posted August 31, 2018 Share Posted August 31, 2018 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 GudeHow 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 More sharing options...
caramen Posted August 31, 2018 Share Posted August 31, 2018 (edited) 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 : But i dont got any Class or Instance. So windowsInfo is dead for you i guess. Try somthing else. Edited August 31, 2018 by caramen starlitsky 1 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 - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
LarsJ Posted September 1, 2018 Share Posted September 1, 2018 It's not that hard. starlitsky 1 Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
starlitsky Posted September 3, 2018 Author Share Posted September 3, 2018 On 2018/9/1 at 7:27 PM, LarsJ said: It's not that hard. Thank for your reply! This is the answer I want to seek! Thank you very much!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now