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 

Specific Apps Mouse and Keyboard Remapping

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Nemroth



Joined: 07 Sep 2004
Posts: 262
Location: France

PostPosted: Wed Oct 12, 2005 10:11 pm    Post subject: Specific Apps Mouse and Keyboard Remapping Reply with quote

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 !!!! Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Oct 13, 2005 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Nemroth



Joined: 07 Sep 2004
Posts: 262
Location: France

PostPosted: Thu Oct 13, 2005 5:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
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