Wb-FreeKill Posted January 19, 2005 Share Posted January 19, 2005 How du i make it detect that im pressing Shift + b = B What is the "hotkey" for shift, like "!" is for the ALT key? Link to comment Share on other sites More sharing options...
ezzetabi Posted January 19, 2005 Share Posted January 19, 2005 Read the manual.'+'This tells AutoIt to send a SHIFT keystroke, therefore Send("Hell+o") would send the text "HellO". Send("!+a") would send "ALT+SHIFT+a". Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted January 19, 2005 Author Share Posted January 19, 2005 Read the manual.<{POST_SNAPBACK}>ahh sry, i did read it, but i couldn't find it Link to comment Share on other sites More sharing options...
kpu Posted January 19, 2005 Share Posted January 19, 2005 To be honest, it took me some time to get these right. Here it is, next time you might want to play with the commands though. send("{LSHIFT}+b") http://www.kpunderground.com Link to comment Share on other sites More sharing options...
para Posted January 19, 2005 Share Posted January 19, 2005 That could make it eliminate the shift since you are doing it twice. There is no reason for that. Simply Send("+a+d+c") That will write ADC -Para Link to comment Share on other sites More sharing options...
kpu Posted January 19, 2005 Share Posted January 19, 2005 Hmmm. Interesting, I tested it in Notepad and "send("{LSHIFT}+b")" worked correctly. I don't see anything in the documentation about using + for shifit, but it does work... My way works just the same though. Thanks for the clarification! I'm that much more Intelligent today. That could make it eliminate the shift since you are doing it twice.There is no reason for that. Simply Send("+a+d+c")That will writeADC-Para<{POST_SNAPBACK}> http://www.kpunderground.com Link to comment Share on other sites More sharing options...
Developers Jos Posted January 19, 2005 Developers Share Posted January 19, 2005 I don't see anything in the documentation about using + for shifit, but it does work... <{POST_SNAPBACK}>RemarksSee the Appendix for some tips.The "Send" command syntax is similar to that of ScriptIt and the Visual Basic "SendKeys" command. Characters are sent as written with the exception of the following characters:'!'This tells AutoIt to send an ALT keystroke, therefore Send("This is text!a") would send the keys "This is text" and then press "ALT+a".N.B. Some programs are very choosy about capital letters and ALT keys, i.e. "!A" is different to "!a". The first says ALT+SHIFT+A, the second is ALT+a. If in doubt, use lowercase!'+'This tells AutoIt to send a SHIFT keystroke, therefore Send("Hell+o") would send the text "HellO". Send("!+a") would send "ALT+SHIFT+a".'^'This tells AutoIt to send a CONTROL keystroke, therefore Send("^!a") would send "CTRL+ALT+a".N.B. 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!'#'The hash now sends a Windows keystroke; therefore, Send("#r") would send Win+r which launches the Run dialog box. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Helge Posted January 19, 2005 Share Posted January 19, 2005 How du i make it detect that im pressing Shift + b = B What is the "hotkey" for shift, like "!" is for the ALT key?<{POST_SNAPBACK}>As far as I see, he wants to assign a hotkey..But I'm starting to wonder, as everybody else thinks otherwise.. @Wb-FreeKill :If you want to assign a hotkey use the function HotKeySet.. Link to comment Share on other sites More sharing options...
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