how to use the pipe operator

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
v4len
Posts: 1
Joined: 06 Jun 2018, 04:41

how to use the pipe operator

06 Jun 2018, 04:49

Hello,

I can't figure out how to make this work:

Code: Select all

~a | ~b::
  send c
  return
All I'm getting is an error:
Line Text: ~a | ~b::
Error: Invalid hotkey.
I tried using a comma to separate them, same thing. I can't do "a & b::c" because then I need to press both a and b at the same time to get c.
Please explain to me, I've been skimming documentation and googling for over an hour and I can't find anything...
Nightwolf85
Posts: 302
Joined: 05 Feb 2017, 00:03

Re: how to use the pipe operator

06 Jun 2018, 10:44

Do you mean to use | as OR?

If so, you can just put each on it's own line:

Code: Select all

~a::
~b::
    send c
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: gkaoyan, Google [Bot], Joey5 and 201 guests