<?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: Getting location of window using handle in Scripted function</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=10532bae-cb8b-4902-9a42-623cda034e70" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=10532bae-cb8b-4902-9a42-623cda034e70</link>
<description>DisplayFusion RSS: Getting location of window using handle in Scripted function</description>
<lastBuildDate>Mon, 25 May 2026 02:31:20 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=10532bae-cb8b-4902-9a42-623cda034e70</generator>
<item>
<title>RE: Getting location of window using handle in Scripted function</title>
<link>https://www.displayfusion.com/Discussions/View/getting-location-of-window-using-handle-in-scripted-function/?ID=10532bae-cb8b-4902-9a42-623cda034e70#3</link>
<pubDate>Wed, 28 Jul 2021 17:42:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/getting-location-of-window-using-handle-in-scripted-function/?ID=10532bae-cb8b-4902-9a42-623cda034e70#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks! That's perfect!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-grin-stars.light.svg" alt="8)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData="8)" HelpButtonDataAlign="BelowMiddle" /> Thanks! That's perfect!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Getting location of window using handle in Scripted function</title>
<link>https://www.displayfusion.com/Discussions/View/getting-location-of-window-using-handle-in-scripted-function/?ID=10532bae-cb8b-4902-9a42-623cda034e70#2</link>
<pubDate>Thu, 15 Jul 2021 20:11:28 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/getting-location-of-window-using-handle-in-scripted-function/?ID=10532bae-cb8b-4902-9a42-623cda034e70#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi Ray,
You can use this line to grab the Y value of a window handle:
int y = BFS.Window.GetBounds(windowHandle).Y
Hope that helps!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Ray,<br/>
<br/>
You can use this line to grab the Y value of a window handle:<br/>
<br/>
int y = BFS.Window.GetBounds(windowHandle).Y<br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>Getting location of window using handle in Scripted function</title>
<link>https://www.displayfusion.com/Discussions/View/getting-location-of-window-using-handle-in-scripted-function/?ID=10532bae-cb8b-4902-9a42-623cda034e70</link>
<pubDate>Wed, 14 Jul 2021 15:20:38 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/getting-location-of-window-using-handle-in-scripted-function/?ID=10532bae-cb8b-4902-9a42-623cda034e70</guid>
<category>DisplayFusion</category>
<description><![CDATA[I currently have a function that regularly saves the window positions so I can quickly restore, as well as restores when I get through the lock screen. However I have a docking station that occasionally hiccups, and Windows very nicely moves all the windows to Y coordinate 0, then when it comes b...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I currently have a function that regularly saves the window positions so I can quickly restore, as well as restores when I get through the lock screen. However I have a docking station that occasionally hiccups, and Windows very nicely moves all the windows to Y coordinate 0, then when it comes back, at some point the window positions are saved and I have to drag everything back.<br/>
<br/>
What I want to do is add a check to my scripted function that if it finds a certain number of windows with Y 0, don't save the positions, rather restore. <br/>
<br/>
I've been looking through the samples and object documentation and I don't see anything that demonstrates getting the X/Y coordinates. (Setting, yes, I contributed a sample script a few years ago). I also haven't seen a list of the properties available, but I'm guessing that that is a Windows system thing (I'm a mainframer, so no practical experience).<br/>
<br/>
All input appreciated.<br/>
<br/>
Cheers,<br/>
Ray
</div>
]]></content:encoded>
</item>
</channel>
</rss>