| View previous topic :: View next topic |
| Author |
Message |
rpnfan
Joined: 01 Aug 2007 Posts: 5
|
Posted: Fri Apr 25, 2008 8:14 pm Post subject: * modifier does not work for all shortcuts - bug or feature? |
|
|
Hi,
in a script I have many lines similar to the following
| Code: |
sc03a & h::Send {Left}
|
where sc03a is the CapsLock-Key which I use as a modifier key for hotkeys. I want to allow the additional use of other modifier keys like Shift or Ctrl. The * char normally allows this like the examples in the help files
| Code: |
*#c::Run Calc.exe ; Win+C, Shift+Win+C, Ctrl+Win+C, etc. will all trigger this hotkey.
*ScrollLock::Run Notepad ; Pressing Scrolllock will trigger this hotkey even when modifer key(s) are down.
|
But I tried the following without success
| Code: |
* sc03a & h::Send {Left}
*sc03a &h::Send {Left}
*{sc03a &h::Send {Left}
|
which all will give an error message "Invalid hotkey". Is this behavior a bug or a feature and last not least how can I achieve my wanted behavior that Shift and Ctrl modifiers are passed through when this hotkey is used?
Thanks
Peter |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Fri Apr 25, 2008 9:19 pm Post subject: |
|
|
please try
| Code: |
sc03a & *h::Send {Left}
|
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
rpnfan
Joined: 01 Aug 2007 Posts: 5
|
Posted: Fri Apr 25, 2008 9:31 pm Post subject: |
|
|
Thanks for your suggestion. This was the variant I did not think of to try it. Indeed it works fine so far that it gives no error message.
Unfortunatelly the function I need/want is not given. Normally pressing the Shift-Key and then navigating with the arrow keys will select the text.
With
| Code: | | sc03a & *j::Send {Down} |
the j-key will act as the Down-Key (in combination with CapsLock as modifier-key), but pressing the Shift-key first as an additional modifier key does not have any effect and text is not marked/selected as I would expect and need it  |
|
| Back to top |
|
 |
|