Jump to content

need help to make this code more modifiable !


pouyanz
 Share

Recommended Posts

 

Spoiler


#include <Misc.au3>

Global $hDLL = DllOpen("user32.dll"), $time = 500
Global $keys[8] = ["a", "b", "c", "d", "1", "2", "3", "4"]


While 1

    If _IsPressed("02", $hDLL) Then
        
        While _IsPressed("02", $hDLL)
            For $i = 0 To UBound($keys) -1
                Send($keys[$i])
                Sleep($time)
            Next
        WEnd

    EndIf
    Sleep(250)

WEnd

DllClose($hDLL)

 

 

so i finally put together this code

it works!!!! so yay for me

but how do i make it so i can modify the delay between each button pushed?

and i want like a 5 milisec delay on each button pushed (push "a" for 5milisec then release)

i cant think of a way to do it without it beign look ugly

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...