BigJeff Posted June 26, 2007 Share Posted June 26, 2007 I need help making a script to do the following I need a mouse click make it any position on the screen I can put in my own numbers where the X and Y access of the screen if I can just get a script to click some place on the screen then tell it to do a keyboard move of Pressing Control Shift and Delete to erase the cookies on Mozilla Firefox then I need to to repeate the Click every 2 seconds.. I doing a voting deal I need to figure this out so I don't have to sit there and Do Control shift Delete and then mouse click every 2 seconds I want it to run indefinatly until I press Escape.. I've Done this Before but someone else has set up the script so PLEASE someone Help me Big Jeff Link to comment Share on other sites More sharing options...
Leighwyn Posted June 26, 2007 Share Posted June 26, 2007 I need help making a script to do the followingI need a mouse click make it any position on the screen I can put in my own numbers where the X and Y access of the screenif I can just get a script to click some place on the screenthen tell it to do a keyboard move of Pressing Control Shift and Delete to erase the cookies on Mozilla Firefoxthen I need to to repeate the Click every 2 seconds..I doing a voting deal I need to figure this out so I don't have to sit there and Do Control shift Delete and then mouse click every 2 secondsI want it to run indefinatly until I press Escape..I've Done this Before but someone else has set up the script so PLEASE someone Help meBig JeffMouse ClickingKey PressingTime WaitingHotkey Setting Link to comment Share on other sites More sharing options...
Paulie Posted June 26, 2007 Share Posted June 26, 2007 Mouse ClickingKey PressingTime WaitingHotkey SettingYou took the links right out of my..hands...? Link to comment Share on other sites More sharing options...
Wolffe Posted June 26, 2007 Share Posted June 26, 2007 (edited) You would probably get help much more quickly if you posted something that you had tried to make using the help files. Than if you just show up and ask for a script. Most people get offended if you just show up 'begging'. Having said that, I am no great coder with Autoit by any means. And it took me all of about 5 minutes to create a script that does this. Edit: Spelling Edited June 26, 2007 by Wolffe Link to comment Share on other sites More sharing options...
Valuater Posted June 26, 2007 Share Posted June 26, 2007 You would probably get help much more quickly if you posted something that you had tried to make using the help files. Thank if you just show up and ask for a script. Most people get offended if you just show up 'begging'. Having said that, I am no great coder with Autoit by any means. And it took me all of about 5 minutes to create a script that does this.I've Done this Before but someone else has set up the scriptobviously Wolffe is correct, the first person didn't really help you learn anything8) Link to comment Share on other sites More sharing options...
BigJeff Posted June 26, 2007 Author Share Posted June 26, 2007 Well Wolfe this is what I tried MouseClick ( "left" 483,393 ) send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] ) Sleep(5000) ;five seconds repeate ; Press Esc to terminate script, Pause/Break to "pause" Link to comment Share on other sites More sharing options...
BigJeff Posted June 26, 2007 Author Share Posted June 26, 2007 Well Wolfe this is what I tried MouseClick ( "left" 483,393 ) send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] ) Sleep(5000) ;five seconds repeate ; Press Esc to terminate script, Pause/Break to "pause" that didn't work i have No Idea Link to comment Share on other sites More sharing options...
Paulie Posted June 26, 2007 Share Posted June 26, 2007 (edited) Well Wolfe this is what I tried MouseClick ( "left" 483,393 ) send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] ) Sleep(5000) ;five seconds repeate ; Press Esc to terminate script, Pause/Break to "pause"You weren't too horrible, but i think more can be done if you were to look at the EXAMPLES on the bottom of each page help file Just a tip, Try "Loops" instead of the "word" "repeate" Edited June 26, 2007 by Paulie Link to comment Share on other sites More sharing options...
Leighwyn Posted June 26, 2007 Share Posted June 26, 2007 that didn't work i have No Idea MouseClick ( "left" 483,393 ) send ( "CTRLDOWN"+"SHIFTDOWN"+"DELETE" [, flag] ) Sleep(5000) ;five seconds repeate ; Press Esc to terminate script, Pause/Break to "pause" I just wanted you to attempt before I gave actual code to you, sorry. You're mostly just screwed up on syntax, but also some fundamentals. Here is more what you would want: HotKeySet("{ESC}","quitprog") While 1 MouseClick("left",483,393) send("^+{DEL}") sleep(5000) WEnd func quitprog() Exit EndFunc The while loop runs forever, and is killed when you use your hotkey (esc) since it will then execute quitprog(). For the send command, the ^+{DEL} is a shorthand way of saying "press CONTROL+SHIFT+DELETE". Link to comment Share on other sites More sharing options...
BigJeff Posted June 26, 2007 Author Share Posted June 26, 2007 I just wanted you to attempt before I gave actual code to you, sorry. You're mostly just screwed up on syntax, but also some fundamentals. Here is more what you would want: HotKeySet("{ESC}","quitprog") While 1 MouseClick("left",483,393) send("^+{DEL}") sleep(5000) WEnd func quitprog() Exit EndFunc The while loop runs forever, and is killed when you use your hotkey (esc) since it will then execute quitprog(). For the send command, the ^+{DEL} is a shorthand way of saying "press CONTROL+SHIFT+DELETE". THANK YOU Link to comment Share on other sites More sharing options...
Astormooke Posted June 26, 2007 Share Posted June 26, 2007 (edited) THANK YOUor this is a little more complicated but it can be used easier.... HotKeySet("{esc}","end") HotKeySet("`","ss") While 1 Sleep(100) $m = MouseGetPos() ToolTip($m[0]&","&$m[1],$m[0] + 20,$m[1] + 20) WEnd Func ss() $m = MouseGetPos() While 1 MouseClick("left",$m[0],$m[1]) Send("{CTRLDOWN}" & "{shiftdown}" & "{del}" & "{ctrlup}" & "{shiftup}") Sleep(5000) WEnd EndFunc Func end() Exit EndFunc Edited June 26, 2007 by vintorecavaj Link to comment Share on other sites More sharing options...
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