<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://hotline.ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_WinGetState</id>
		<title>Core Function WinGetState - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_WinGetState"/>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetState&amp;action=history"/>
		<updated>2026-04-24T14:30:56Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetState&amp;diff=5422&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetState&amp;diff=5422&amp;oldid=prev"/>
				<updated>2015-06-14T12:38:50Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:38, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetState&amp;diff=5421&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetState&amp;diff=5421&amp;oldid=prev"/>
				<updated>2014-08-11T21:40:40Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:40, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetState&amp;diff=965&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; WinGetState ( &lt;title&gt;, &lt;text&gt; ) &lt;/pre&gt;  === Description ===  Retrieves the state of a given window.  === Parameters ===  ==== Title ====  The title of the window.  ==== Tex...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetState&amp;diff=965&amp;oldid=prev"/>
				<updated>2011-11-29T19:26:32Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; WinGetState ( &amp;lt;title&amp;gt;, &amp;lt;text&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Retrieves the state of a given window.  === Parameters ===  ==== Title ====  The title of the window.  ==== Tex...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
WinGetState ( &amp;lt;title&amp;gt;, &amp;lt;text&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Retrieves the state of a given window.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== Title ====&lt;br /&gt;
&lt;br /&gt;
The title of the window.&lt;br /&gt;
&lt;br /&gt;
==== Text ====&lt;br /&gt;
&lt;br /&gt;
Optional; The text of the window to read.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns a value indicating the state of the window. Multiple values are added together so use BitAND() or use the &amp;amp; operator to examine the part you are interested in: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1 = Window exists &lt;br /&gt;
2 = Window is visible &lt;br /&gt;
4 = Windows is enabled &lt;br /&gt;
8 = Window is active &lt;br /&gt;
16 = Window is minimized &lt;br /&gt;
32 = Windows is maximized &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Failure: Returns 0. &lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
See &amp;quot;WinTitleMatchMode&amp;quot; in [[Core Function Opt|Opt]]&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
// Check if a new notepad window is minimized&lt;br /&gt;
$state = WinGetState(&amp;quot;Untitled&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Is the &amp;quot;minimized&amp;quot; value set?&lt;br /&gt;
If ($state &amp;amp; 16)&lt;br /&gt;
{&lt;br /&gt;
    MsgBox(&amp;quot;Window is minimized&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
// Check if a new notepad window is minimized&lt;br /&gt;
$state = WinGetState(&amp;quot;Untitled&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Is the &amp;quot;minimized&amp;quot; value set?&lt;br /&gt;
If ( BitAnd($state, 16) )&lt;br /&gt;
{&lt;br /&gt;
    MsgBox(&amp;quot;Window is minimized&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>