Jump to content
Sign in to follow this  
spiderous

Easy script help please

Recommended Posts

spiderous

Would anyone wright a script for me, I need the mouse to move to 3 points with 4 clicks at each point and like a 1/4 second pause between points. then Pause 2 seconds and repeat.

I will add the exact screen location later. Also will you add a start/stop button please.

Thank you SO much for this.

Share this post


Link to post
Share on other sites
spiderous

this is what I have, I need to know how to make it go to 3 points and click 5 times in the new version. The only scripting I know is from the old version of AutoIt.

I am looking for help.

Sleep ( 5000 )

MouseClick("left", 296, 56, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 3)

Sleep ( 1000 )

MouseClick("left", 264, 251, 3)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 326, 53, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 3)

Sleep ( 1000 )

MouseClick("left", 264, 251, 3)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 359, 48, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 3)

Sleep ( 1000 )

MouseClick("left", 264, 251, 3)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 395, 51, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1500 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 456, 53, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1000 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 486, 52, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1000 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

MouseClick("left", 515, 49, 1)

Sleep ( 1500 )

MouseClick("left", 212, 259, 2)

Sleep ( 1000 )

MouseClick("left", 264, 251, 2)

Sleep ( 1500 )

MouseClick("left", 738, 662, 1)

Sleep ( 1500 )

MouseClick("left", 571, 407, 1)

Sleep ( 4000 )

MouseClick("left", 694, 603, 1)

Sleep ( 1500 )

MouseClick("left", 753, 593, 1)

Sleep ( 1500 )

MouseClick("left", 581, 392, 1)

Sleep ( 1500 )

Goto, myLoop /

Edited for wrong script post.

Edited by spiderous

Share this post


Link to post
Share on other sites
/dev/null

this is what I have,  I need to know how to make it go to 3 points and click 5 times not just  keep clicking.  The only script I know is from the old version of AutoIt. 

MouseMove().

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
BigDod

Use MouseMove to get the mouse to where you want and use MouseClick to do the clicking.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
spiderous

ok.. so It would be something like

MoveMouse(xxx,xxx)

_MClick(left)

sleep (500)

MoveMouse(xxx,xxx)

_MClick(left)

sleep (500)

MoveMouse(xxx,xxx)

_MClick(left)

sleep (500)

Im so lost here... The old scripting was tough enough for me. This is.. well just plain confusing.

Edited by spiderous

Share this post


Link to post
Share on other sites
BigDod

Here is the sample script for MouseClick straight from the help file. You could modify it do do what you require (if I understand your requirements) without using MouseMove.

; Double click at the current mouse pos
MouseClick("left")
MouseClick("left")

; Double click at 0,500
MouseClick("left", 0, 500, 2)


; SAFER VERSION of Double click at 0,500

Dim $primary
Dim $secondary
;Determine if user has swapped right and left mouse buttons
$k = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")

; It's okay to NOT check the success of the RegRead operation
If $k = 1 Then
    $primary = "right"
    $secondary = "left"
Else;normal (also case if could not read registry key)
    $primary = "left"
    $secondary = "right"
EndIf
MouseClick($primary, 0, 500, 2)
Exit


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
spiderous

Here is the sample script for MouseClick straight from the help file. You could modify it do do what you require (if I understand your requirements) without using MouseMove.

; Double click at the current mouse pos
MouseClick("left")
MouseClick("left")

; Double click at 0,500
MouseClick("left", 0, 500, 2)
; SAFER VERSION of Double click at 0,500

Dim $primary
Dim $secondary
;Determine if user has swapped right and left mouse buttons
$k = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")

; It's okay to NOT check the success of the RegRead operation
If $k = 1 Then
    $primary = "right"
    $secondary = "left"
Else;normal (also case if could not read registry key)
    $primary = "left"
    $secondary = "right"
EndIf
MouseClick($primary, 0, 500, 2)
Exit

<{POST_SNAPBACK}>

I don't understand how this . I need to move to 3 points pause 1/4 seconds between each point and click upto 5 timees in the pause.

So then a script that moves would be something like

Double click at 0,500

MouseClick("left", 142, 344)

sleep(500)

Double click at 0,500

MouseClick("left", 192, 344)

sleep(500)

Double click at 0,500

MouseClick("left", 158, 344)

sleep(500)

If so How do I loop it and pust a pause?

Like this?

HotKeySet("{Home}","_MClick")

HotKeySet("{End}","_StopLoop")

HotKeySet("{ESC}","_Exit")

While 1

Sleep (10)

Wend

Func _Exit()

Exit

EndFunc

Func _StopLoop()

$Loop = 0

EndFunc

Func _MClick()

$Loop = 1

While $Loop

Double click at 0,500

MouseClick("left", 158, 344)

sleep(500)

Double click at 0,500

MouseClick("left", 168, 344)

sleep(500)

Double click at 0,500

MouseClick("left", 178, 344)

sleep(500)

Wend

EndFunc

Edited by spiderous

Share this post


Link to post
Share on other sites
spiderous

Can anyone help me and tell me if this is right? Or how to fix it?

Share this post


Link to post
Share on other sites
LxP

Can you please write the entire desired procedure of your script in pseudo-code? Example:

START
···
···
···
pause for 5 seconds
move to point (100, 200)
click twice
···
···
···
END

In doing so you will make what you're trying to achieve clear to us. You may even find that once you've done this you won't need much further help since each line will likely correspond to an AutoIt command (if it's anything like my example above).

Share this post


Link to post
Share on other sites
BigDod

@LxP

He dumped this post and started another one yesterday.

http://www.autoitscript.com/forum/index.php?showtopic=14976



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.