Sign in to follow this  
Followers 0
basgen

Keyboard, {CTRLUP}

3 posts in this topic

; 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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Well I don't think the send command {CTRLUP} is good, but even if it is, I don't think modifier keys (Ctrl, Shift and Alt) can be used by themselves.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Use this as an example:

Send("{LCTRL down}") ;Hold down the key
Send("{LCTRL up}") ;Releases the key

[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]

Share this post


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
Sign in to follow this  
Followers 0