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




<< DiscussionsReply

Custom function not working in Triggers but works manually

chaoscreater's profile on
Hi all,

I've created a custom function that looks like this:

The function is added as a titlebar button and it works if I click on it to trigger it manually. However, if I set it to trigger automatically, it just doesn't do anything. The trigger is simply just when an app is launched, then run the function. I'm also using a built in "maximize window" function and that works fine. It's just the custom function that I've created that doesn't run automatically.
May 24, 2020  • #1
Keith Lammers (BFS)'s profile on
That's really strange! Everything looks like it's configured correctly. If you try to use that custom function in a Trigger for a different application, does it work?
May 26, 2020  • #2
chaoscreater's profile on
It doesn't work for other apps either.
May 27, 2020  • #3
Keith Lammers (BFS)'s profile on
Ok, strange! Could you send me a debug log?

  • On the DisplayFusion Settings > Troubleshooting tab, change the Logging drop-down to "L1: Log Minimal" and click Apply
  • Open the app that's configured in the Trigger rule and note the time so we'll know where to check in the log file
  • Click the "Export Info to File" button on the Settings > Troubleshooting tab
  • Reply with the file attached
  • Disable debug logging after sending the log

May 27, 2020  • #4
chaoscreater's profile on
Here you go.
• Attachment [protected]: [51,342 bytes]
Jun 1, 2020  • #5
Keith Lammers (BFS)'s profile on
Thanks! The log isn't showing that the Trigger fired at all. Which app did you open for this debug log?
Jun 1, 2020  • #6
chaoscreater's profile on
Sorry, have uploaded new log. The app is Devolutions RDM and the custom function is called "Work RDP'.
• Attachment [protected]: [51,342 bytes]
Jun 1, 2020  • #7
Keith Lammers (BFS)'s profile on
I'm still not seeing anything related to Devolutions RDM in the log. Are you restoring it from the system tray, or launching it fresh?
Jun 2, 2020  • #8
chaoscreater's profile on
I enabled logging as per your instructions.

I then opened Devolutions RDM and took an export of the log.

You can do a test by downloading Devolutions RDM (there's a free version).
Jun 2, 2020  • #9
Keith Lammers (BFS)'s profile on
Ok, but did you open RDM using the system tray icon, or launching it from the Start menu/desktop?
Jun 2, 2020  • #10
chaoscreater's profile on
I launched it from the start menu.

It's all good, I've got it sorted now. The issue was the wait time was set to 10000 ms (10 seconds) instead of 1 second. I've also modified the trigger to fire when the Windows Text matches the keyword I specified.
Jun 2, 2020  • #11
Keith Lammers (BFS)'s profile on
Ah! I totally missed that extra 0 in your screenshot, good catch! Glad to hear you were able to get it sorted out
Jun 2, 2020  • #12
Was this helpful?    
<< DiscussionsReply