| View previous topic :: View next topic |
| Author |
Message |
Paul Guest
|
Posted: Mon May 02, 2005 1:47 pm Post subject: Need help with a simple remapping problem.. |
|
|
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
|
Posted: Mon May 02, 2005 2:37 pm Post subject: |
|
|
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 |
|
 |
Paul Guest
|
Posted: Mon May 02, 2005 5:25 pm Post subject: |
|
|
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
|
Posted: Mon May 02, 2005 5:33 pm Post subject: |
|
|
Actually that is a result of using Alt..
Hm.. thanks anyway.  |
|
| Back to top |
|
 |
|