AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

* modifier does not work for all shortcuts - bug or feature?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rpnfan



Joined: 01 Aug 2007
Posts: 5

PostPosted: Fri Apr 25, 2008 8:14 pm    Post subject: * modifier does not work for all shortcuts - bug or feature? Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Fri Apr 25, 2008 9:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rpnfan



Joined: 01 Aug 2007
Posts: 5

PostPosted: Fri Apr 25, 2008 9:31 pm    Post subject: Reply with quote

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 Rolling Eyes
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group