clouddstrife Posted July 16, 2007 Share Posted July 16, 2007 i want to make a bot that does that : Left Click Esc Enter Repeatedly. can someone help me ? first project also i want it to do it extremely fast with no bugs Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 16, 2007 Share Posted July 16, 2007 Look up MouseClick, Send, and loops (probably While loops) in the help file. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 (edited) i dont understand .. any link ? well be grateful if you do it for me Edited July 16, 2007 by clouddstrife Link to comment Share on other sites More sharing options...
SadBunny Posted July 16, 2007 Share Posted July 16, 2007 i want to make a bot that does that :Left ClickEscEnterRepeatedly. can someone help me ?first project also i want it to do it extremely fast with no bugs Look up Send() in the help file. Also use the Opt("KeyDownDelay",<some value>) to make sure that your game registers the keypresses. Read the helpfile, experiment, and if you can't get any further, get back on the forum and explain the problem. If possible, post the code you have tried already so people can see what went wrong and help you improve it.In general, peeps here will not be writing your code for you from scratch, but if you show how far you got, you are very likely to get help with getting through roadblocks or bughunting. Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
lilx Posted July 16, 2007 Share Posted July 16, 2007 (edited) i want to make a bot that does that : Left Click Esc Enter Repeatedly. can someone help me ? first project also i want it to do it extremely fast with no bugs while 1 mouseclick ( "Left" ) (this will hit mouse click where mouse located at the time) want more seccure way put the cordinates) send ("{ESC}") Send ( "{ENTER}" ) sleep ( 10 ) ( 10 is the fasted if you don't want your cpu run to 100% ) wend but read the help that is how i came to where i am to today ( as a beginner no noob more ) Edited July 16, 2007 by lilx Link to comment Share on other sites More sharing options...
lilx Posted July 16, 2007 Share Posted July 16, 2007 (edited) and realy trust me readin the help! REALLY Helps i did write it for you becuase it's fast to write but like someone els said there not always gonna write your program! sorry for dubbel post guys Edited July 16, 2007 by lilx Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 (edited) thanks anyway u can do it : if press Insert = start Home = Pause Page Up = Stop ? oh and btw error at line 5. Edited July 16, 2007 by clouddstrife Link to comment Share on other sites More sharing options...
DW1 Posted July 16, 2007 Share Posted July 16, 2007 thanks anyway u can do it :if press Insert = startHome = PausePage Up = Stop ?oh and btw error at line 5.What? lol AutoIt3 Online Help Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 Line 5 (file place) sleep (10) (10 is fasted if u dont want bla bla 100% cpu) error : UNTERMINATED STRING. Link to comment Share on other sites More sharing options...
lilx Posted July 16, 2007 Share Posted July 16, 2007 umhh i well let you learn this on on your own you will need this HotKeySet() and Func () Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 NOOOOOOOOOO PLS DONT LEAVE ME ALONE :CRY: Link to comment Share on other sites More sharing options...
lilx Posted July 16, 2007 Share Posted July 16, 2007 Line 5 (file place) sleep (10) (10 is fasted if u dont want bla bla 100% cpu) error : UNTERMINATED STRING. you didn't need to copy the last () is was only to explain you here copy this one while 1 mouseclick ( "Left" ) send ("{ESC}") Send ( "{ENTER}" ) sleep ( 10 ) wend Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 THANKS help me with start = inster , pause = home , stop = page up Link to comment Share on other sites More sharing options...
cageman Posted July 16, 2007 Share Posted July 16, 2007 (edited) thanks anyway u can do it : if press Insert = start Home = Pause Page Up = Stop ? oh and btw error at line 5. HotKeySet("{INSERT}", "start") HotKeySet("{HOME}", "TogglePause") HotKeySet("{PGUP}", "Exit") dim $paused Func start() while 1 mouseclick ( "Left" ) send ("{ESC}") Send ( "{ENTER}" ) sleep ( 10 ) Wend Endfunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) WEnd EndFunc Func Exit() Exit() Endfunc Edited July 16, 2007 by cageman Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 (edited) OMG I LOVE YOU error : LINE 0 (FILE NAME) FUNC EXIT () ERROR : BADLY FORMATTED ''FUNC'' STATEMENT. Edited July 16, 2007 by clouddstrife Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 error Link to comment Share on other sites More sharing options...
cageman Posted July 16, 2007 Share Posted July 16, 2007 OMG I LOVE YOUerror : LINE 0 (FILE NAME)FUNC EXIT ()ERROR : BADLY FORMATTED ''FUNC'' STATEMENT.HotKeySet("{PGUP}", "Exit") change to HotKeySet("{PGUP}", "stopit")Func Exit() change to Func stopit() Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 when i open it nothing happens . it closes itself after 0.00001 second. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 16, 2007 Developers Share Posted July 16, 2007 What about you guys stop firing posts here and think and test a bit first every now and then ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
clouddstrife Posted July 16, 2007 Author Share Posted July 16, 2007 what about you acting alittle nice ? they are helping 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