Jump to content

Recommended Posts

I'm trying to get a macro the repeats space until I've let go of the actual spacebar. I have a script that is supposed to do that but it doesn't stop when I let go of the spacebar. Can somebody help? here is the script 

#include <Misc.au3>
#include <GUIConstantsEx.au3>

$spacerepeat= 10
$spacerepeatdelay= 1000
$hgui= GUICreate("send space app", 200, 60)
GUISetState();shows the gui window
do
    $guimsg= GUIGetMsg()
    if _IsPressed("20") Then
        for $i=0 to $spacerepeat-1
            $timer= TimerInit()
            while TimerDiff($timer)<$spacerepeatdelay
                
            wend
            send("{space}")
        next
    endif
until $guimsg= $GUI_EVENT_CLOSE
Link to post
Share on other sites
  • Developers
9 hours ago, Scott337 said:

I'm trying to get a macro the repeats space until I've let go of the actual spacebar.

I can only imagine this is go some sort of game so like to refer you to our forum rules !

@ioa747Your answer is hidden for the time being.

@ALL: Please stay out till this is cleared.

Edited by Jos

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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...