NassauSky Posted September 29, 2023 Share Posted September 29, 2023 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 More sharing options...
ioa747 Posted September 29, 2023 Share Posted September 29, 2023 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 NassauSky 1 I know that I know nothing 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