^* doesn't capture ctrl+a, ctrl+b, etc.

Get help with using AutoHotkey and its commands and hotkeys
gqqnbig
Posts: 13
Joined: 27 Jul 2014, 15:00

^* doesn't capture ctrl+a, ctrl+b, etc.

Post by gqqnbig » 21 Jul 2015, 22:42

Code: Select all

^*::
msgbox hello
return
This code doesn't work at all. I expect that if I press ctrl+a, the message box will show, but it doesn't.

From the documentation I know asterisk is wildcard, but it seems not to work in this situation. Is it a known limitation or did I use it correctly?

User avatar
Blackholyman
Posts: 1292
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark
Contact:

Re: ^* doesn't capture ctrl+a, ctrl+b, etc.

Post by Blackholyman » 22 Jul 2015, 00:36

* is only a Wildcard for modifyers i.e ctrl, shift, alt and win not letters or number or Any other key

A example

Code: Select all

*a::
Msgbox
Return
will work by pressing Any modifyer and the letter a
Also check out:
Courses on AutoHotkey

My Autohotkey Blog
:dance:

lexikos
Posts: 7088
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: ^* doesn't capture ctrl+a, ctrl+b, etc.

Post by lexikos » 22 Jul 2015, 01:42

^*:: is Ctrl+Asterisk.

*^:: would be the caret symbol, optionally with any modifier keys.

User avatar
evilC
Posts: 4787
Joined: 27 Feb 2014, 12:30

Re: ^* doesn't capture ctrl+a, ctrl+b, etc.

Post by evilC » 22 Jul 2015, 05:26

Lex - On this subject, would it be feasible to add such a feature?

Being able to hook all keys / mouse without having to use the likes of SetWindowsHookEx or excessive EndKey stuffing with an Input command could greatly simplify a project HotkeyIt and I are working on.

Post Reply

Return to “Ask For Help”