9

how do i assign commands to the "calculator" or "favorite" keys with autohotkey?

RCIX
  • 5,775

5 Answers5

7

The favorites key is called "Multimedia keys" in AHK. The Calc key could be Launch_App1 or Launch_App2, but if not, see Multimedia keys for detailed instructions.

martineau
  • 4,487
moioci
  • 444
2

Below is how I set my Calc key to launch Google Chrome:

Launch_App2::
    Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

Damien
  • 209
1

If you open a script, click on "open" and then view key history, it should show the name you can use to remap it there. Also, check the help file, I believe it has a list of common uncommon keys.

Phoshi
  • 23,383
  • what's odd is that it shows the F key being pressed.... – RCIX Aug 28 '09 at 10:44
  • however, the "state" column has an "a" in it. – RCIX Aug 28 '09 at 10:45
  • Is it possible the keyboard is just shooting off a series of keys? My friend had a keyboard like that. Does it work fine without drivers, and so? – Phoshi Aug 28 '09 at 11:46
  • I didn't install any specific ones, but it's a microsoft keyboard so maybe it installed some automatically though... – RCIX Aug 29 '09 at 02:37
-1

You can also assign a shortcut key to the application's shortcut. The only caveat of this is that you need to use a shortcut key that Windows deems acceptable (such as CTRL+ALT+something) which might not be exactly what you like.

Right click the shortcut in question, and hit properties. You should then be able to assign a keyboard shortcut.

EvilChookie
  • 4,579
-1

From http://support.microsoft.com/kb/181855

Select the shortcut for the application, Rightclick and select properties, select tab "shortcut". Click in "shortcut key" (which has none written in it). Now press the HotKey that you want to use. It will automatically appear in the box. e.g. if you press ^F12 then CTRL-F12 will appear in the box. Click apply and hit ok.