Jump to content

ControlClick doesn't work


Toppy
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
Share on other sites

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
Link to comment
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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...