sieurcoug Posted January 4, 2007 Posted January 4, 2007 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 ?
/dev/null Posted January 4, 2007 Posted January 4, 2007 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 *
sieurcoug Posted January 4, 2007 Author Posted January 4, 2007 You say "at all my controls". Is there more than one control with the same ControlID?CheersKurtoops, 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 InfoThis is a Flash button in a frameset.Thanks Kurt for yout reply
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