Gravemaskin Posted February 11, 2007 Posted February 11, 2007 Hi, im trying to make a script that sends keypresses with a short delay of 10ms or so while a hotkey is pressed. I wanted to use it for JKA for instance, making blocks easier, or for Magic: The Gathering - Battlegrounds to press i and get mana faster, and can probably think of a dozen more uses for it. :"> Ive seen a few other scripts and such, and tried to make one from that, but it just closes instantly, and i wouldnt be suprised if it dont even work at all HotkeySet("1", "test") Func test() $i = 0 While $i <= 10 ControlSend("Magic: The Gathering - Battlegrounds" ,"","","i") Sleep(10) $i = $i + 1. WEnd Endfunc thanks in advance -G
Developers Jos Posted February 11, 2007 Developers Posted February 11, 2007 (edited) add a loop at the end to avoid the script to finish.. Edited February 11, 2007 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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