<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jitterjames.net/voxcommandoWiki/index.php?action=history&amp;feed=atom&amp;title=ActionResult</id>
	<title>ActionResult - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jitterjames.net/voxcommandoWiki/index.php?action=history&amp;feed=atom&amp;title=ActionResult"/>
	<link rel="alternate" type="text/html" href="https://jitterjames.net/voxcommandoWiki/index.php?title=ActionResult&amp;action=history"/>
	<updated>2026-10-16T11:40:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://jitterjames.net/voxcommandoWiki/index.php?title=ActionResult&amp;diff=7&amp;oldid=prev</id>
		<title>James: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://jitterjames.net/voxcommandoWiki/index.php?title=ActionResult&amp;diff=7&amp;oldid=prev"/>
		<updated>2021-01-13T17:24:55Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:24, 13 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>James</name></author>
		
	</entry>
	<entry>
		<id>https://jitterjames.net/voxcommandoWiki/index.php?title=ActionResult&amp;diff=6&amp;oldid=prev</id>
		<title>Jitterjames: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://jitterjames.net/voxcommandoWiki/index.php?title=ActionResult&amp;diff=6&amp;oldid=prev"/>
		<updated>2014-11-25T18:02:56Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;(more documentation to come ...)&lt;br /&gt;
&lt;br /&gt;
In the Python plugin, when you use [[Python#Actions|vc.callAction]] it will return an object of type '''actionResult'''.&lt;br /&gt;
&lt;br /&gt;
=actionResult object=&lt;br /&gt;
The actionResult class has the following properties and methods which you can read&lt;br /&gt;
==Properties==&lt;br /&gt;
===strResult===&lt;br /&gt;
'''string strResult'''&lt;br /&gt;
* (The result of the action if any)&lt;br /&gt;
* Similar to VC variable [[Variables#Recent_Commands|{LastResult}]].&lt;br /&gt;
example: (to print the system volume)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
myActionRes = vc.callAction(&amp;quot;Sound.GetVol&amp;quot;,&amp;quot;&amp;quot;,None)&lt;br /&gt;
print &amp;quot;The current system volume is: &amp;quot;+ myActionRes.strResult&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===strInfo===&lt;br /&gt;
'''string strInfo'''&lt;br /&gt;
* (Some actions don't return a result but still provide some information about their success / errors)&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
===isError()===&lt;br /&gt;
'''bool isError()'''&lt;br /&gt;
* Returns '''false''' if the action completed successfully, or '''true''' if there was an error&lt;br /&gt;
example: (running this code in the python plugin window will result in the word &amp;quot;hello&amp;quot; being displayed in the OSD and the python log will have the line &amp;quot;ya baby&amp;quot; added to it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
myActionRes = vc.callAction(&amp;quot;OSD.ShowText&amp;quot;,&amp;quot;Hello&amp;quot;,None)&lt;br /&gt;
if myActionRes.isError():&lt;br /&gt;
    print &amp;quot;oops!  Something went wrong there.&amp;quot;&lt;br /&gt;
else:&lt;br /&gt;
    print &amp;quot;ya baby&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===toString()===&lt;br /&gt;
'''string toString()'''   (Returns the action's result, info, or error depending on what happened)&lt;br /&gt;
This method will only be available in VoxCommando version 2.0.1.0 or later&lt;/div&gt;</summary>
		<author><name>Jitterjames</name></author>
		
	</entry>
</feed>