piyanut Posted June 2, 2015 Posted June 2, 2015 (edited) How to use ControlClick in button ToolStrip1? ControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "ToolStrip1", "left", 1, 174) ?? that not work Edited June 2, 2015 by piyanut
Moderators JLogan3o13 Posted June 2, 2015 Moderators Posted June 2, 2015 Hi, piyanut, welcome to the forum. Can you please expand a little on your request? What is the application? What is the full AutoIt Window Info Tool output for that control? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
piyanut Posted June 2, 2015 Author Posted June 2, 2015 Thanks, JLogan3o13i would like to use function ControlClick in in button ToolStrip1 but when i using this codeControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "ToolStrip1", "left", 1, 174)nothing happen how to ?This is infoHow to use function to click Load User?
Moderators JLogan3o13 Posted June 2, 2015 Moderators Posted June 2, 2015 The capitalization in your code if off, based on the Window Info. Have you tried it exactly as it is typed?ControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "toolStrip1") "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
piyanut Posted June 2, 2015 Author Posted June 2, 2015 Hello,i try to use this code Local $hWnd = WinWait("[CLASS:WindowsForms10.Window.8.app.0.2bf8098_r13_ad1]", "", 10) WinActivate($hWnd) Sleep(3) ControlClick("[CLASS:WindowsForms10.window.8.app.0.378734a]", "", "toolStrip1")But ControlClick not working
Autolaser Posted June 2, 2015 Posted June 2, 2015 WindowsForms10.window.8.app is not a Winwows-Standardcontrol !Please search the forum for "ControlClick WindowsForms" and you will find a few threads on this subject.change Name to Advanced Mode Test this$hWnd = "Camfrog Pro" If WinExists($hWnd) Then WinActivate($hWnd) WinWaitActive($hWnd) ControlClick($hWnd, "", "[NAME:toolStrip1]","Left",1) Regards Autolaser
piyanut Posted June 3, 2015 Author Posted June 3, 2015 WindowsForms10.window.8.app is not a Winwows-Standardcontrol !Please search the forum for "ControlClick WindowsForms" and you will find a few threads on this subject.change Name to Advanced Mode Test this$hWnd = "Camfrog Pro" If WinExists($hWnd) Then WinActivate($hWnd) WinWaitActive($hWnd) ControlClick($hWnd, "", "[NAME:toolStrip1]","Left",1)Thanks it work i have new question how to detect messagebox and do something?
Moderators JLogan3o13 Posted June 3, 2015 Moderators Posted June 3, 2015 What does the AutoIt Window Info Tool tell you about that popup? Follow the same methodology to detect that window as you did for the first one. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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