Author Topic: Emulation  (Read 1970 times)

0 Members and 1 Guest are viewing this topic.

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Emulation
« 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}

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Emulation
« Reply #1 on: April 18, 2014, 03:41:42 PM »
Inputkeys.Send {ESCAPE}

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

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Emulation
« Reply #2 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Emulation
« Reply #3 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.

pmdaniels73

  • $upporter
  • Sr. Member
  • *****
  • Posts: 118
  • Karma: 0
    • View Profile
Re: Emulation
« Reply #4 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.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Emulation
« Reply #5 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>
« Last Edit: April 18, 2014, 04:33:47 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)