Sign in to follow this  
Followers 0
lallan

How to click button in a toolbar having tooltip name?

7 posts in this topic

Hi,

   I want to click a button in particular frame of GUI.

The button has tool tip name displayed there.

Please help me.Thanks a ton in advance.

 

Share this post


Link to post
Share on other sites



1. Get the handle of the toolbar.

2. Use _GUICtrlToolbar_ClickIndex($hWnd, $iIndex) to click on the button

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thanks Automationuser.I tried to do the same but there is issue. I am trying to click on button of toolbar for a frame which is added to the main window. In that case i have used below code.

WinActivate("Frame_XYZ")

$hWnd = ControlGetHandle("[CLASS:Frame_XYZ]", "", "[CLASS:ToolbarWindow32;INSTANCE:1]")

_GUICtrlToolbar_ClickIndex($hWnd, 4)

 

But in above case it click on tollbar of main window not the frame_XYZ which is added to the main window. Please help me.

Edited by lallan

Share this post


Link to post
Share on other sites

Can you post the properties of the frame toolbar from Autoit info tool?

Share this post


Link to post
Share on other sites

Sorry Automationuser. I am quite new with Autoit.Could you please let me know how to do it?

How we can get properties?

Share this post


Link to post
Share on other sites

click on the AutoItinfo.exe from installed path and drag the Finder tool in the window on the toolbar. You will get the control properties with Class, instance, ID etc.

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