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 

What might cause uppercase to come out lowercase?
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Thu Jul 09, 2009 4:31 pm    Post subject: What might cause uppercase to come out lowercase? Reply with quote

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

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Mon Jul 27, 2009 4:38 pm    Post subject: Reply with quote

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

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Mon Jul 27, 2009 5:38 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Mon Jul 27, 2009 7:57 pm    Post subject: Reply with quote

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 Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Mon Jul 27, 2009 9:00 pm    Post subject: Reply with quote

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

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Mon Jul 27, 2009 9:42 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Hasso



Joined: 23 Mar 2005
Posts: 321
Location: Germany

PostPosted: Tue Jul 28, 2009 9:44 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Tue Jul 28, 2009 10:30 am    Post subject: Reply with quote

Hasso,
Which hotkey works? The original, or one of the suggestions?
_________________
-------------
Scott Mattes

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
Hasso



Joined: 23 Mar 2005
Posts: 321
Location: Germany

PostPosted: Tue Jul 28, 2009 1:48 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Wed Aug 12, 2009 4:17 am    Post subject: Reply with quote

I am told that using the clipboard has solved the problem.

Many thank yous for the suggestions.
_________________
-------------
Scott Mattes

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Wed Jan 27, 2010 11:47 pm    Post subject: Reply with quote

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

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
sinkfaze



Joined: 18 Mar 2008
Posts: 5044
Location: the tunnel(?=light)

PostPosted: Thu Jan 28, 2010 6:54 am    Post subject: Reply with quote

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.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message Send e-mail
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Thu Jan 28, 2010 1:49 pm    Post subject: Reply with quote

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

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
sinkfaze



Joined: 18 Mar 2008
Posts: 5044
Location: the tunnel(?=light)

PostPosted: Thu Jan 28, 2010 1:58 pm    Post subject: Reply with quote

ScottMattes wrote:
The test started Notepad and then sends the keys there.


D'OH, that's what I get for not reading the code. Embarassed 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).
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message Send e-mail
ScottMattes



Joined: 21 May 2007
Posts: 173
Location: USA

PostPosted: Thu Jan 28, 2010 2:24 pm    Post subject: Reply with quote

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

My small, and slowly growing, collection of scripts.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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