Guest The_End Posted April 27, 2005 Posted April 27, 2005 (edited) Heya, how do I make a script, that can simulate this: Keypress: u mouse: left click (on x,y ) wait: 5 secs It just needs to do it in the open window, thanks.. (prefebly with the option of making it run x times) Edited April 27, 2005 by The_End
andrew.arnott Posted April 27, 2005 Posted April 27, 2005 (edited) $x = whatever number you want... $xcoord = whatever number you want... $ycoord = whatever number you want... For $i = 1 To $x Send("u") MouseClick("left", $xcoord, $ycoord) Sleep(5000) Next Edit: noticed you wanted x,y coordinates Edited April 27, 2005 by andrew.arnott
Guest The_End Posted April 27, 2005 Posted April 27, 2005 Heh, thanks. But I get errors, when I try to run it. It says unknown command, why is that? Something I'm doing wrong, maybe?
layer Posted April 27, 2005 Posted April 27, 2005 I hope you replaced "whatever numbers you want..." with whatever number you wanted FootbaG
Guest The_End Posted April 27, 2005 Posted April 27, 2005 haha, yes. Ofcourse I did that. I copy pasted that to notepad, saved it as *.aut and then tryed to run it. Then it gave me an error on line one, unknown command
MarkMarkMark Posted April 27, 2005 Posted April 27, 2005 U are using a old version of AutoIT .. download the new 1 in the download section
Moderators SmOke_N Posted April 27, 2005 Moderators Posted April 27, 2005 haha, yes. Ofcourse I did that. I copy pasted that to notepad, saved it as *.autand then tryed to run it. Then it gave me an error on line one, unknown command<{POST_SNAPBACK}>SciTE is the preferred editor here, and will help you with your syntax errors. Should you have saved it as .aut or .au3?Good Luck Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Guest The_End Posted April 27, 2005 Posted April 27, 2005 (edited) Edit! Thanks, I found it! Thanks for the help!! Edited April 27, 2005 by The_End
Moderators SmOke_N Posted April 27, 2005 Moderators Posted April 27, 2005 Edit!Thanks, I found it! Thanks for the help!! <{POST_SNAPBACK}>Check the help for HotKey buttons, that will help you to stop or pause it.Congrats. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
MarkMarkMark Posted April 27, 2005 Posted April 27, 2005 if u dont want to loop it: Send("u") MouseClick("left", 100, 100) Sleep(5000)
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