spiderous Posted August 22, 2005 Posted August 22, 2005 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.
GaryFrost Posted August 22, 2005 Posted August 22, 2005 You'll get more help if you put forth an effort, and post what you have so far. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
spiderous Posted August 22, 2005 Author Posted August 22, 2005 (edited) 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 August 22, 2005 by spiderous
/dev/null Posted August 22, 2005 Posted August 22, 2005 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().CheersKurt __________________________________________________________(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 *
BigDod Posted August 22, 2005 Posted August 22, 2005 Use MouseMove to get the mouse to where you want and use MouseClick to do the clicking. 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
spiderous Posted August 22, 2005 Author Posted August 22, 2005 (edited) 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 August 22, 2005 by spiderous
BigDod Posted August 22, 2005 Posted August 22, 2005 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 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
spiderous Posted August 22, 2005 Author Posted August 22, 2005 (edited) 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,500MouseClick("left", 142, 344)sleep(500)Double click at 0,500MouseClick("left", 192, 344)sleep(500)Double click at 0,500MouseClick("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)WendFunc _Exit() ExitEndFuncFunc _StopLoop() $Loop = 0EndFuncFunc _MClick() $Loop = 1 While $LoopDouble click at 0,500MouseClick("left", 158, 344)sleep(500)Double click at 0,500MouseClick("left", 168, 344)sleep(500)Double click at 0,500MouseClick("left", 178, 344)sleep(500) WendEndFunc Edited August 22, 2005 by spiderous
spiderous Posted August 22, 2005 Author Posted August 22, 2005 Can anyone help me and tell me if this is right? Or how to fix it?
LxP Posted August 23, 2005 Posted August 23, 2005 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 ··· ··· ··· ENDIn 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).
BigDod Posted August 23, 2005 Posted August 23, 2005 @LxPHe dumped this post and started another one yesterday.http://www.autoitscript.com/forum/index.php?showtopic=14976 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now