Jump to content

Help me code auto it screen swipe


Recommended Posts

Please Help me code auto it screen swipe. I try to code screen swipe but not success.

I use this code but it' cannot swipe my device.

_SendMessage($hWnd, $WM_MOUSEMOVE,   0, _WinAPI_MakeLong($x1, $y1))
    _SendMessage($hWnd, $WM_LBUTTONDOWN, 1, _WinAPI_MakeLong($x1, $y1))
    Sleep(100);
    _SendMessage($hWnd, $WM_MOUSEMOVE,   1, _WinAPI_MakeLong($x2, $y2)) 
    _SendMessage($hWnd, $WM_LBUTTONUP,   0, _WinAPI_MakeLong($x2, $y2)) 

Link to comment
Share on other sites

Since it was obviously too cumbersome for you to deliver a runable code, here just a link :

https://www.autoitscript.com/forum/topic/198659-wm_mousemove-not-moving/

Edited by Musashi
typo

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

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