lallan Posted November 28, 2013 Share Posted November 28, 2013 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. Link to comment Share on other sites More sharing options...
Automationuser Posted November 28, 2013 Share Posted November 28, 2013 1. Get the handle of the toolbar. 2. Use _GUICtrlToolbar_ClickIndex($hWnd, $iIndex) to click on the button Link to comment Share on other sites More sharing options...
lallan Posted November 28, 2013 Author Share Posted November 28, 2013 (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 November 28, 2013 by lallan Link to comment Share on other sites More sharing options...
Automationuser Posted November 29, 2013 Share Posted November 29, 2013 Can you post the properties of the frame toolbar from Autoit info tool? Link to comment Share on other sites More sharing options...
lallan Posted November 29, 2013 Author Share Posted November 29, 2013 Sorry Automationuser. I am quite new with Autoit.Could you please let me know how to do it? How we can get properties? Link to comment Share on other sites More sharing options...
Automationuser Posted December 2, 2013 Share Posted December 2, 2013 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. Link to comment Share on other sites More sharing options...
junkew Posted December 2, 2013 Share Posted December 2, 2013 Probably this thread can help but as you are a starter probably is not easy enough'?do=embed' frameborder='0' data-embedContent>> FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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