Jump to content

Sequence


Recommended Posts

Hey guys, I was trying to make a sequence using a hotkey each time it is pressed it send random letters, my code isnt working, but at least you can understand what i mean.

Do
                If _IsPressed("2D") Then
            Send("a")
        EndIf
        Sleep(1000)
    Until Sleep(1000)
    
    Do
            If _IsPressed("2D") Then
            Send("b")
        EndIf
    Until Sleep(1000)
Link to comment
Share on other sites

Will this do?

HotKeySet("{INS}", "SendChar")

While True
    Sleep(10)
WEnd

Func SendChar()

    Local $char = Random(97, 98, 1)

    Return Send(Chr($char), 1)
EndFunc ;==>SendChar
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...