简体   繁体   中英

How can I get Autohotkey to press a differnet button with a button input?

~LALT:: Send {DELETE DOWN}
~LALT UP:: Send {DELETE UP}
~NUMPAD0:: Send {DELETE DOWN}
~NUMPAD0 UP:: Send {DELETE UP}

There is my current code. I want to make it so that when I'm holding down either Left Alt or Numpad 0, it will ALSO push down the Delete key. My problem is that I cannot compile it, and I have very little knowledge to why it won't compile.

The reason I am doing this is because I have two separate hot keys for Push-to-talk voice program and I want FRAPS to record when I'm pushing either of them.

I get this error when I compile )= http://i.imgur.com/dBI5lSk.png

Here is how I do it to use Windows' win keys with Display Fusion.

Even though I might set the hotkey the way I want it in Display Fusion, Windows won't let me override it - but AutoHotkey will! So I set the hotkeys in Display Fusion to something I won't ever use or possibly remember, then I set the hotkeys I want in AutoHotkey , and use AutoHotkey to send the hotkeys I don't need to remember... (clear as mud?)

;key commands to align to Display Fusion
#down::send, !#{down}
#up::send, !#{up}
#right::send, !#{right}
#left::send, !#{left}

#+down::send,+^#{down}
#+up::send,+^#{up}
#+right::send,+^#{right}
#+left::send,+^#{left}

(I know krazyito65 already has an answer, but in order to mark this question solved, someone needs to "answer" it).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM