Jump to content

_GUICtrlToolbar_FindToolbar doesn't seem to work anymore


NassauSky
 Share

Recommended Posts

From the autoit doc: https://www.autoitscript.com/autoit3/docs/libfunctions/_GUICtrlToolbar_FindToolbar.htm

On a Windows 10 x64 pc, the following code is now displaying the resulting handle is 0x00000000

#include <GUIConstantsEx.au3>
#include <GuiToolbar.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
        Local $hToolbar

        Run("explorer.exe /root, ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
        WinWaitActive("[CLASS:CabinetWClass]")
        Sleep(1000)
        $hToolbar = _GUICtrlToolbar_FindToolbar("[CLASS:CabinetWClass]", "&File")
        ConsoleWrite("$hToolbar: " & $hToolbar & @CRLF)
        MsgBox($MB_SYSTEMMODAL, "Information", "File Toolbar handle: 0x" & Hex($hToolbar))
EndFunc   ;==>Example

 

Link to comment
Share on other sites

now it's a ribbon, not toolbar

#include <GUIConstantsEx.au3>
#include <GuiToolbar.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
        Local $hToolbar

        Run("explorer.exe /root, ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
        WinWaitActive("[CLASS:CabinetWClass]")
        Sleep(1000)
        $hToolbar = _GUICtrlToolbar_FindToolbar("[CLASS:CabinetWClass]", "This PC")
        ConsoleWrite("$hToolbar: " & $hToolbar & @CRLF)
        MsgBox($MB_SYSTEMMODAL, "Information", "This PC Toolbar handle: 0x" & Hex($hToolbar))
EndFunc   ;==>Example

 

I know that I know nothing

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