VoxCommando

Help and Support (Using VoxCommando) => VoxCommando Basics and Core Features => Topic started by: pmdaniels73 on April 18, 2014, 03:37:31 PM

Title: Emulation
Post by: pmdaniels73 on April 18, 2014, 03:37:31 PM
Can anyone tell me how to emulate the escape key? I have tried InputKeys.Send {ESC} InputKeys.Send {ESCAPE} SendKeys {ESC} and SendKeys {ESCAPE}
Title: Re: Emulation
Post by: jitterjames on April 18, 2014, 03:41:42 PM
Inputkeys.Send {ESCAPE}

if you use the parameter helper then you won't need to guess.
Title: Re: Emulation
Post by: pmdaniels73 on April 18, 2014, 03:43:41 PM
Inputkeys.Send {ESCAPE}

if you use the parameter helper then you won't need to guess.

Hi James,

Inputkeys.Send {ESCAPE} is what I tried. Not working for me for some reason though. I am trying to use to to end calls using google voice.
Title: Re: Emulation
Post by: jitterjames on April 18, 2014, 03:50:37 PM
Works fine for me (testing with Google Voice).  Make sure the correct window has focus and that it actually responds to escape as expected.
Title: Re: Emulation
Post by: pmdaniels73 on April 18, 2014, 04:13:00 PM
Who knows.... Using same thing as you. Window with google voice is in focus. I give the command and nothing happens. I physically push the esc key and the call ends.
Title: Re: Emulation
Post by: nime5ter on April 18, 2014, 04:29:01 PM
Tis a mystery, particularly without seeing your command or your history window to know what it's doing. This test command is working for me, but I haven't tried it with a live call.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.2.1-->
<command id="1145" name="Escape GV" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch.RawParam</cmdType>
    <params>
      <param>C:\Program Files (x86)\Mozilla Firefox\firefox.exe</param>
      <param>https://mail.google.com/mail/?voice&amp;pli=1#inbox</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>7000</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>InputKeys.Send</cmdType>
    <params>
      <param>{ESCAPE}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>do the thing with Google Voice</phrase>
</command>