Jump to content
Sign in to follow this  


Recommended Posts

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

HotkeySet("1", "test") 

Func test()
    $i = 0
    While $i <= 10
    ControlSend("Magic: The Gathering - Battlegrounds" ,"","","i")
    $i = $i + 1.

thanks in advance


Share this post

Link to post
Share on other sites

add a loop at the end to avoid the script to finish..

Edited by JdeB

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  

  • Create New...