Jump to content

help making me this bot


Recommended Posts

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

i want to make a bot that does that :

Left Click

Esc

Enter

Repeatedly.

can someone help me ?

first project :whistle:

also i want it to do it extremely fast with no bugs :lmao:

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

i want to make a bot that does that :

Left Click

Esc

Enter

Repeatedly.

can someone help me ?

first project :whistle:

also i want it to do it extremely fast with no bugs :lmao:

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 by lilx
Link to comment
Share on other sites

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 by lilx
Link to comment
Share on other sites

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 () :whistle: 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

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 by cageman
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...