lallan Posted November 28, 2013 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.
Automationuser Posted November 28, 2013 Posted November 28, 2013 1. Get the handle of the toolbar. 2. Use _GUICtrlToolbar_ClickIndex($hWnd, $iIndex) to click on the button
lallan Posted November 28, 2013 Author 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
Automationuser Posted November 29, 2013 Posted November 29, 2013 Can you post the properties of the frame toolbar from Autoit info tool?
lallan Posted November 29, 2013 Author 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?
Automationuser Posted December 2, 2013 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.
junkew Posted December 2, 2013 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
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