Sign in to follow this  
Followers 0
Toppy

ControlClick doesn't work

4 posts in this topic

Hi,

I have the following script, but it doen't execute the ControlClick function.

Can anyone tell me what could be the problem please?

Here's the script

If FileExists("C:\Program Files\a-squared Free\a2free.exe") Then
  TrayTip ( "a2 Free", "Updating a2 Free", 3 , 1 )
  If ProcessExists("a2free.exe") Then
  WinActivate ( "a-squared Free" )
  Else
  Run ( "C:\Program Files\a-squared Free\a2free.exe" , "C:\Program Files\a-squared Free\" )
  WinWaitActive("a-squared Free")

EndIf
  ControlClick("a-squared Free","Update now", "TTntButton.UnicodeClass1" )
ProcessWaitClose("a2free.exe")

EndIf

Exit

Share this post


Link to post
Share on other sites



What kind of app makes TTntButton (What language was it written in)?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

What kind of app makes TTntButton (What language was it written in)?

The app is A-Squared Free A-Squared Free

I have no idea about the language its written in. :whistle:

EDIT : Duh! Found it, I had

ControlClick("a-squared Free","update Now", 'TTntButton.UnicodeClass1' ) :)

Edited by Toppy

Share this post


Link to post
Share on other sites

The app is A-Quared Free <a href="http://www.emsisoft.com/en/software/free/" target="_blank"></a>

I have no idea about the language its written in. :whistle:

My guess is it's not a standard Microsoft control, therefore you'll have to figure out another way of doing what you want.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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