Title

Message
Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< DiscussionsReply

DisplayFusion not detecting Path of Exile closing to process a trigger

Avatar from Gravatar.com
Dreamer3
12 discussion posts
I am currently setup so that when I launch Path of Exile it launchs two quality of life programs for the game. This works fine. My goal is to be able to close these two programs when I close Path of Exile. I have tested with other games/programs and I can get these programs to trigger my AutoHotKey scripts that close my QoL programs.

So far I've tried both the Window Destroyed and Process Ended triggers.

I've tried using the process name/path, the window name, window class, and process command line parameters to trigger the function both alone and in conjunction with each other.

I've had to do a few different workarounds to get triggers to work for me the way I need them to for my odd setups, but I can't figure out a way around this one.

EDIT: For now I am using an AHK script as an .exe thats only function is to listen for PoE closing and when that closes DisplayFusion detects the AHK script closing. That triggers DisplayFusion launching 2 more AHK scripts to close my QoL programs. I'd much rather not have to do it this way, but it works for now.

Also, in all of this is there a way to integrate closing applications into the trigger/function system or is this a problem with Windows?
Jan 9, 2018 (modified Jan 9, 2018)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Binary Fortress Administrator
 Binary Fortress Administrator
You can add a Scripted Function to the Trigger rule and use this line to close an application from within the script:

Code



For the issue of DisplayFusion not detecting the game closing, that is definitely strange! Could you attach a screenshot of both Trigger rules?
Jan 9, 2018  • #2
Avatar from Gravatar.com
Dreamer3
12 discussion posts
Thank you for the script. It's working for one of my programs (that runs through Java), but it doesn't work for my other one which is an AHK script compiled as an .exe. Is there a script to close a process by .exe name instead of a window? In Task Manager the PoeTradeMacro.exe runs as a background process.

Here are the triggers for now. The launch trigger works flawlessly, but the close trigger doesn't work. The 3rd screenshot is the function that I am using to close the programs when Path of Exile closes by detecting a different program closing.
• Attachment [protected]: DisplayFusionSettings_2018-01-09_14-40-04.png [32,556 bytes]
• Attachment [protected]: DisplayFusionSettings_2018-01-09_14-40-37.png [31,732 bytes]
• Attachment [protected]: DisplayFusionSettings_2018-01-09_15-17-56.png [30,124 bytes]
Jan 9, 2018  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Binary Fortress Administrator
 Binary Fortress Administrator
You can try this out, but it will forcefully end the process instead of asking it to close gracefully:

Code

Jan 10, 2018  • #4
Avatar from Gravatar.com
Dreamer3
12 discussion posts
Quote:
You can try this out, but it will forcefully end the process instead of asking it to close gracefully:

Code



This script works. Thank you. I am fine with a force close for this.
Jan 11, 2018  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Binary Fortress Administrator
 Binary Fortress Administrator
No worries, glad that helped!
Jan 11, 2018  • #6
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply