Jump to content

Autoshoot/autopress


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")
    Sleep(10)
    $i = $i + 1.
WEnd
Endfunc

thanks in advance

-G

Link to comment
Share on other sites

  • Developers

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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