AutoHotkey Community

It is currently May 27th, 2012, 4:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: September 29th, 2005, 10:10 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
I'd like to use this code as a part of a script (with some extralines of code):

Code:
*Shift Up::
Send, {Shift Up}
return

I would like to have Shift-down act as normal (so no replacement is done in code).
But if I do this assignment above it is not possible to use any shift-actions any more (like special characters or Uppercase letters)!

Is this normal handling or a bug?

Thalon

P.S.: Tested with 1.38.03 and 1.38.06


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2005, 12:20 pm 
Offline

Joined: September 24th, 2004, 3:00 pm
Posts: 814
Location: Germany
Hi,

try $ instead of *

_________________
Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2005, 1:32 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I'm not sure if $ will help, but I can say that this behavior is by design because it makes no sense to suppress the down-event of a hotkey (via absence of the tilde prefix) but not the corresponding up-event.

To work around it, try adding a new hotkey:
~*Shift::Return

If that doesn't help and you can't find a way to do it, perhaps you can describe your overall goal (cause and effect) in more detail.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2005, 2:22 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
That's the problem!
I do _not_ want to supress the down event! (So I do not use a 'normal' Shift-Hotkey in my program).
I only want to give an additional action to the Up-Event (adding $ didn't fix it).

My goal is to have a Option to select if user wants to deactivate Alt-Tab and Shift-Alt-Tab (because the game what it is for crashs often when leaving window and it uses the Alt and the Tab-Key for actions in game!).

The problem is I wrote a programm to remap all of it's keys to other keys (so also TAB and Alt) and I do not really now how to do this.

But why I did the entry?:
I already wrote a test-programm for deactivating and simulating Alt-Tab and Shift-Alt-Tab and it works! But I wasn't able to use the Shift-Key in any other way.
After adding the following it worked fine:
Code:
*$Shift::
Send, {Shift Down}
return
But is this implementation really correct? I would expect that the down-event is sent as normal as long as I do nothing elsewith it in ahk .

It was just a question if bug or not, I know a workaround and maybe I find also a solution for my other problem this evening (shouldn't be your problem ) :wink:

Thalon


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2005, 5:15 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thalon wrote:
That's the problem!
I do _not_ want to supress the down event!
...
I would expect that the down-event is sent as normal as long as I do nothing elsewith it in ahk.
It would be inconsistent for the down-event to be sent normally but the up-event not to be. Even if it weren't for that, I seem to remember that there were other reasons for doing it this way. It's definitely "by design" because I spent quite a few hours thinking about it at the time, and still have a lot of notes about it.

In any case, it's good that you found a way to get the behavior you need.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2005, 8:55 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
So:
Bugreport -closed-

Thalon


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group