Author Topic: Check to see if XBMC is running  (Read 1141 times)

0 Members and 1 Guest are viewing this topic.

Minefield

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Check to see if XBMC is running
« 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.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Check to see if XBMC is running
« Reply #1 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







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)