VoxCommando Forum

Help and Support (Using VoxCommando) => VoxCommando Basics and Core Features => Topic started by: Minefield on November 20, 2014, 07:53:55 AM

Title: Check to see if XBMC is running
Post by: Minefield on November 20, 2014, 07:53:55 AM
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.
Title: Re: Check to see if XBMC is running
Post by: nime5ter on November 20, 2014, 08:35:24 AM
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