Jump to content

ControlClick doesn't click but return true


Recommended Posts

The ControlClick function in my code below returns "success", but it doesn't click at all my control !!

if WinActivate("Bienvenue") Then
    $resFocus = ControlFocus("Bienvenue", "", "MacromediaFlashPlayerActiveX3")
    $resClick = ControlClick("Bienvenue", "", "MacromediaFlashPlayerActiveX3", "left")
    MsgBox(0, "Go", "Activate : yes | Focus : " & $resFocus & " | Click : " & $resClick)
EndIf

The msgbox displays : "Activate : yes | Focus : 1 | Click : 1"

I can't use Control ID, because it's always different.

Do you know my control isn't clicked ?

Link to comment
Share on other sites

The ControlClick function in my code below returns "success", but it doesn't click at all my control !!

if WinActivate("Bienvenue") Then
    $resFocus = ControlFocus("Bienvenue", "", "MacromediaFlashPlayerActiveX3")
    $resClick = ControlClick("Bienvenue", "", "MacromediaFlashPlayerActiveX3", "left")
    MsgBox(0, "Go", "Activate : yes | Focus : " & $resFocus & " | Click : " & $resClick)
EndIf

The msgbox displays : "Activate : yes | Focus : 1 | Click : 1"

I can't use Control ID, because it's always different.

Do you know my control isn't clicked ?

You say "at all my controls". Is there more than one control with the same ControlID?

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

You say "at all my controls". Is there more than one control with the same ControlID?

Cheers

Kurt

oops, I mean it doesn't click my control "MacromediaFlashPlayerActiveX3".

As far as I know there's only one control called "MacromediaFlashPlayerActiveX3" on my page. I got the ClassNameNN with AutoIt Window Info

This is a Flash button in a frameset.

Thanks Kurt for yout reply

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...