00BM Posted December 10, 2007 Share Posted December 10, 2007 Hi, Does anyone know how I could make a hotkey with the hotkeyset function for example: alt+g? Im stuck on how to do this Thanks in advance, 00BM. Link to comment Share on other sites More sharing options...
Nahuel Posted December 10, 2007 Share Posted December 10, 2007 HotKeySet("!g","test") While 1 Sleep(50) WEnd Func test() MsgBox(0,"","Works!") EndFunc Link to comment Share on other sites More sharing options...
00BM Posted December 10, 2007 Author Share Posted December 10, 2007 Thanks Nahuel. Does anyone know what shift ETC would be?? Thanks in advance, 00BM. Link to comment Share on other sites More sharing options...
Nahuel Posted December 10, 2007 Share Posted December 10, 2007 You do have the help file, right? Both of your answers were there.'!'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. Link to comment Share on other sites More sharing options...
00BM Posted December 10, 2007 Author Share Posted December 10, 2007 You do have the help file, right? Both of your answers were there.Yeah I do have the help file I looked through it just after I replied. it only showed the SHIFT key though. Or... thats the only one I could find!Thanks Again,00BM 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