View Full Version : Scripting to control mouse movements
fire1822
05-16-2001, 11:23 AM
I don't know if it is possible for the scripting host to control the movement of the mouse, but I am trying to create a script that will determine the location of the cursor and move it according to the script until interrupted by the user. I am very new to scripting, this seems like a very simple task, I hope it is, however I cannot find any reference material on the net reffering to such commands.
Thank you
<font color=red>Shaun Morgan</font color=red>/images/w3t/icons/cool.gif
RWSchlatter
05-16-2001, 08:56 PM
"...to control the movement of the mouse..."
in any case, you cannot control mouse movement - that is entirely up to the user ! J assume you wanted to ask: how do J track mouse movement ?
J need to point out to you , that scripting is not a full-powered programming language. And it depends where you wish to do scripting.
(a) as a script file started in Windows to control apps and perform simple management tasks - then the answer is No.
(b) as a script executed within a browser page embedded in the HTML - then J believe the browser interface will give you access to a mouse object and lets you get the position. Look for one of those samples that let you draw a mouse path.
Sorry - cannot give you a link for this one.
______________
Regards - Richard
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.