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 

Need help with a simple remapping problem..

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Paul
Guest





PostPosted: Mon May 02, 2005 1:47 pm    Post subject: Need help with a simple remapping problem.. Reply with quote

Hey,

I am trying to remap the LWin key as Alt+Shift for a specific application. This kind of works (below) but keys get stuck all over the place, I know its wrong in several places including order and syntax but I just cannot get the right way. Any help would be great, thanks..
Code:
*LWin::
IfWinNotActive, ahk_class 3DSMAX
{
   Send {LWin down}
   return
}
Send {ALT down}{SHIFT down}         
return


*LWin up::
IfWinNotActive, ahk_class 3DSMAX
{
   Send {LWin up}
   return
}
Send {ALT up}{SHIFT up}
return
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon May 02, 2005 2:37 pm    Post subject: Reply with quote

For testing purposes, I simplified it to the following but it seems to work okay. Perhaps you can try this too and see if you can find some standard app such as Notepad that these hotkeys misbehave on:

*LWin::Send {ALT down}{SHIFT down}
*LWin up::Send {ALT up}{SHIFT up}
Back to top
View user's profile Send private message Send e-mail
Paul
Guest





PostPosted: Mon May 02, 2005 5:25 pm    Post subject: Reply with quote

Thanks Chris, I played around a bit more and it seems essentially I have it to work for what I want using this..

*LWin::
IfWinNotActive, ahk_class 3DSMAX
{
Send {LWin}
return
}
Send {ALT down}{SHIFT down}
return

*LWin up::
IfWinNotActive, ahk_class 3DSMAX
{
Send {LWin up}
return
}
Send {ALT up}{SHIFT up}
return

So, now I use the windows key in 3D Max to emulate Alt+Shift together with a number of mouse gestures from a different prog (sends a chosen keystroke..).

Anyway this script works fine for what I wanted really but I noticed in testing, if I use a combination using this windows key (say #9) and I set the key combination to call a dialog or another window up in 3D Max it causes the key up to not be recognised and this causes problems as the keys are then stuck down.. does this sound right and any way around it?

thanks
Back to top
Paul
Guest





PostPosted: Mon May 02, 2005 5:33 pm    Post subject: Reply with quote

Actually that is a result of using Alt..

Hm.. thanks anyway. Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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