Jump to content

Keyboard, {CTRLUP}


Recommended Posts

; Set the HotKeys
HotKeySet("{CTRLUP}", "_s")

; Now keep the script active
While 1
    Sleep(10)
WEnd

Func _s()

    ; Unset the HotKey
    HotKeySet("{CTRLUP}")
    Sleep(30)
    Send("a")
    Sleep(800)
    ; Reset the HotKey
    HotKeySet("{CTRLUP}", "_s")

EndFunc

When i release My ctrl button i want it to paste a string of text (names 'a' in this example)

Not sure why this doesnt work. Any ideas?

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