Sign in to follow this  
Followers 0
iwak

[IE] Simulate mousemove in IE

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



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

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  
Followers 0