Sign in to follow this  
Followers 0
vtsc

Failed to click on link

2 posts in this topic

Hi All,

I'm new to AutoIT, (In fact just tried out yesterday).

I would like to automate one of the test application which able download from http://www.realtech-vr.com/glview/download.html

I have sucessfully automated the installation process. When run the program, i need to click on one of the link which labeled "Rendering Test".

I'm using ControlClick to do this , but it failed to click. However, it can only perform the 'click' when i manually move my mouse cursor over the "Redendring Test"label.

Any idea to resolve this ?

Below is my script, hopefully can get any expert help. thx !

;run OGL viewer

Run("cmd /k C:\openglex.lnk")

; InstallShield Wizard

WinWait("OpenGL Extensions Viewer 3.16")

sleep(8000)

While WinExists("OpenGL Extensions Viewer 3.16", "Task")

WinActivate("OpenGL Extensions Viewer 3.16", "Rendering tests")

ControlClick("OpenGL Extensions Viewer 3.16", "Rendering tests", "WindowsForms10.STATIC.app.0.378734a40", "LEFT", 1)

WEnd

Share this post


Link to post
Share on other sites



Welcome to the forum.

Please post the output of the the AutoIt tool, this will be most informative. Also code tags are great.

I suggest you have a look at ControlGetHandle and ensure that you are getting the correct handle based on the args given. From there you can use the output of ControlGetHandle for the input to the other control functions. Its a cleaner.

;run OGL viewer
Run("cmd /k C:\openglex.lnk")

; InstallShield Wizard
WinWait("OpenGL Extensions Viewer 3.16")
Sleep(8000)

While WinExists("OpenGL Extensions Viewer 3.16", "Task")
    WinActivate("OpenGL Extensions Viewer 3.16", "Rendering tests")
    ControlClick("OpenGL Extensions Viewer 3.16", "Rendering tests", "WindowsForms10.STATIC.app.0.378734a40", "LEFT", 1)
WEnd

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

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