Sign in to follow this  
Followers 0
krishpun

How to click on a button in the toolbar

3 posts in this topic

#1 ·  Posted (edited)

I need to click 4th button on the toolbar, can you please help?

AutoIT Window Info has captured the belowpost-62315-0-55057800-1344684016_thumb.p

----------------------------------------------------------

>>>> Window <<<<

Title: Power of Appeals

Class: TMainForm

Position: -9, -9

Size: 1384, 752

Style: 0x17CF0000

ExStyle: 0x00010100

Handle: 0x00100596

>>>> Control <<<<

Class: TToolBar

Instance: 1

ClassnameNN: TToolBar1

Name:

Advanced (Class): [CLASS:TToolBar; INSTANCE:1]

ID: 1901352

Text:

Position: 0, 0

Size: 1366, 33

ControlClick Coords: 211, 20

Style: 0x5600084E

ExStyle: 0x00010000

Handle: 0x001D0328

>>>> Mouse <<<<

Position: 220, 81

Cursor ID: 0

Color: 0xF0F0F0

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

Print Reports, Forms, Labels & Envelopes

>>>> Hidden Text <<<<

post-62315-0-69896300-1344684220_thumb.p

Edited by krishpun

Share this post


Link to post
Share on other sites



-_- Is this what you want?

$HWND = WinWaitActive("Power of Appeals", "")
ControlClick($HWND, "", "[CLASS:TToolBar; INSTANCE:1; ID:1901352]")

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

Yes, Thanks a lot

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