Jump to content

Recommended Posts

Posted

can i get help writing a script that plays gunbound.gme close windowed and presses F5 and F8 over and over again back n forth in a never ending loop?

Posted (edited)

can i get help writing a script that plays gunbound.gme close windowed and presses F5 and F8 over and over again back n forth in a never ending loop?

i mean can i get help running gunbound.gme in the background a game so it can press F5 and F8 back and forth in never ending cycle

like i can go on the internet and it just plays for me and it presses F5 and F8 like F5 F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 F5 F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 F8 F5 etc....

while im on the internet and gunbound.gme plays in background

i am meaning in 0.5 second intervals like between each button

Edited by shingo420
Posted

So you want to make a bot?

These functions could get you started:

ControlSend()

Send()

Sleep()

Have Fun!

what does control send do how can i use it does it loop? and how can i get the script to work with gunbound.gme

its the name of the process in task manager

Posted

what does control send do how can i use it does it loop? and how can i get the script to work with gunbound.gme

its the name of the process in task manager

ControlSend sends keystrokes to a window, even if it is minimized.

ControlSend()

Send()

Sleep()

That will help you what you are achieving. If you want to do it in a loop, there are several ways to loop something. One for instance is..

While 1

*Code*

Wend

Posted

ControlSend sends keystrokes to a window, even if it is minimized.

ControlSend()

Send()

Sleep()

That will help you what you are achieving. If you want to do it in a loop, there are several ways to loop something. One for instance is..

While 1

*Code*

Wend

i keep getting errors with

While 1

ControlSend(gunbound.gme)

Send((F5)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8)(F8

)(F8)(F5))

Sleep(2000)

Wend

needs exit i think ill play with example exits though for mean time

Posted

The controlsend and send are both being used incorrectly

From the help file:

Send ( "keys" [, flag] )

ControlSend ( "title", "text", controlID, "string" [, flag] )

It even goes into how to send a F# key.

Posted

as much as you might want it to you cant just role a dice to string things together!

I would take Volly's AutoIt 1 2 3 tutorial if i was you shingo420 as it looks like your badly in need of it , it really is an excellent place to start out.

Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Posted (edited)

While 1

ControlSend( "GunBound", "", "Edit1", "{F5}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}" )

Sleep (500)

WEnd

uhmmm can i get help i cant get it to press F5 or F8 ingame...

i think i need a new ControlID possibly.... or

can someone gimme a list of control id's and what they do?

like how would i get notepad to ctrl save itself?

thats what i wonder

Edited by shingo420
Posted

Like everyone else has already mentioned, I would suggest you take an AutoIt tutorial before you ask any more questions... Just sayin... It will help you to really understand the things you are asking.

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
×
×
  • Create New...