Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
akuMenon
5 discussion posts
Hey there,

First of all, I absolutely love DisplayFusion, it has made my life a lot easier, so thank you for doing what you do!

Now, onto the reason for this post; I use a trigger to launch a couple of other applications, but the problem is, the window focus shifts as those other applications launch and I need the focus back on the original window (for using hotkeys and such), so ideally, a function that switches focus to the window of the process that activated the trigger will solve my problem. If that is not currently possible, a function that basically does what alt+tab does but without the key simulation and the UI showing all the windows, would suffice.

Forgive me if this problems seems trivial, I'm not much of a programmer so I couldn't bring myself to write a script to do that.

I tried to be brief so I missed a couple of details and reasons as to why I'd like this, but feel free to ask me to clarify specifics.

Thank you very much!
Oct 28, 2017  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
If you just use this in a Scripted Function, then call that from the Trigger (after the application launch actions), that should do the trick:

Code

BFS.Window.Focus(windowHandle);


Note that you will probably need to add a "Wait" action between the application launches and the Scripted Function as well, otherwise the script will run as soon as DF has issued the start process command :)

Hope that helps!
Oct 30, 2017  • #2
User Image
akuMenon
5 discussion posts
That worked perfectly. I didn't think it would be that simple lol, thank you very much!
Oct 30, 2017  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad I could help!
Oct 31, 2017  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)