Jump to content
Sign in to follow this  

[IE] Simulate mousemove in IE

Recommended Posts

Hello. It is possible to simulate mouse moving on web page in IE, without really cursor moving?
Something like this:
$oIE.document.mousemove(100, 100)
$oIE.document.mousemove(110, 110)
$spans = _IETagNameGetCollection($oIE, "span")
for $span in $spans
    If isobj($span) Then
Edited by SmOke_N
removed annoying mouse cursor attachment

Share this post

Link to post
Share on other sites

#include <WindowsConstants.au3>

#include <WinAPI.au3>




Something like:

_WinAPI_PostMessage("window client hwnd here", $WM_MOUSEMOVE, 0, _WinAPI_MakeLong("x start position here", "y start position here"))

_WinAPI_PostMessage("window client hwnd here", $WM_MOUSEMOVE, 0, _WinAPI_MakeLong("x end position here", "y end position here"))

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.