Jump to content

mousemove, send, mousemove


Recommended Posts

Hi, can you help with this?

I need to do 2 mousemoves

Send "1"

And then 2 other mousemoves

It should repeat but with "2" and then "3"... until "10" and then stop.

MouseMove("left", 200, 200, 1)

MouseMove("left", 220, 220, 1)

MouseMove("left", 400, 400, 1)

MouseMove("left", 420, 420, 1)

What code should I put in the middle?

Link to comment
Share on other sites

Hi, can you help with this?

I need to do 2 mousemoves

Send "1"

And then 2 other mousemoves

It should repeat but with "2" and then "3"... until "10" and then stop.

MouseMove("left", 200, 200, 1)

MouseMove("left", 220, 220, 1)

MouseMove("left", 400, 400, 1)

MouseMove("left", 420, 420, 1)

What code should I put in the middle?

Before you write anything in the middle get the outsides right :D From the parameters you have used I assume you mean MouseClick not MouseMove

For $x = 1 To 10; for the 10 values you want to send
    MouseClick("left", 200, 200, 1)
    MouseClick("left", 220, 220, 1)

    Send($x);even though you normally use a string for Send, the function is smart enough to convert it for you

    MouseClick("left", 400, 400, 1)
    MouseClick("left", 420, 420, 1)
Next
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Before you write anything in the middle get the outsides right :D From the parameters you have used I assume you mean MouseClick not MouseMove

For $x = 1 To 10; for the 10 values you want to send
    MouseClick("left", 200, 200, 1)
    MouseClick("left", 220, 220, 1)

    Send($x);even though you normally use a string for Send, the function is smart enough to convert it for you

    MouseClick("left", 400, 400, 1)
    MouseClick("left", 420, 420, 1)
Next
I can't believe my eyes. Thank you.
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...