I'm trying to be able to simulate clicks in the RuneScape applet when it's in the background using the ControlClick function, but I can't seem to get it working. The applet just doesn't detect the mouseclick. Here's the line of code:
Code:
ControlClick, %applet%, %WinTitle%, , , , X%rx% Y%ry%
Where applet is the ClassNN of the applet (SunAwtCanvas3 in this case), WinTitle is RuneScape, and rx,ry are the coordinates of where I want to click.
Does anyone see any problems with this? I've made sure that all of the variables are set correctly. Does ControlClick just not work with Java Applets for some reason?