Jump to content

Does Autoit Support ControlClick() on a Java Applet Control Currently?


Recommended Posts

I tried this many times with different variation but is having no luck so far. I need to send mouse click to the background browser running a Java Applet. I tried MouseClick() and the click is okay. But I need the automated browser running in the background so I've to used ControlClick(). But so far, all I can do with ControlClick() is to cause the Applet to click on the current position of the cursor even I've explicitly specified another x,y coordinate in the ControlClick() call. A click can be simulated but always on the wrong location.

Is it a limitation of Java Applet ? Here is my test code:

WinActivate("ShowApplet")
WinWaitActive("ShowApplet")
sleep(1500)

; no click done at all if using Internet Explorer_Server control
;ControlFocus ( "ShowApplet", "", "[CLASSNN:Internet Explorer_Server1]")
;ControlClick ("ShowApplet", "", "[CLASSNN:Internet Explorer_Server1]","left", 1, 11,290)


; For SunAwtCanvas control. only clicks on the current cursor position, not the 216,390 I specified

ControlFocus ( "ShowApplet", "", "[CLASSNN:SunAwtCanvas1]")
ControlClick ("ShowApplet", "", "[CLASSNN:SunAwtCanvas1]","left", 1, 216,390)
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...