AutoHotkey Community

It is currently May 26th, 2012, 8:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: July 29th, 2005, 8:19 am 
Offline

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

on a german system the Hotkey-Control stores "ZIRKUMFLEX" for the Key "^". Also the "+"-Key is stored as "+" what means Shift for AHK. Is there a way to handle this limitations?

Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 29th, 2005, 3:13 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for reporting this. It should definitely be fixed, perhaps in one of the following ways:

1) Make the key names produced by a Hotkey control symbolic (single character) so that they will be compatible with the Hotkey command. If there is no symbol, it would use the English name.

2) Make the hotkey command capable of understanding native language key names.

I will research this and try to find the best compromise between functionality and backward compatibility.

By the way, the plus key problem is a separate issue because making "+" a hotkey requires the SCnnn hotkey method on keyboard layouts whose "+" does not require the shift key. This is a known limitation for which there is not yet a workaround.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 29th, 2005, 4:43 pm 
Offline

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

making symbolic characters would be no solution because "Zirkumflex" is "^", the symbol for Ctrl. So it should produce SCxxx also for "+". Maybe if + is alone it's SCxxx and if it is ++ then +SCxxx and so on.

What about an alternative way to catch Hotkeys? I'm trying around with Input, but till now it's not perfect: http://www.autohotkey.com/forum/viewtopic.php?t=4704

Maybe a special command could help:

GetHotkeyString, Variable, Restriction

Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2005, 9:10 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
In today's v1.0.37.03, hotkeys should now recognize the following symbols as valid key names: #!^+$<>*~

For example, ^+ would be Control-Plus and ## would be Win-PoundSign.

I think this indirectly fixes most of the issues with the Hotkey control. However, the ZIRCUMFLEX issue is still not fixed because there's no obvious way to fix it for all such keys (perhaps dead keys always yield native language names). Until some solution is discovered, it's probably best to have your script explicitly translate ZIRCUMFLEX into the symbol ^.

Tekl wrote:
What about an alternative way to catch Hotkeys? ... Maybe a special command could help:
GetHotkeyString, Variable, Restriction
That's an interesting idea but would likely be complex to implement. Therefore, I've put it in with the other improvements planned for the Input command.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2005, 12:00 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
To avoid confusion, would it be preferable to introduce single-character variables to insert in a hotkey-call strucutre ?

%Sharp = #
or %Sharp := "#"

#%Sharp::Run, something ; Win + Sharp character

Of course the notation is also a proposition...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2005, 5:21 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I thought about adding new key names, but supporting the symbols directly seemed like it would be more intuitive to most people.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2005, 7:47 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
May be my proposition can be seen like a possible notation alternative.
Thanks for your answer.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2005, 5:33 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I reread your post and now I understand your proposal. Unfortunately, the current architecture and syntax of the program would make it difficult to support dynamic hotkeys in that fashion. You probably know that the Hotkey command can create hotkeys dynamically.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2005, 6:35 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
That's true !!!

I was thinking that this type of notation could be ambigous.
But after reading with more attention, I'm OK it is not the case...
^++ = Ctrl-Shift +
!! = Alt !

P.S : In a far future (not a high priority), it would be good to be able to have dynamic hotkeys if it's possible...

Thanks for all your work


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 2nd, 2005, 8:05 am 
Offline

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

I don't understand why you don't want to use the hotkey-command for dynamic hotkeys.

Tekl


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 2nd, 2005, 5:47 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
At first I didn't understand well the Chris's proposition As I said in the post before, I re-read and its OK.
For the Hotkey command, I forgot about it as I never use it (at least for the moment), but I have plans to use it in the near future to allow the user of the script I am creating to create it's own hotkeys

So no problem, Tekl.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 6 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