Messages - jeff_eisenberg [ switch to compact view ]

Pages: [1] 2next
1
If anyone is interested. Here's the script I got for using double tap Alt.
Seems to be working with no conflicts so far

endKeys := "{BS}{Enter}{Insert}{Home}{Pgup}{PdDwn}End}{Delete}"
     . "{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}"
     . "{LShift}{RShift}{Tab}{Esc}{CAPSLOCK}{Ctrl}{PrintScreen}{NumLock}"
     . "{Numpad0}{Numpad0}{Numpad0}{Numpad0}{Numpad0}{Numpad0}{Numpad0}"
     . "{Numpad7}{Numpad8}{Numpad9}{NumpadDel}{Up}{Down}{Left}{Right}"
     . "{LAlt}{RAlt}{.}{,}{/}"

~Alt Up::
    Input, key, V L1 t0.5 E, % endKeys
    If (Errorlevel ~= "Alt") {
        Double_ALT := true
        Sleep 2000
        Double_ALT := false
    }
return

; Press a key within two seconds after double tapping the Alt key, to activate an action:
#If (Double_ALT)
    a:: MsgBox, Test a
    b:: MsgBox, Test b
    c:: MsgBox, Test c
    d::
    FormatTime, CurrentDateTime,,MM/dd/yy - hh:mmtt
    SendInput %CurrentDateTime%
            Double_ALT :=false
return
return

2
Thanks for the feedback. Yea, we just wanted to find a universal "activator" for the company so that when following it by any letter, it would trigger different macros. Everything we try seems to have some kind of conflict. We wanted to use one that would be easy like SHIFT/SHIFT... But i guest it's not that easy. Recommendations appreciated.

3
Love it. Thanks!
I thought that this approach seemed more stable but I couldn't figure out how to replace it with Alt.
Using Alt, endKeys i don't think would be necessary because no one would ever double tap Alt.
I'm also posting on StackOverflow and will post back here if I get any results.

~Alt Up::
    Input, key, V L1 t0.5 E, % endKeys
    If (Errorlevel ~= "Alt") {
        Double_Alt := true
        Sleep 2000
        Double_Alt := false

4
Thanks so much. I think you're solution is best. Using "Alt" should make that anomaly a non-issue. Do you know how I can get it to work with the following script? I've replaced "Shift" with "Alt" but can't get it to work.

endKeys := "{BS}{Enter}{Insert}{Home}{Pgup}{PdDwn}End}{Delete}"
     . "{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}"
     . "{LShift}{RShift}{Tab}{Esc}{CAPSLOCK}{Ctrl}{PrintScreen}{NumLock}"
     . "{Numpad0}{Numpad0}{Numpad0}{Numpad0}{Numpad0}{Numpad0}{Numpad0}"
     . "{Numpad7}{Numpad8}{Numpad9}{NumpadDel}{Up}{Down}{Left}{Right}"

~Alt Up::
    Input, key, V L1 t0.5 E, % endKeys
    If (Errorlevel ~= "Alt") {
        Double_Alt := true
        Sleep 2000
        Double_Alt := false
    }
return

; Press a key within two seconds after double tapping the Shift key, to activate an action:
#If (Double_Alt)
    d::
    FormatTime, CurrentDateTime,,MM/dd/yy - hh:mmtt
    SendInput %CurrentDateTime%
            Double_Alt :=false
            return
    a:: MsgBox, Test
    s:: MsgBox, Test
    f:: MsgBox, Test
return

5
I'm going to try to go with your suggestion.
I replaced "Shift" in the script with "Alt" but that's apparently not sufficient.
Can you give me any guidance or show what needs to be done to convert it from "Shift" to "Alt" ?

Pages: [1] 2next
Go to full version