Page 1 of 1

how to use the pipe operator

Posted: 06 Jun 2018, 04:49
by v4len
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...

Re: how to use the pipe operator

Posted: 06 Jun 2018, 10:44
by Nightwolf85
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