Can anyone open Excel 2007 to test something out =)?
I don’t like to hold my modifier keys; I find it more comfortable to toggle it like a Caps Lock. I got this code from an AHK member along time ago:
Code:
$LShift::
if GetKeyState("LShift") ; LShift is logically down. Release it.
Send {Blind}{LShift Up}
else ; LShift is logically up. Press it.
Send {Blind}{LShift Down}
Return
Tap LShift once, and it stays down. Tap it again to release it. So I decided recently to do this for my LAlt key:
Code:
$LAlt::
if GetKeyState("LAlt") ; LAlt is logically down. Release it.
Send {Blind}{LAlt Up}
else ; LAlt is logically up. Press it.
Send {Blind}{LAlt Down}
Return
For excel, I want to open the Office button which is Alt+f. I tap LAlt, then press f, but nothing happens. I had this problem with Ctrl in some adobe applications, so I made LCtrl send a RCtrl down, which seemed to make it work. The code below, where I make LAlt send RAlt down, seems to work in excel, but why is that?
Code:
$LAlt::
if GetKeyState("RAlt") ; RAlt is logically down. Release it.
Send {Blind}{RAlt Up}
else ; RAlt is logically up. Press it.
Send {Blind}{RAlt Down}
return
The LShift to make LShift keep down is no problem. Any way to keep LAlt with LAlt?
Thanks for any info