News:

There is a soft-mute function which we use with the commands like "What song is this?" There is one for system volume, one for each of: MediaMonkey, XBMC, iTunes, MediaPortal.

Main Menu

Emulation

Started by pmdaniels73, April 18, 2014, 03:37:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pmdaniels73

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

Inputkeys.Send {ESCAPE}

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

pmdaniels73

Quote from: 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.

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

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

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

#5
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.

<?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>
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)