Save up to 50% off any of our desktop apps in our 2021 spring sale, including
DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!




<< DiscussionsReply

Scripted functions problem with virtual Desktops

19 discussion posts

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:

But I'm not sure how to use this in DF script...
• Attachment: example.jpeg [96,911 bytes]
Aug 21, 2020 (modified Aug 21, 2020)  • #1
Keith Lammers (BFS)'s profile on
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
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

Aug 24, 2020  • #3
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
Was this helpful?    
<< DiscussionsReply