News:

VoxCommando works with Amazon Echo, Domoticz, EventGhost, Google Assistant, IFTTT, iTunes, J.River Media Center, Kodi, MediaMonkey, Nest, Philips Hue, Vera, Wemo, and the list keeps growing!

Main Menu

Check to see if XBMC is running

Started by Minefield, November 20, 2014, 07:53:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Minefield

I've just started using Vox and think it's amazing.  It's opened up a whole new world of possibilities.

I was wandering if there's a command that'll check to see if XBMC is running so that I can open it, if it isn't?

Also, how do I call a macro from within another macro?

Thanks.

nime5ter

Hi Minefield. Welcome!

You can use the launch XBMC command.

If XBMC is already running, VC won't run another instance, it will just focus XBMC.

So, for example, if you want VC to automatically start up XBMC when you launch VC, you can trigger the "launch XBMC" command using the VC.Loaded event. And as I say, if XBMC is already running, this will focus XBMC.

http://voxcommando.com/mediawiki/index.php?title=Command_Tree_Editor (see "events")

That said, the logic block function in the logical command builder (macro builder) has a boolean "if process running" option, so you could try that as well, if you don't want to focus XBMC. http://voxcommando.com/mediawiki/index.php?title=Logic_Block

You can call one command (macro) from another in several ways:
1. VC.Tellvox
2. Assign an event to the second command, and trigger that event within the first command (most commonly, using VC.TriggerEvent).

http://voxcommando.com/mediawiki/index.php?title=Actions#VoxCommando







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)