<?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>DisplayFusion RSS: Newbie question:  What is the windowHandle?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=018d9740-37be-73b6-abcd-d0b459daad3e" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=018d9740-37be-73b6-abcd-d0b459daad3e</link>
<description>DisplayFusion RSS: Newbie question:  What is the windowHandle?</description>
<lastBuildDate>Sat, 30 May 2026 15:27:41 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=018d9740-37be-73b6-abcd-d0b459daad3e</generator>
<item>
<title>RE: Newbie question:  What is the windowHandle?</title>
<link>https://www.displayfusion.com/Discussions/View/newbie-question-what-is-the-windowhandle/?ID=018d9740-37be-73b6-abcd-d0b459daad3e#2</link>
<pubDate>Mon, 12 Feb 2024 01:41:10 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/newbie-question-what-is-the-windowhandle/?ID=018d9740-37be-73b6-abcd-d0b459daad3e#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[The specifics will only make sense if you know a little C/C++, but windowHandle is defined as type IntPtr... which is a memory address.  Memory addresses could be absolutely anything, but in this context it will probably be the memory address of a window.
Think of it as a GPS location to the fro...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The specifics will only make sense if you know a little C/C++, but windowHandle is defined as type IntPtr... which is a memory address.  Memory addresses could be absolutely anything, but in this context it will probably be the memory address of a window.  <br/>
<br/>
Think of it as a GPS location to the front door of someone's house.  If you give a robot this location and tell it to open a door, it will probably open the door.  Pick a random location and do the same, it probably won't work out as the robot might end up in the middle of a forest or inside some other building by mistake and there's no door to open.  It will try anyways, but the operation will "crash".<br/>
<br/>
Functions such as <div class="Inline"><pre>BFS.Window.GetWindowByText("Discord")</pre></div> might give you an IntPtr to the Discord window, if the window has that title.  Passing that IntPtr to another function that wants a windowHandle will probably work.  Like <div class="Inline"><pre>BFS.Window.Close(someIntPtr)</pre></div> might close that window.  But Discord might only minimize to tray when you try to close its window, so that might not do what you want anyways.  (I've never used the standalone Discord app, so maybe it does close?)
</div>
]]></content:encoded>
</item>
<item>
<title>Newbie question:  What is the windowHandle?</title>
<link>https://www.displayfusion.com/Discussions/View/newbie-question-what-is-the-windowhandle/?ID=018d9740-37be-73b6-abcd-d0b459daad3e</link>
<pubDate>Sun, 11 Feb 2024 08:19:45 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/newbie-question-what-is-the-windowhandle/?ID=018d9740-37be-73b6-abcd-d0b459daad3e</guid>
<category>DisplayFusion</category>
<description><![CDATA[Trying to run a downloaded scripted function to close discord, and I'm not sure what windowHandle is on the script.  Do I just replace that with Discord?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Trying to run a downloaded scripted function to close discord, and I'm not sure what windowHandle is on the script.  Do I just replace that with Discord?
</div>
]]></content:encoded>
</item>
</channel>
</rss>