Jump to content

Recommended Posts

Posted

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
 

  • Developers
Posted (edited)

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

Posted

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.

Posted

Excuse me, but I dont understand your comments which are too smart for me.

My only concern is: Can I find a function for Submenus like the one for Menus (_GUICtrlMenu_FindItem)?

Posted
Posted

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?

 

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
  • Recently Browsing   0 members

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