Author Topic: {WINDOWEXISTS} problem  (Read 2618 times)

GreyArea

  • Guest
{WINDOWEXISTS} problem
« on: March 19, 2017, 08:48:48 AM »
Not working as expected...I know there are problems if the window is minimized...but in this case it's not...

Set integer [launchercheck] value to the converted value of {WINDOWEXISTS:'Elite Dangerous Launcher'}
Set integer [VAcheck] value to the converted value of {WINDOWEXISTS:'VoiceAttack'}
Say, '{INT:launchercheck}, {INT:VAcheck}'

The spoken command comes out as "zero, zero"; even with both the ED Launcher and VA running and unminimized

Any suggestions (it's bound to be me doing something wrong again!)

Antaniserse

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 87
    • My VA plugins
Re: {WINDOWEXISTS} problem
« Reply #1 on: March 19, 2017, 10:04:15 AM »
{WINDOWEXISTS:xxx} takes a text variable as input, not literal text... you need to set the desired string inside a text var first, then let WINDOWEXISTS process that.
"I am not perfect and neither was my career. In the end tennis is like life, messy."
Marat Safin

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4778
  • RTFM
Re: {WINDOWEXISTS} problem
« Reply #2 on: March 19, 2017, 10:45:30 AM »
"{WINDOWEXISTS:}" is one of the tokens that hasn't been updated to accept literal text. You could put in a feature request for it.

GreyArea

  • Guest
Re: {WINDOWEXISTS} problem
« Reply #3 on: March 19, 2017, 11:40:43 AM »
Right, thanks again chaps.

I'm actually putting all of your suggestions to (I hope) good use...will share some code shortly, at least I'll be giving back - my apolgogies if it's a bit rubbish!