Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

move the mouse randomly

How can I write a program so that it will call the win api and move the mouse
randomly in the internet explorer?
[116 byte] By [ip266] at [2007-11-10 0:20:10]
# 1 Re: move the mouse randomly
I don't think IE supports setting the mouse position, only retreiving it.

steve

"ip266" <ip266@yahoo.com> wrote in message news:38d21688@news.dev-archive.com...
>
> How can I write a program so that it will call the win api and move the
mouse
> randomly in the internet explorer?
Steve Cochran at 2007-11-11 20:04:11 >
# 2 Re: move the mouse randomly
I don't think IE supports setting the mouse position, only retreiving it.

steve

"ip266" <ip266@yahoo.com> wrote in message news:38d21688@news.dev-archive.com...
>
> How can I write a program so that it will call the win api and move the
mouse
> randomly in the internet explorer?
Steve Cochran at 2007-11-11 20:05:17 >
# 3 Re: move the mouse randomly
Hi,

I'm not sure if this helps but I happened upon it today. Try this api call:

Public Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x
As Long, ByVal y As Long) As Long

Regards,

Rick

ip266 wrote:

> How can I write a program so that it will call the win api and move the mouse
> randomly in the internet explorer?
Rick McLean at 2007-11-11 20:06:16 >
# 4 Re: move the mouse randomly
Hi,

I'm not sure if this helps but I happened upon it today. Try this api call:

Public Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x
As Long, ByVal y As Long) As Long

Regards,

Rick

ip266 wrote:

> How can I write a program so that it will call the win api and move the mouse
> randomly in the internet explorer?
Rick McLean at 2007-11-11 20:07:14 >