| View previous topic :: View next topic |
| Author |
Message |
boardtc
Joined: 31 Jan 2006 Posts: 12
|
Posted: Thu Jun 07, 2007 2:27 pm Post subject: Assigning function keys |
|
|
Is there a way to assign function keys (F12, etc) the same way as one can use the ctrl, alt, shift & winkey?
I haven't seen anything in the help or on the forum about this.
Cheers, Tom. |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 745 Location: Berlin
|
Posted: Thu Jun 07, 2007 2:53 pm Post subject: |
|
|
Wrong forum, but, yes you can...
_________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
boardtc
Joined: 31 Jan 2006 Posts: 12
|
Posted: Thu Jun 07, 2007 4:41 pm Post subject: |
|
|
| daonlyfreez wrote: | Wrong forum, but, yes you can...
|
Thanks, should I move it?
That works, however
F12e::MsgBox hi
gives an error on reload. I want to be able to use F12, etc like the alt, ctrl and Winkey to have shortcut ket combos how can I have a shortcut for eg. F12+e? |
|
| Back to top |
|
 |
jps
Joined: 02 Sep 2006 Posts: 253 Location: Scotland
|
Posted: Thu Jun 07, 2007 4:55 pm Post subject: |
|
|
|
|
| Back to top |
|
 |
boardtc
Joined: 31 Jan 2006 Posts: 12
|
Posted: Thu Jun 07, 2007 5:01 pm Post subject: |
|
|
Thanks. Fantastic. Perhaps they could update the Hotkeys help page with this information |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Jun 07, 2007 5:43 pm Post subject: |
|
|
you mean this part?
| Help Page:Hotkeys/Custom Combinations wrote: |
You can define a custom combination of two keys (except joystick buttons) by using " & " between them. In the below example, you would hold down Numpad0 then press the second key to trigger the hotkey:
Numpad0 & Numpad1::MsgBox You pressed Numpad1 while holding down Numpad0.
Numpad0 & Numpad2::Run Notepad
In the above example, Numpad0 becomes a prefix key; but this also causes Numpad0 to lose its original/native function when it is pressed by itself. To avoid this, a script may configure Numpad0 to perform a new action such as one of the following:
| Code: |
Numpad0::WinMaximize A ; Maximize the active/foreground window.
Numpad0::Send {Numpad0} ; Make the release of Numpad0 produce a Numpad0 keystroke. See comment below.
|
The presence of one of the above hotkeys causes the release of Numpad0 to perform the indicated action, but only if you did not press any other keys while Numpad0 was being held down.
|
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
boardtc
Joined: 31 Jan 2006 Posts: 12
|
Posted: Thu Jun 07, 2007 10:56 pm Post subject: |
|
|
| i mean to mention function keys |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Jun 07, 2007 11:10 pm Post subject: |
|
|
Ah, so you mean this:
| Help File:key list wrote: |
F1 through F24 - The 12 or more function keys at the top of most keyboards.
|
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
boardtc
Joined: 31 Jan 2006 Posts: 12
|
Posted: Fri Jun 08, 2007 12:03 am Post subject: |
|
|
| I did not see that, I admit, thanks. Adding this to the symbol table would be more clear. Also adding function keys to the index would be useful |
|
| Back to top |
|
 |
|