Sign in to follow this  
Followers 0
marciovieira

ControlClick() in ToolbarWindow32

3 posts in this topic

Dear developers forum, I'm trying to improve my script using the function ControlClick () but I have a question:

Example: The application: WINRAR have a control "ToolbarWindow32" when I use the "AutoIt V3 Windows Info" I get the following information:

>>>> Window <<<<

Title: Computer - WinRAR

Class: WinRarWindow

Position: -8, -8

Size: 1296, 776

Style: 0x17CF0000

ExStyle: 0x00000110

Handle: 0x00000000003C06D8

>>>> Control <<<<

Class: ToolbarWindow32

Instance: 2

ClassnameNN: ToolbarWindow322

Name:

Advanced (Class): [CLASS:ToolbarWindow32; INSTANCE:2]

ID: 12

Text:

Position: 11, 2

Size: 1269, 59

ControlClick Coords: 236, 24

Style: 0x56008D65

ExStyle: 0x00000000

Handle: 0x00000000002E00E8

>>>> Mouse <<<<

Position: 247, 68

Cursor ID: 0

Color: 0x131313

>>>> StatusBar <<<<

1:

2:

3: Total 4 pastas

>>>> ToolsBar <<<<

1: 300 Add

2: 301 To Draw

3: 302 Test

4: 303 View

5: 304 Delete

6: 315 Find

7: 314 Assistant

8: 312 INFORMATION

9: 0

10: 305 Recover

>>>> Visible Text <<<<

Computer

Computer

>>>> Hidden Text <<<<

How do I access the buttons listed in: "<<<< ToolsBar >>>> " ???

1: 300 Add

2: 301 To Draw

3: 302 Test

4: 303 View

5: 304 Delete

6: 315 Find

7: 314 Assistant

8: 312 INFORMATION

9: 0

10: 305 Recover

Is it possible?

I thank you all.

Hugs.

Marcio.

Share this post


Link to post
Share on other sites



hi could not know if there is an easier way:

#include <GuiToolbar.au3>

#include <GuiConstantsEx.au3>

Opt('MustDeclareVars', 1)

$Debug_TB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work

_GUICtrlToolbar_ClickButton(_GUICtrlToolbar_FindToolbar ("[CLASS:WinRarWindow]", "Information"), "312", "left", True)

thank you

Marcio.

Share this post


Link to post
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
Sign in to follow this  
Followers 0