Author Topic: Is there a way for Voiceattack to only run command if I'm on the right monitor.  (Read 815 times)

iceblast

  • Sr. Member
  • ****
  • Posts: 374
Is there a way for Voiceattack to only run a command if I'm on the right monitor.

So, if I only want a command to work, while I'm on monitor 2, can VA do a check, before running the command.

I looked in the manual, and I didn't see it, but maybe I missed it, or there is another way to do what I want to do.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
What would you consider being on the right monitor?

If it's where your mouse cursor is, you can use the "{MOUSESCREENX}" token to check its position.
With extended displays, anything to the left of your main display will be a negative value. If your second display is on the right, you can check whether the cursor position value is larger than the width of the main display; E.G. if your main monitor has a resolution of 1920x1080, anything over 1920 would be the other monitor.

iceblast

  • Sr. Member
  • ****
  • Posts: 374
Yeah, that's right, I should have thought of that. Thanks, that solves my problem. :)