Jump to content

[IE] Simulate mousemove in IE


iwak
 Share

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)
 
etc..
 
or
$spans = _IETagNameGetCollection($oIE, "span")
for $span in $spans
    If isobj($span) Then
        sleep(10)
        $span.mousemove()
    EndIf
Next
?
Edited by SmOke_N
removed annoying mouse cursor attachment
Link to comment
Share on other sites

  • Moderators

#include <WindowsConstants.au3>

#include <WinAPI.au3>

_WinAPI_PostMessage()

WM_MOUSEMOVE

_WinAPI_MakeLong()

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.

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...