AutoHotkey Community

It is currently May 26th, 2012, 9:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: July 9th, 2009, 5:31 pm 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
AHK version 1.0.48.00
Windows versions - various

When my user enters their shortcut they should see

"Über Änderungen in den Öltankervorschriften"

but, instead, they see

"über änderungen in den öltankervorschriften"

I don't have access to their PCs, and it works just fine on my XP and Vista PCs, so what might I try to help figure this out? Thank you.

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 5:38 pm 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
I failed to post code, but now I have a test case that runs as expected 100% of the time on my PC, but fails 100% of the time on all my user's PCs (running XP and Vista). They are german, I am us

#z::
send, Über Änderungen in den Öltankervorschriften
return

This is a real show stopper for them, so any ideas of what to look at/for would be greatly appreciated.

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 6:38 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
That's pretty bizarre, does everyone have the same language/localization settings on windows? I'm guessing that something in windows is set differently and that's what's causing the trouble.

Anyways, when the Send command comes across a special character like that, it automatically changes it to an Alt+Numpad combination. If you specifically insert the correct Alt+Numpad combo, you may end up with different results. For instance:
Code:
#z::
_U = {LAlt down}{Numpad1}{Numpad5}{Numpad4}{LAlt up}
_O = {LAlt down}{Numpad1}{Numpad5}{Numpad3}{LAlt up}
_A = {LAlt down}{Numpad1}{Numpad4}{Numpad2}{LAlt up}
send, %_U%ber %_A%nderungen in den %_O%ltankervorschriften
return

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 8:57 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Why not use send ^v (e.g. send the clipboard, faster and probably doesn't conflict with Upper/lower case strings). As outlined in the clipboard help you can store/restore the actual clipboard contents.

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 10:00 pm 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
Hugo and VxE,
Thank you both for your suggestions - I am going to have him try both.

I am assuming that all their PCs have the same language/localiztion settings, but I did ask about what software configuration they have (I did find one reference to a problem with these characters in GTK, but the suggestions there didn't seem to work even on my PC).

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 10:42 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
Just a thought, because I ran into it earlier, is that if you have a

Send , {ShiftDown}

without a shift up, it can cause wicked funny behavior. This could exist even in a different script, if a running script is open and has {ShiftDown} it will juxtapose everything... on my system it acted as if shift were being constantly held, which is I suppose the intended function.

Just a thought! Sorry if you thought of it already, have a good week!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2009, 10:44 am 
Offline

Joined: March 23rd, 2005, 7:53 am
Posts: 321
Location: Germany
But then all characters should show in upper case - not only the umlauts!

On my computer with German windows the hotkey works as expected.

_________________
Hasso

Programmers don't die, they GOSUB without RETURN


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2009, 11:30 am 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
Hasso,
Which hotkey works? The original, or one of the suggestions?

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2009, 2:48 pm 
Offline

Joined: March 23rd, 2005, 7:53 am
Posts: 321
Location: Germany
ScottMattes wrote:
Hasso,
Which hotkey works? The original, or one of the suggestions?
The original:
Code:
#z::
send, Über Änderungen in den Öltankervorschriften
return

_________________
Hasso

Programmers don't die, they GOSUB without RETURN


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 5:17 am 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
I am told that using the clipboard has solved the problem.

Many thank yous for the suggestions.

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2010, 12:47 am 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
This problem has come back to bite me!

Using the clipboard got around the problem with capital umlauts coming out lowercase, but now there is a problem with MS Word 2007 blocking access to the clipboard, so what the user types disappears, but the substitutions are coming out blank.

So I need to go back to using Send. I sent them a simple test, here is the code:

Code:
; proof of problem

; how can I get Ü Ä Ö to display as Ü Ä Ö and not as ü ä ö

msg = Ü Ä Ö

output_msg = A_AhkVersion=%A_AhkVersion%`n`nA_ComputerName=%A_ComputerName%`n`nA_IsAdmin=%A_IsAdmin%`n`nA_Language=%A_Language%`n`nA_OSType=%A_OSType%`n`nA_OSVersion=%A_OSVersion%

run, notepad

winwait, Unbenannt - Editor  ; Untitled - Notepad

send, `n`n`nComputer information:`n`n%output_msg%`n`n`nOutput tests:`n`n

send, Send - %msg%`n
sendraw, SendRaw - %msg%`n
sendInput, SendInput - %msg%`n
sendPlay, SendPlay - %msg%`n
sendEvent, SendEvent - %msg%`n

send, `n`nNow, open a cmd window and run 'systeminfo' and copy/paste all but the patch info here and send it to me.


On Vista it shows
Quote:
Computer information:

A_AhkVersion=1.0.48.05

A_ComputerName=NICK-PC

A_IsAdmin=0

A_Language=0407

A_OSType=WIN32_NT

A_OSVersion=WIN_VISTA


Output tests:

Send - ü ä ö
SendRaw - ü ä ö
SendInput - ü ä ö
SendEvent - ü ä ö


Notice how the SendPlay is missing!

And on XP it shows
Quote:
Computer information:

A_AhkVersion=1.0.48.05

A_ComputerName=THERES

A_IsAdmin=1

A_Language=0407

A_OSType=WIN32_NT

A_OSVersion=WIN_XP


Output tests:

Send - ü ä ö
SendRaw - ü ä ö
SSendPlay - ü ä ö
endInput - ü ä ö
SendEvent - ü ä ö


Notice how SendPlay and SendInput come out wrong!

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2010, 7:54 am 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
ScottMattes wrote:
Notice how the SendPlay is missing!


This is an expected behavior for Vista and up.

ScottMattes wrote:
Notice how SendPlay and SendInput come out wrong!


This is telling me Word wants to "process" the keystrokes but they're coming in faster than Word can process them, so things like Shift calls get garbled in the sending of the string. You're probably going to need to adjust down the speed of the keystrokes using SetKeyDelay; unfortunately for Vista that means finding a way to disable UAC (across a network?) so you can utilize SendPlay and not resort to SendEvent mode.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2010, 2:49 pm 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
sinkfaze,
Thank you for the information!

I have a question about 'Word wants to "process" the keystrokes but they're coming in faster than Word can process them' - would Word be processing them when Notepad is the target? The test started Notepad and then sends the keys there.

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2010, 2:58 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
ScottMattes wrote:
The test started Notepad and then sends the keys there.


D'OH, that's what I get for not reading the code. :oops: Notepad has none of the overhang of Word so it seems more unlikely, but not impossible. I can confirm that the behavior you're seeing I too was seeing when I used to send text to Word, I resolved it by adjusting the rate of send via SetKeyDelay (particularly the press duration).

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2010, 3:24 pm 
Offline

Joined: May 21st, 2007, 3:44 pm
Posts: 176
Location: USA
OK, just checking. I can try that in another test.

But, the main problem still remains, on the German system (XP or Vista), the uppercase umlaut is coming out lowercase.

Another data point, he tried typing with and without the ahk script running: without the script running the umlauts come out the correct case, but with the script running and just typing without triggering the hotstring the umlauts come out lowercase!

_________________
-------------
Scott Mattes
Image
My small, and slowly growing, collection of scripts.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google [Bot], Google Feedfetcher, krajan, patgenn123, wolverineks, Yahoo [Bot] and 64 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