Jump to content

Submenus listing


SASL
 Share

Recommended Posts

Hello,

I want to check a specific submenu (File explorer --> View --> extra large icons).

My code is like this:


ShellExecuteWait("C:\WINDOWS\EXPLORER.EXE",@ScriptDir)
$hWnd=WinWaitActive(@ScriptDir, "", 0)
$nnn=_GUICtrlMenu_GetMenu($hWnd)
$nnnn=_GUICtrlMenu_FindItem($nnn,"view")
ConsoleWrite($nnnn)

I get 3 which is the correct order of "View".

What would be the next line to find the submenu "extra large icons"?

Thanks for help.

 

but i get a failure
 

Link to comment
Share on other sites

  • Developers

Why are you trying to use _GUI* UDFs as the shown GUI isn't your own?
I see you did it earlier with the appropriate command:

If that doesn't work then post your script that is runnable as the posted script is obviously not working.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Hi.

You are perfectly right: using Send works, as stated earlier.

But I want to identify and manipulate submenus as another way to get the result.

So how can I list the submenus of a specific selected Menu ? For example if I want to check Ascending or Descending View in File Explorer?

Thanks for your quick reply.

Link to comment
Share on other sites

Yes WinList does provide all File Explorer handles and titles.  You need to look at little closer.  To help you, you could list all windows classes along with the handle, it would make it obvious then.

Link to comment
Share on other sites

I tried this one 

WinList("[CLASS:CabinetWClass]") and it gave me 2 items: one is File Explorer and the other has the name of the Directory I am exploring.

When using the handles, I couldn't get any Menu from them !

What to do?

 

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...