Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
apa7c4
19 discussion posts
Hello,

I'm trying to do a script that maximize windows to greatest available space on desktop.

See image in attachment.

My problem is that, if there is windows open in another Virtual Desktop these count as visible windows also? Is there a easy way to check if visible window is actually in same virtual desktop?

I tried googling around just for C# and found this: https://stackoverflow.com/questions/27977924/in-windows-10-how-can-we-determine-which-virtual-desktop-a-window-belongs-to

But I'm not sure how to use this in DF script...
• Attachment: example.jpeg [96,911 bytes]
example.jpeg
example.jpeg
Aug 21, 2020 (modified Aug 21, 2020)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I'm not 100% sure either how to use that code in a script but I will pass it over to one of our developers to have a look at.
Aug 22, 2020  • #2
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
I was able to put something together for your that should get your started with your script. Here's how you can check it out:

  • Download the file attached to this post
  • On the DisplayFusion Settings > Functions tab, click Scripted Function > Import Scripted Function
  • Give it a key combination and click OK
  • Optionally, select it, click "Toggle TitleBar Button" (to add it to the caption bar of every application)
  • Click Apply and test it out

Thanks!
Aug 24, 2020  • #3
User Image
apa7c4
19 discussion posts
Hi! Thank you!

I got it working. I still have a few bugs in my script, but now it ignores other desktops!
Aug 24, 2020  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)