News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

Vox Commando and windows shell commands

Started by Tripper, July 15, 2014, 05:18:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tripper

I am new to Vox commando and i have done some searching but i cant find a way to use windows shell commands in Vox can someone please help me.
I am trying to give Vox a command such as Open Control panel and have the action be something like  Launch.openfile or Launch.RawParam - ::{21EC2020-3AEA-1069-A2DD-08002b30309d}.
but i can figure out a way to make it work. :(

jitterjames

Hi Tripper.  How would you normally do this from the command line?

Tripper

well for instance using rainmeter the commands are used with button clicks in the .ini file .... such as
ButtonRight1="Control Panel"
ButtonRight1Path=::{21EC2020-3AEA-1069-A2DD-08002b30309d}
or using it in Mega vioce command they have it as the action in their shell commands section.
yes i know im not to bright in the programing part of this.

Tripper

Quote from: Tripper on July 15, 2014, 05:45:12 PM
well for instance using rainmeter the commands are used with button clicks in the .ini file .... such as
ButtonRight1="Control Panel"
ButtonRight1Path=::{21EC2020-3AEA-1069-A2DD-08002b30309d}
or using it in Mega vioce command they have it as the action in their shell commands section.
yes i know im not to bright in the programing part of this.


Or this might be a better example of what a rainmeter command would be
LeftMouseDownAction= !Execute ["::{21EC2020-3AEA-1069-A2DD-08002b30309d}"]

jitterjames

Well, I'm not too familiar with this stuff but these might help.  There might be a better way but at the moment I don't know of one.

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.0.1-->
<commandGroup open="True" name="launch special stuff" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="1004" name="Open My Computer" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.Hidden</cmdType>
      <params>
        <param>c:\windows\system32\cmd.exe</param>
        <param>/c Explorer /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Open My Computer</phrase>
  </command>
  <command id="1010" name="Open Windows control panel" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.Hidden</cmdType>
      <params>
        <param>c:\windows\system32\cmd.exe</param>
        <param>/c Explorer /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Open Windows control panel</phrase>
  </command>
  <command id="1017" name="open Windows printers" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.Hidden</cmdType>
      <params>
        <param>c:\windows\system32\cmd.exe</param>
        <param>/c Explorer /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{2227A280-3AEA-1069-A2DE-08002B30309D}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>open Windows printers</phrase>
  </command>
  <command id="1035" name="Open Network neighbourhood" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.Hidden</cmdType>
      <params>
        <param>c:\windows\system32\cmd.exe</param>
        <param>/c Explorer /N,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Open Network neighbourhood</phrase>
  </command>
  <command id="1013" name="Open My Documents" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.Hidden</cmdType>
      <params>
        <param>c:\windows\system32\cmd.exe</param>
        <param>/c Explorer /N,::{450D8FBA-AD25-11D0-98A8-0800361B1103}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Open My Documents</phrase>
  </command>
</commandGroup>

nime5ter

This also works:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.0.0-->
<command id="320" name="open control panel" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch.Hidden</cmdType>
    <params>
      <param>C:\Windows\System32\cmd.exe</param>
      <param>/c start ::{21EC2020-3AEA-1069-A2DD-08002B30309D}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</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)

jitterjames

This uses another method.  I'm not sure if it covers the same stuff or not.  More info about the params you can try is here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ee330741(v=vs.85).aspx

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.0.1-->
<commandGroup open="True" name="launch special stuff Another way" enabled="True" prefix="" priority="0" requiredProcess="" description="http://msdn.microsoft.com/en-us/library/windows/desktop/ee330741(v=vs.85).aspx">
  <command id="1019" name="Open Windows Personalization" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.RawParam</cmdType>
      <params>
        <param>c:\windows\system32\control.exe</param>
        <param>/name Microsoft.Personalization</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="1024" name="Open Microsoft Sound" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.RawParam</cmdType>
      <params>
        <param>c:\windows\system32\control.exe</param>
        <param>/name Microsoft.Sound</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="1029" name="Open Microsoft User Accounts" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.RawParam</cmdType>
      <params>
        <param>c:\windows\system32\control.exe</param>
        <param>/name Microsoft.UserAccounts</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="1032" name="Open Microsoft Windows Firewall" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.RawParam</cmdType>
      <params>
        <param>c:\windows\system32\control.exe</param>
        <param>/name Microsoft.WindowsFirewall</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
  <command id="1028" name="Open Microsoft Notification Area Icons" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch.RawParam</cmdType>
      <params>
        <param>c:\windows\system32\control.exe</param>
        <param>/name Microsoft.NotificationAreaIcons</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
  </command>
</commandGroup>

Tripper

Thank you so much !!! it's now working just as i wanted
with the other info you have given me getting the others to work should be a breeze

I am constantly talking to all my friends and family about Vox Commando and what i am able to do with it
you guy's are awesome keep up the great work ;D

jitterjames