AutoHotkey Community

It is currently May 27th, 2012, 6:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: August 11th, 2011, 7:42 pm 
Offline

Joined: August 11th, 2011, 3:54 pm
Posts: 7
Quote:
v1.1.02.00, Win7 x64 Prof

i defined these hotkeys
Code:
>+a::SendPlay {U+00e4}
>+<+a::SendPlay {U+00c4}
>+o::SendPlay {U+00f6}
>+<+o::SendPlay {U+00d6}
>+u::SendPlay {U+00fc}
>+<+u::SendPlay {U+00dc}

sometimes if i'd press >+<+u it would produce 'ü' instead of 'Ü'. whatever key gets disabled in this way, stays consistently disabled for the whole session. the only way to fix this, is to move the bugged hotkey up or down one line and reload the script. although the next session may work, it can become bugged on another one.

EDIT
Quote:
logged in as admin, uac turned off


Last edited by playerone on August 11th, 2011, 8:04 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2011, 7:57 pm 
SendPlay on Win7, Run as admin and disable UAC
http://www.autohotkey.com/forum/viewtop ... 814#306814
:?:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2011, 8:05 pm 
Offline

Joined: August 11th, 2011, 3:54 pm
Posts: 7
unfortunately it didn't help. i also tried sendinput and send. in both cases the uppercase ä didn't work.

(i'm logged in as an admin and turned off uac a long time ago)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2011, 9:00 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
Those are some interesting hotkeys. What are they used for?

I ask both out of curiosity and because there's likely a better way to do this (whatever 'this' is).

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2011, 11:03 pm 
Offline

Joined: August 11th, 2011, 3:54 pm
Posts: 7
they send unicode chars for german umlauts (äöü ÄÖÜ)
>+ is right shift, <+ left shift

i mapped them to right shift, because it doesn't trigger anything when pressed alone and ctrl is already in use.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: August 12th, 2011, 12:16 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
playerone wrote:
sometimes if i'd press >+<+u it would produce 'ü' instead of 'Ü'.
On my system it always produces 'ü' until you move the >+u<+u hotkey up, then it always produces 'Ü'. This is the behaviour I had expected - you need to put the more specific hotkey first.

If you're still having problems, I'd suggest defining both hotkeys together and using GetKeyState:
Code:
>+<+u::
>+u::
    if GetKeyState("LShift","P")
        SendPlay {U+00dc}
    else
        SendPlay {U+00fc}
    return

Btw, my keyboard hardware is incapable of detecting "a" (or "sdfjkl;") when both shift keys are held down.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2011, 10:22 am 
Offline

Joined: August 11th, 2011, 3:54 pm
Posts: 7
when i changed it to

Code:
>+<+a::Send {U+00c4}
>+<+o::Send {U+00d6}
>+<+u::Send {U+00dc}
>+a::Send {U+00e4}
>+o::Send {U+00f6}
>+u::Send {U+00fc}


i would be unable to type Ö and Ü.
but it works with getkeystate, so thank you for the advice.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2011, 1:21 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
I'll have to take your word for it, since it works perfectly for me. (Even Ä, since I'm now using a different keyboard.)


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

All times are UTC [ DST ]


Who is online

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