AustrianOak 0 Report post Posted June 14, 2008 I'm trying to set a Ctrl+p as one of my hotkeys and this is what I did: HotKeySet("{^}+{p}", "Func1") I know I have to be way off and am tired of guessing as I didn't find any example in the helpfile of setting multi-key hotkeys. Idk, maybe I'm blind and there are examples. In need of help. Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted June 14, 2008 "^p" 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. Share this post Link to post Share on other sites
SmOke_N 199 Report post Posted June 14, 2008 ("+p")That's {SHIFT}p 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. Share this post Link to post Share on other sites
AustrianOak 0 Report post Posted June 14, 2008 (edited) Much thanks Smoke_N. And thanks Pain for your effort. Edited June 14, 2008 by nowagain Share this post Link to post Share on other sites
Xantioss 0 Report post Posted June 14, 2008 (edited) Much thanks Smoke_N. And thanks Pain for your effort. just my litle effort to this topic, '!' 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. HotKeySet("{^}{p}", "Func1") should do the trick I love documentation!! Edited June 14, 2008 by Xantioss Share this post Link to post Share on other sites
Richard Robertson 186 Report post Posted June 15, 2008 (edited) It's not {^}{p}. It's just ^p. When you use the { } it will use the character as a character. You need to use it without brackets like Smoke said earlier. Edited June 15, 2008 by Richard Robertson Share this post Link to post Share on other sites
Kiti 0 Report post Posted June 15, 2008 It's not {^}{p}. It's just ^p.When you use the { } it will use the character as a character. You need to use it without brackets like Smoke said earlier.Nowagian, you can use brakets when you need to press a button like: {ENTER}, {DOWN}, {LEFT} etc. Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Share this post Link to post Share on other sites
Richard Robertson 186 Report post Posted June 15, 2008 Those are for special keys that don't have character representation, or to escape a character with a special property. Share this post Link to post Share on other sites