Jump to content

Recommended Posts

Posted

Hello, I'm planning to make a Bot/Macro/Auto-er (Whatever you wish to call it) for a game. Could someone give me an example script that presses a key.

EXAMPLE: Press 1 and the key Z is pressed over and over until the key 1 is pressed again.

Thanks,

------XxSunxX :)

Posted

Hi,

have a look at hotkeyset

and at

while 1

send("z")

Sleep(5)

Wend

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

Hi,

have a look at hotkeyset

and at

while 1

send("z")

Sleep(5)

Wend

So long,

Mega

I tried this but it kept pressing Z, I couldn't stop it and had to restart my computer. I need a script that can be stopped. EXAMPLE: Press 1, z is autoed, press 1 and z is stopped.

Posted (edited)

You didn't see it in the helpfile ? Did you try to search for it or even browsing your way through it ?

Are you sure you're opening the correct helpfile ?

EDIT : oh, I forgot...what's the deal with people having those x's in the beginning and end of their nicknames ?

Edited by Helge
Posted (edited)

To make it stop just have an If _IsPressed statement inside the While-Loop that will exit the loop.

If _IsPressed(31) Then ; If 1 key is pressed
    ExitLoop ; Exit Loop
EndIf
Edited by BALA
[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

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
  • Recently Browsing   0 members

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