AutoHotkey Community

It is currently May 27th, 2012, 12:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: September 1st, 2004, 9:02 pm 
Hello,

can anybody confirm, that the example from the help-file does not work?

:*:js@::jsmith@somedomain.com

It works, if I remove the @ after js

What's going wrong?

AHK 1.0.18

Tekl


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 1st, 2004, 9:47 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
That example works for me on XP. It might be sensitive to keyboard layout; for example, if you're using a language or layout that lacks a virtual key code for the @ symbol. But even then, it should work in theory.

I'd welcome results from anyone else who tries to use this hotstring (or others with symbols like @ in them).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 1st, 2004, 10:38 pm 
Hello Chris,

I'm using the german IBM-Layout on a german XP. I tried now the english US-layout but it even does not work. It seems that the @ won't be recognized.

If I use the following:

:*:js::jsmith@somedomain.com

I can enter:

js or j@s

and the text will be replaced. If I enter j@s I'll get jjsmith@somedomain.com (double J)

Tekl


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 2:26 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
When you switch layouts with the OS hotkey or bar-menu, I think it only affects the active window. In light of that, I switched to German/IBM layout on my system in both the editor I was using to test it with, AND by opening the script's main window (via tray icon) and selecting German/IBM for that window also. Then I tried to test the hotstring but I could not locate the @ symbol in that layout. What is the physical location of that key on the keyboard?

You can test this too by switching to some other layout (such as English) in both the test editor and the script's main window. The @ symbol should then be recognized.

I'm not sure what causes this. Have you noticed any other symbols that are a problem?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 9:32 am 
Hello Chris,

I tried some more things. I deleted the german layout and set english as default. Now it works korrekt (@ is on Shift+2). If I now add german as a secondary Layout also Shift+2 will expand the autoreplace, but the symbol is not @ but " (quotes). In german the @ is on AltGr+Q or Ctrl+Alt+Q.

Hope this helps.

Tekl


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 11:02 am 
Quote:
What is the physical location of that key on the keyboard

German Keyboard Layout


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 11:54 am 
Offline

Joined: July 30th, 2004, 9:08 pm
Posts: 81
I just tried the example in the first post in a Spanish layout keyboard.
It doesn't work either.
In Spanish layout, " @ " is AltGr + 2
Using latest .18 version, Win2k


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 12:18 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Quote:
In german the @ is on AltGr+Q or Ctrl+Alt+Q.
Quote:
In Spanish layout, " @ " is AltGr + 2

I didn't realize until now that since AutoHotkey is designed to exclude control characters from hotstrings and the Input command, AltGr keys would be excluded. I'll change it so that all Ctrl-Alt-Shift combinations are transcribed if they correspond to a visible character.

Does anyone know of any layout which requires some characters to be produced by holding down only Ctrl or only Alt (with or without the shift key)?

Thanks for reporting this. I'll try to get a new version out soon.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 12:44 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I recall that Torben reported a similar issue with AltGr and the tilde character. Hopefully these things are all related and will be resolved by this fix.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 12:51 pm 
Offline

Joined: July 30th, 2004, 9:08 pm
Posts: 81
As far as I know, AltGr is the same as pressing Ctrl-Alt, not Ctrl-Alt-Shift.
This is reflected when switching to the "Key history and script info" view in the AutoHotkey system tray icon (when pressing AltGr-something, in the key history is shown as Ctrl-Alt)

In Spanish layout, the characters produced via AltGr are:
{ } [ ] \ | @ # ¬ €
No characters are produced with only Ctrl or only Alt


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 1:04 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for the info. I noticed in the layout link someone posted above that shift-ctrl-alt might be valid for certain keys in some layouts. So now rather than ignoring keystrokes that occur while Win/Alt/Ctrl are down, an attempt is made to transcribe all the following keystrokes:
- Anything with no modifiers at all.
- Anything with Alt in it.
- Anything that uses ONLY the shift key.

I tested the fix with the @ symbol and it seems okay now. I've updated the installer at http://www.autohotkey.com/download/

Please let me know if you notice any other problem keys.

Thanks again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 1:44 pm 
Offline

Joined: July 30th, 2004, 9:08 pm
Posts: 81
It's fixed! at least for Spanish layout.

A related bug:
given the following:
:*:jás::jsmith@somedomain.com
the output is:
jsmith@somedomain.com
[i.e.works OK]

given the following:
:*:ájs::jsmith@somedomain.com
the output is:
jsmith@somedomain.com
[i.e. works OK]

BUT given the following:
:*:jsá::jsmith@somedomain.com
the output is:
jjsmith@somedomain.com
[i.e. 1 backspace missing]

In other words, when any accented key falls at the end of a replacement string, 1 backspace is missing when replacing...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 2:24 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks, I'll definitely look into that.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2004, 3:31 pm 
Hi Chris,

it now works, thanks alot.

Tekl


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2005, 5:29 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
jordi wrote:
BUT given the following:
:*:jsá::jsmith@somedomain.com
the output is:
jjsmith@somedomain.com
[i.e. 1 backspace missing]
I believe this has been fixed in v1.0.37.06. Sorry it took so long.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 3 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