Sign in to follow this  
Followers 0
XxSunxX

Script for macro.

8 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Look at the HotKeySet example in the help file.

Didn't see it in the help files. :)

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
Share on other sites

#7 ·  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

Share this post


Link to post
Share on other sites

1 working answer is in your other thread. :)

If you only had one, this message wouldn't need to be here.

Share this post


Link to post
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
Sign in to follow this  
Followers 0