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 

keyboard malfunctioning when using HotStrings
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
/Torben



Joined: 19 Jul 2004
Posts: 14
Location: Denmark

PostPosted: Tue Jul 27, 2004 10:33 pm    Post subject: Reply with quote

Not surprisingly, I got the same result as jordi did.

Do you not have diacritic on American ketboards?

/Torben
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Wed Jul 28, 2004 3:45 am    Post subject: Reply with quote

Dead keys were a completely new concept to me; they do not exist in the US English keyboard layout. Fortunately, it is easier than I thought to switch keyboard layouts, so now I can try to really understand what's going on.

I have a solution that seems to allow diacritic letters to be unharmed yet also be captured & recognized. I need to test it more, such as ensuring that keys such as Escape/Tab/F1-F12/Ctrl/Alt/Shift/Win are allowed in between the typing of the diacritic and the base/finishing key. In addition, keys such as Space and Enter seem to have a special function when used immediately after a dead key.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Wed Jul 28, 2004 8:26 pm    Post subject: Reply with quote

I think I have a working solution now, having tested it in both Spanish and Danish layouts. There might still be a few issues that only a native user of the language would notice, so additional feedback is welcome.

I've updated the installer at http://www.autohotkey.com/download/

Thanks for your help and patience with this issue.
Back to top
View user's profile Send private message Send e-mail
jordi
Guest





PostPosted: Wed Jul 28, 2004 10:14 pm    Post subject: Works for me! Reply with quote

Hi Chris
It looks like now it's fixed!
No more duplicate diacritics. Bear in mind that I only tested `´^¨ (they're all we have in Spanish layout, I don't know in other languages) and only with the script I was quoting some posts up.
Since I'm new to AutoHotKey, I can't really perform thorough testing of advanced features nor the *potential* impact or side effects on other functions (I'm in the learning stage)
Rest assured that I'll report anything related to this if I encounter any issues.
Excellent job!
regards
jordi
Back to top
Guest






PostPosted: Wed Jul 28, 2004 10:52 pm    Post subject: Reply with quote

Yes, very good Chris.
You are on the right track.
The good news is, that it works all right with all the accents I have tested (é, è, ê, ä).
But I also have bad news: The tilde (~) is still not shown.
Does it matter that the tilde on my Danish keyboard is activated by pressing the AltGr-key together with the second key to the right of the "P" - whereas the accents have their own keys?
/Torben
Back to top
jordi
Guest





PostPosted: Wed Jul 28, 2004 11:11 pm    Post subject: Reply with quote

/Torben, Chris
Quite weird what you say... although the Spanish layout has no key associated to the ~ (I always have to type ALT+126 to get it), there are other signs that are used in conjunction with AltGr and they all show up Ok:
For example: @ \ [ ] { } | # ¬ €
Do the rest of the characters used with AltGr work except for the ~ ?
jordi
Back to top
jordi
Guest





PostPosted: Wed Jul 28, 2004 11:25 pm    Post subject: interesting... Reply with quote

Mmm
My girlfriend uses a German keyboard (well, she IS German Smile, so I thought I would give it a try there...
The specific tilde ~ problem you mention does NOT occur in the German keyboard layout... The key is located exactly in the same place /Torben mentions (2 keys after the "P") and it's also used with AltGr.
The diacritics `and ´ also work ok (there is just one key for both and it is located differently than in Spanish: just on the left of backspace key)
In short, everything seems to work with German layout...
just my 2 cents...
jordi
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Thu Jul 29, 2004 12:50 am    Post subject: Reply with quote

Quote:
But I also have bad news: The tilde (~) is still not shown.
Does it matter that the tilde on my Danish keyboard is activated by pressing the AltGr-key together with the second key to the right of the "P" - whereas the accents have their own keys?

I've read that there are potential issues with AltGr, so I'll try to find out what's going on. Thanks for the fast testing and feedback.
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Thu Jul 29, 2004 6:55 am    Post subject: Reply with quote

Yes, jordi is right. There are other signs that are used in conjunction with AltGr and in fact they all show up as expected. On my keyboard it is: @£${[]}}|\
By testing that I realised that when I press tilde followed by one of the other signs that are activated by AltGr then the tilde appears. For instance: ~@~£~$~{~[~]~}~\.
Maybe this will give you some idea as how to solve the problem, Chris.
/Torben
Back to top
/Torben



Joined: 19 Jul 2004
Posts: 14
Location: Denmark

PostPosted: Thu Jul 29, 2004 7:07 am    Post subject: Reply with quote

Well. The trick by pressing the tilde followed by another key that are activated by a combination of a key and AltGr works OK in Notepad and other programs I have tested, but not in Microsoft Word!
/Torben
Back to top
View user's profile Send private message
/Torben



Joined: 19 Jul 2004
Posts: 14
Location: Denmark

PostPosted: Thu Jul 29, 2004 2:43 pm    Post subject: Reply with quote

I have tried every key on my keyboard together with AltGr and Shift. If fact I found 2 signs that I didn’t know I had: € (Euro=European currency) and µ (my – the Greek letter).

Fortunately I found no new errors.

I am very satisfied with AutoHotKey in its present state. I can live with the missing tilde. As jordi said one can always get the tilde by pressing Alt+126. The above note, about the missing tilde in Microsoft Word, was only meant as a feedback to your efforts, witch I really appreciate, Chris. Thank you once again.

Microsoft Word has other idiosyncrasies: for instance
Code:
send, my@mail.dk
in Microsoft Word would produce an output like this: mymail.dk

Therefore I use
Code:
send, my{ASC 64}mail.dk
to ensure that the output is correct – also I Word. I all other applications, I have tried, this problem doesn’t occur.

But the previous mentioned problem with the tilde is different: Tilde is not shown in any application unless it is succeeded by another sign that requires a combination with AltGr. This will do the trick except in Word.

/Torben
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Thu Jul 29, 2004 7:03 pm    Post subject: Reply with quote

Quote:
Microsoft Word has other idiosyncrasies: for instance send, my@mail.dk

Just want to make sure: That happens regardless of whether an AHK script is running, i.e. hotstrings are not having a side-effect in this case?

Although I don't have an AltGr key on my keyboard, I think it's the same as holding down Ctrl & Alt. I'll see if I can check into that tilde problem some more.
Back to top
View user's profile Send private message Send e-mail
/Torben



Joined: 19 Jul 2004
Posts: 14
Location: Denmark

PostPosted: Thu Jul 29, 2004 8:59 pm    Post subject: Reply with quote

No, hotstrings are not having a side-effect in this case. I discovered this before the version with hotstrings.
/Torben
Back to top
View user's profile Send private message
/Torben



Joined: 19 Jul 2004
Posts: 14
Location: Denmark

PostPosted: Thu Jul 29, 2004 9:22 pm    Post subject: Reply with quote

Most - if not all - European keyboards are equipped with an AltGr-key. This also applies for the official keyboard layout in United Kingdom.
It’s correct: The AltGr-key works resembling a combination of Ctrl & Alt.
/Torben
Back to top
View user's profile Send private message
jordis



Joined: 30 Jul 2004
Posts: 78

PostPosted: Thu Aug 12, 2004 10:11 pm    Post subject: Reply with quote

Hi Chris
I think in version .17 this problem is coming back... probably not the same, but related.
It looks like the Send command is ignoring characters with diacritics...
For example, going back to the sample script posted in the beginning:
Code:
#SingleInstance
#Persistent
SetTimer, AutoReplace, 10  ; Creates a new thread that's always running. return

AutoReplace:
SetTimer, AutoReplace, off
SetKeyDelay 0  ; Most editors can handle the faster speed.
Loop ; Infinite loop
{
   Input, UserInput, *V, `,.?!;{Enter}{Space}{Tab}
   EndChar = %ErrorLevel%
   StringGetPos, ColonPos, EndChar, :
   if ErrorLevel <> 0
      continue
   ColonPos += 2
   StringMid, EndChar, EndChar, %ColonPos%, 99
   if EndChar = 1
      EndChar = !
   else if EndChar = /
      EndChar = ?
   IfInString UserInput, btw
      Send, {backspace 4}by täêèàìòóhe way{%EndChar%} ; <-- notice the diacritics!
   IfInString UserInput, mst
      Send, {backspace 4}Microsoft{%EndChar%}
}

when I type "btw" I get "by the way" instead of the strings full of diacritics...
I was reinstalling last .16 version and it works flawlessly...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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