TomCat Posted August 27, 2007 Posted August 27, 2007 Hi i have this little Scipt: hotkeyset("^a", "_send") HotkeySet("{pause}", "Kill") While 1 Sleep(100) WEnd Func _send() Send("{enter}") sleep(5) Send("This is a little test") sleep(5) Send("{enter}") EndFunc Exit Func Kill() Exit EndFunc But when i start is pressing ctrl+a it blocks my ctrl key all the time (seams like a pressed down ctrl key) and runs when i press only a. And the other problem is that the kill funktion doesn't work after is press ctrl+a Some idea to fix this bug ?
Moderators SmOke_N Posted August 28, 2007 Moderators Posted August 28, 2007 (edited) Some programs are very choosy about capital letters and CTRL keys, i.e. "^A" is different to "^a". The first says CTRL+SHIFT+A, the second is CTRL+a. If in doubt, use lowercase!Also note that some combination of keys can not be used if it is a windows ordained combination already. Edited August 28, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
TomCat Posted August 28, 2007 Author Posted August 28, 2007 i found the reason i need to use ControlSend and not send. now it works fine
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