<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>VoiceBot RSS: Switch to App or Open App</title>
<atom:link href="https://www.voicebot.net/Discussions/RSS/?TopicID=faa88319-b971-47fa-ac52-8c6aa67be547" rel="self" type="application/rss+xml" />
<link>https://www.voicebot.net/Discussions/RSS/?TopicID=faa88319-b971-47fa-ac52-8c6aa67be547</link>
<description>VoiceBot RSS: Switch to App or Open App</description>
<lastBuildDate>Sat, 13 Jun 2026 22:44:27 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.voicebot.net/Discussions/RSS/?TopicID=faa88319-b971-47fa-ac52-8c6aa67be547</generator>
<item>
<title>RE: Switch to App or Open App</title>
<link>https://www.voicebot.net/Discussions/View/switch-to-app-or-open-app/?ID=faa88319-b971-47fa-ac52-8c6aa67be547#3</link>
<pubDate>Thu, 16 May 2019 19:30:25 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/switch-to-app-or-open-app/?ID=faa88319-b971-47fa-ac52-8c6aa67be547#3</guid>
<category>VoiceBot</category>
<description><![CDATA[We've just released a new VoiceBot Beta version, and this issue should be all fixed up. Please let us know if you run into any trouble after updating.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We've just released a new <a href="https://www.voicebot.net/Download/Beta" target="_blank" rel="nofollow"><b>VoiceBot Beta</b></a> version, and this issue should be all fixed up. Please let us know if you run into any trouble after updating.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Switch to App or Open App</title>
<link>https://www.voicebot.net/Discussions/View/switch-to-app-or-open-app/?ID=faa88319-b971-47fa-ac52-8c6aa67be547#2</link>
<pubDate>Fri, 04 Jan 2019 18:50:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/switch-to-app-or-open-app/?ID=faa88319-b971-47fa-ac52-8c6aa67be547#2</guid>
<category>VoiceBot</category>
<description><![CDATA[Looks like there might be an issue with the IsAppRunningByAppID function. When it's not running the appID is 0, but that function still returns true for some reason.
I've put this on our list to fix up, in the meantime you can work around it by doing this:
Code
Copy
Select All
using System;...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Looks like there might be an issue with the IsAppRunningByAppID function. When it's not running the appID is 0, but that function still returns true for some reason.<br/>
<br/>
I've put this on our list to fix up, in the meantime you can work around it by doing this:<br/>
<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019ec328700a772b9f0b59f3a6da34b6" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019ec328700a772b9f0b59f3a6da34b6Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019ec328700a772b9f0b59f3a6da34b6Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

public static class VoiceBotScript
{
    public static void Run(IntPtr windowHandle)
    {
        uint appID = BFS.Application.GetAppIDByFile("*notepad++.exe");
        if (appID &gt; 0)
        {
            BFS.Window.Focus(BFS.Window.GetWindowByText("*Notepad++*"));
        }
        else
        {
            BFS.VoiceBotActions.StartProgram(@"C:\Program Files\Notepad++\notepad++.exe");
        }
    }
}</pre><textarea id="code019ec328700a772b9f0b59f3a6da34b6" name="code019ec328700a772b9f0b59f3a6da34b6" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>Switch to App or Open App</title>
<link>https://www.voicebot.net/Discussions/View/switch-to-app-or-open-app/?ID=faa88319-b971-47fa-ac52-8c6aa67be547</link>
<pubDate>Wed, 02 Jan 2019 21:56:53 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/switch-to-app-or-open-app/?ID=faa88319-b971-47fa-ac52-8c6aa67be547</guid>
<category>VoiceBot</category>
<description><![CDATA[I'm trying to make a script that will check if a program is running and if it is it will bring focus to it, if not then it will run it. This is what I have and i can get get either statement to run seperately or both to run at the same time. Doesn't seem the If - then is working correctly. Anyone...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm trying to make a script that will check if a program is running and if it is it will bring focus to it, if not then it will run it. This is what I have and i can get get either statement to run seperately or both to run at the same time. Doesn't seem the If - then is working correctly. Anyone know where i went wrong here? thank you.<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019ec328701e71fe8b432297cd1f9d2a" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019ec328701e71fe8b432297cd1f9d2aJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019ec328701e71fe8b432297cd1f9d2aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

public static class VoiceBotScript {
    public static void Run(IntPtr windowHandle) {
        uint appID = BFS.Application.GetAppIDByFile("*blender.exe");
        if(BFS.Application.IsAppRunningByAppID(appID)){
            BFS.Window.Focus(BFS.Window.GetWindowByText("Blender*"));
        }
           {
               BFS.VoiceBotActions.StartProgram(@"C:\Blender 2.8\blender.exe");
           }
    }
}</pre><textarea id="code019ec328701e71fe8b432297cd1f9d2a" name="code019ec328701e71fe8b432297cd1f9d2a" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>