Sign in to follow this  
Followers 0
paditepred

mousemove, send, mousemove

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



Try a For Loop

For $x = 1 to 10

///code

Next

Thank you. I tried for days, I can't.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Try a For Loop

For $x = 1 to 10

///code

Next

Yeah you actually told the same thing, I'm dumb. Edited by paditepred

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