<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://humanemulator.net/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://humanemulator.net/wiki/feed.php">
        <title>Human Emulator wiki en:objects:window:get</title>
        <description></description>
        <link>https://humanemulator.net/wiki/</link>
        <image rdf:resource="https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-11-08T20:16:22+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_class&amp;rev=1785959964&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_number&amp;rev=1785959965&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_point&amp;rev=1785959965&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_text&amp;rev=1785959966&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_focused_window&amp;rev=1785959966&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_foreground_window&amp;rev=1785959967&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Human Emulator wiki</title>
        <link>https://humanemulator.net/wiki/</link>
        <url>https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_class&amp;rev=1785959964&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:59:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:window:get:get_by_class</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_class&amp;rev=1785959964&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; window-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Get the class of the first main visible window, the class of which contains the letter a:&quot;;
echo $window-&gt;get_by_class(&quot;a&quot;)-&gt;get_class_name();

//end
echo &quot;&lt;hr&gt; &lt;br&gt;&quot;;

//Quit
$app-&gt;quit()…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_number&amp;rev=1785959965&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:59:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:window:get:get_by_number</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_number&amp;rev=1785959965&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; window-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Get the text of the main visible window containing the name Skype:&quot;;
$skype = $window-&gt;get_by_text(&quot;Skype&quot;);
echo $skype-&gt;get_text().&quot;&lt;br&gt;&quot;;

//2
echo &quot;2.Get the text of the main visible w…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_point&amp;rev=1785959965&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:59:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:window:get:get_by_point</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_point&amp;rev=1785959965&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; window-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Get the text of the window at point 10,10:&quot;;
echo $window-&gt;get_by_point(10,10)-&gt;get_text().&quot;&lt;br&gt;&quot;;


//2
echo &quot;2.Get the window text at point 90,90:&quot;;
echo $window-&gt;get_by_point(90,90)-&gt;ge…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_text&amp;rev=1785959966&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:59:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:window:get:get_by_text</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_by_text&amp;rev=1785959966&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; window-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Get the text of the main visible window containing the name Skype:&quot;;
$skype = $window-&gt;get_by_text(&quot;Skype&quot;);
echo $skype-&gt;get_text().&quot;&lt;br&gt;&quot;;

//2
echo &quot;2.Get the text of the main visible w…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_focused_window&amp;rev=1785959966&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:59:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:window:get:get_focused_window</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_focused_window&amp;rev=1785959966&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:705&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; window-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

sleep(2);

//1
echo &quot;1.Get x, y of the window with focus:&quot;;
echo $window-&gt;get_focused_window()-&gt;get_x().&quot;&quot;.$window-&gt;get_focused_window()-&gt;get_y();

//end
echo &quot;&lt;hr&gt; &lt;br&gt;&quot;;

//Quit
$app-&gt;quit();
?&gt;</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_foreground_window&amp;rev=1785959967&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:59:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:window:get:get_foreground_window</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:window:get:get_foreground_window&amp;rev=1785959967&amp;do=diff</link>
        <description>PHP example: 



Python example: 

# Additional paths
import sys
sys.path.insert(0, &#039;../../../Templates PY/&#039;)

xhe_host = &quot;127.0.0.1:705&quot;
from xweb_human_emulator import *

# Start
echo(&quot;&lt;hr&gt; &lt;font color = blue&gt; window.xxxxxxxxx &lt;/font&gt; &lt;hr&gt;&quot;)

# 1
echo(&quot;1.Get the x, y of a window with user input:&quot;)
echo(window.get_foreground_window().get_x(), &quot;&quot;)
echo(window.get_foreground_window().get_y(), &quot;&quot;)
echo(window.get_foreground_window().get_text(), &quot;&quot;)

# end
echo(&quot;&lt;hr&gt; &lt;br&gt;&quot;)

# Quit
app.quit()</description>
    </item>
</rdf:RDF>
