basgen Posted July 27, 2010 Posted July 27, 2010 ; 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?
somdcomputerguy Posted July 27, 2010 Posted July 27, 2010 (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 July 27, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Tyranlol Posted July 28, 2010 Posted July 28, 2010 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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now