Welcome Guest.   Make a donation to an author on the site October 22, 2014, 05:29:50 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Remap keyboard press value for -one- application  (Read 2928 times)
ugo
Participant
*
Posts: 3

View Profile Give some DonationCredits to this forum member
« on: March 03, 2006, 02:03:51 AM »

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


« Last Edit: March 03, 2006, 02:41:28 AM by brotherS » Logged
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #1 on: March 03, 2006, 03:00:12 AM »

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... ;-)

[copy or print]
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.../commands/IfWinActive.htm
http://www.autohotkey.com/docs/commands/Send.htm
http://www.autohotkey.com/docs/commands/Return.htm

Logged
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #2 on: March 03, 2006, 03:07:05 AM »

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

[copy or print]
;2005-11-24
;remap Ctrl-NumpadDot to produce .
#Persistent
^NumpadDot::
Send .
return
Logged

Thank you.
ugo
Participant
*
Posts: 3

View Profile Give some DonationCredits to this forum member
« Reply #3 on: March 03, 2006, 03:58:10 AM »


>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
Logged
ugo
Participant
*
Posts: 3

View Profile Give some DonationCredits to this forum member
« Reply #4 on: March 03, 2006, 04:57:23 AM »

Found!!!!

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

#IfWinActive MyWindow
NumpadDot::
send,,
return

thnks again everyone.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.025s | Server load: 0.05 ]