litlmike Posted October 5, 2006 Posted October 5, 2006 (edited) For some crazy reason I cannot ControlClick on this GUI, in fact, I can't even WinWaitActivate the GUI window. Any ideas? It is a Stopwatch script from Scripts and Scraps made by i542. I just want to be able to Click on Start and Stop buttons. Thanks in Advance. Download/View Here My Code: Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) WinWait("Stopwatch","") If Not WinActive("Stopwatch","") Then WinActivate("Stopwatch","") WinWaitActive("Stopwatch","") ControlClick ("Stopwatch", "", "Button1") Info on Start Button: Control ID: 3 ClassNameNN: Button1 Text: Start Style: 0x50034001 ExStyle: 0x00000000Info on Stop Button: Control ID: 4 ClassNameNN: Button2 Text: Stop Style: 0x50014001 ExStyle: 0x00000000 Edited October 5, 2006 by litlmike _ArrayPermute()_ArrayUnique()Excel.au3 UDF
litlmike Posted October 5, 2006 Author Posted October 5, 2006 (edited) Ooops, I forgot to paste the code that I am using. See original post. Edited October 5, 2006 by litlmike _ArrayPermute()_ArrayUnique()Excel.au3 UDF
litlmike Posted October 6, 2006 Author Posted October 6, 2006 Anyone have suggestions? _ArrayPermute()_ArrayUnique()Excel.au3 UDF
litlmike Posted October 6, 2006 Author Posted October 6, 2006 He creates 2 GUIs with the Title "Stopwatch"... you are clicking the hidden one. Lar. Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) WinWait("Stopwatch","Start") If Not WinActive("Stopwatch","Start") Then WinActivate("Stopwatch","Start") WinWaitActive("Stopwatch","Start") ControlClick ("Stopwatch", "Start", "Button1")Thank your kindly. Learn something new every day. How did you pick up on that? By looking through the code, or using the Window Tool that comes with AutoIt. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
i542 Posted October 17, 2006 Posted October 17, 2006 Problem will be fixed when I come home... So second window will be called "Stopwatch - Backgrouding" and first "Windows Stopwatch". i542 P.S. Or it will be... I can do signature me.
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