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

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetPos&amp;diff=5224&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetPos&amp;diff=5224&amp;oldid=prev"/>
				<updated>2015-06-14T12:38:31Z</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://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetPos&amp;diff=5223&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetPos&amp;diff=5223&amp;oldid=prev"/>
				<updated>2014-08-11T21:40:34Z</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://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetPos&amp;diff=665&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; WinGetPos ( &lt;title&gt;, &lt;text&gt; ) &lt;/pre&gt;  === Description ===  Retrieves the position and size of a given window.  === Parameters ===  ==== Title ====  The title of the window....&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_WinGetPos&amp;diff=665&amp;oldid=prev"/>
				<updated>2011-11-27T09:26:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; WinGetPos ( &amp;lt;title&amp;gt;, &amp;lt;text&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Retrieves the position and size of a given window.  === Parameters ===  ==== Title ====  The title of the window....&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;
WinGetPos ( &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 position and size 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 4-element array containing the following information: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$array[0] = X position &lt;br /&gt;
$array[1] = Y position &lt;br /&gt;
$array[2] = Width &lt;br /&gt;
$array[3] = Height &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;
WinGetPos returns negative numbers such as -32000 for minimized windows, but works fine with (non-minimized) hidden windows.&lt;br /&gt;
&lt;br /&gt;
If the window title &amp;quot;Program Manager&amp;quot; is used, the function will return the size of the desktop.&lt;br /&gt;
&lt;br /&gt;
If multiple windows match the criteria, the most recently active window is used.&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;
// Get a window&lt;br /&gt;
List ($x, $y, $w, $h) = WinGetPos(&amp;quot;Calculator&amp;quot;);&lt;br /&gt;
println(&amp;quot;The window stats (x,y,width,height): $x, $y, $w, $h&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Get active window&lt;br /&gt;
List ($x, $y, $w, $h) = WinGetPos(&amp;quot;&amp;quot;);&lt;br /&gt;
println(&amp;quot;Active window stats (x,y,width,height): $x, $y, $w, $h&amp;quot;);&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>