ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Remap keyboard press value for -one- application

(1/1)

ugo:
Hi, maybe it's a stupid idea but...

On an italian keyboard (that's it: I'm from Italy!), the decimal separator is "," and not ".".
I have a couple of applications that don't recognize correctly the "." on the numeric pad and don't let me use it for decimals.
At the meantime, obviously, I don't want to remap the "." to "," for -all- apps!!!
So what I would need is a keyboard remapper able to understand "what application is on focus" before chenging the keyboard value...

...is there something around there (or can be easily made) which can do this???

thnks in advance.
bye
ugo


wr975:
A simple AutoHotkey Script could do it for you.

In this example applications "Slimbrowser" and "Whatever" will get a comma if you press NumpadDot. All other applications still get a dot.

Just adapt this example, or wait if someone codes something better... ;-)


--- ---NumpadDot::
IfWinActive, ahk_class SlimBrowser MainFrame
{
     send,,
     return
}

IfWinActive, whatever
{
     send,,
     return
}

send,.
return

Used commands for reference:

http://www.autohotkey.com/docs/Hotkeys.htm
http://www.autohotkey.com/docs/commands/IfWinActive.htm
http://www.autohotkey.com/docs/commands/Send.htm
http://www.autohotkey.com/docs/commands/Return.htm

brotherS:
I'm using this code to remap the standard "," that I have in my keyboard layout to "." on demand! Very helpful:


--- ---;2005-11-24
;remap Ctrl-NumpadDot to produce .
#Persistent
^NumpadDot::
Send .
return

ugo:

>A simple AutoHotkey Script could do it for you

Wonderful!!!
Great idea.

The only trouble with your script is that it seems to gain a loop:
the last "send ,." causes the script being executed again...
what else can I do insted?

thnx again

bye
ugo

ugo:
Found!!!!

I must test WinActive first and the key second!!!!

#IfWinActive MyWindow
NumpadDot::
send,,
return

thnks again everyone.

Navigation

[0] Message Index

Go to full version