XxSunxX Posted January 29, 2007 Posted January 29, 2007 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
Xenobiologist Posted January 29, 2007 Posted January 29, 2007 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
XxSunxX Posted January 29, 2007 Author Posted January 29, 2007 Hi,have a look at hotkeyset and at while 1send("z")Sleep(5)WendSo long,MegaI 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.
xcal Posted January 29, 2007 Posted January 29, 2007 Look at the HotKeySet example in the help file. How To Ask Questions The Smart Way
XxSunxX Posted January 29, 2007 Author Posted January 29, 2007 Look at the HotKeySet example in the help file.Didn't see it in the help files.
Helge Posted January 29, 2007 Posted January 29, 2007 (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 January 29, 2007 by Helge
BALA Posted January 30, 2007 Posted January 30, 2007 (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 January 30, 2007 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
Paulie Posted January 30, 2007 Posted January 30, 2007 1 working answer is in your other thread. If you only had one, this message wouldn't need to be here.
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