 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Nemroth
Joined: 07 Sep 2004 Posts: 262 Location: France
|
Posted: Wed Oct 12, 2005 10:11 pm Post subject: Specific Apps Mouse and Keyboard Remapping |
|
|
I know I ask for too much, but...
Is it possible to have a derivative fuctionnality of the last improvement, to allow mouse and keyboard remapping for specific applications ?
Suggested syntax :
a::b[, [!]AppName]
what is between the square brackets (so [, [!]AppName]) is optionnal
and ! is optionnal too and means "not"
", AppName" to specify the concerned app
so for example :
a::b, Notepad would replace a by b only in notepad and
a::b, !Notepad would replace a by b in all applications except Notepad
I think it would be a very good improvement.
Edit : Oh !!! And let us be insane!!!
Why not hotkeys and hotstrings specifics to certain apps ?
Thanks
Edit : a lot !!!!  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Oct 13, 2005 3:25 pm Post subject: |
|
|
Context senstive hotkeys and hotstrings have been on the to-do list a long time so should happen someday. Thanks for the syntax ideas. Edit: Easier context-sensitivity is now available via #IfWinActive/Exist.
In the meantime, you can already do context sensitive remappings as shown in the following working example. It puts the remapping in effect only within Notepad:
| Code: | SetTimer, WatchActiveWindow, 100
return
a::b
WatchActiveWindow:
IfWinActive ahk_class Notepad
{
Hotkey, *a, On
Hotkey, *a up, On
}
else
{
Hotkey, *a, Off
Hotkey, *a up, Off
}
return |
Last edited by Chris on Sun Jan 22, 2006 4:21 am; edited 1 time in total |
|
| Back to top |
|
 |
Nemroth
Joined: 07 Sep 2004 Posts: 262 Location: France
|
Posted: Thu Oct 13, 2005 5:19 pm Post subject: |
|
|
| Chris wrote: | | Context senstive hotkeys and hotstrings have been on the to-do list a long time so should happen someday. Thanks for the syntax ideas. |
Thanks to take my proposition in account.
I already use an application dependant remapping code :
| Code: | NumpadDot::
IfWinActive, %FEN_WD%
Send, `.
else
Send, `,
return |
But it would be nice if inbuilt in AHK. But I think that, as it can be done by an other way, it isn't an emergency...
Thanks for your interesting code. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|