Jump to content

HotkeySet isn't waiting for a key.


Recommended Posts

Hi! I'm new in the AutoIt. I'm trying to make a hotkeys script, but one function does not works, like I'm want. I think it's "HotKeySet". It is not waiting for a key, it is just writing all hotkeys :(

Case $msg = $button2
      While 1
        for $number = 1 To 76 Step +1
          $letter = FileReadLine("charlist.txt", $number)
          HotKeySet($letter,reason($letter))
        Next
        Func reason($letter)
            for $line=1 To 19 Step +1
                if FileReadLine("hotkeys.txt", $line) = $letter Then
                    $text = FileReadLine("hotkeys.txt", $line+1)
                    Send($text)
                EndIf
            Next
        EndFunc
      WEnd

What I did bad?

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