Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
ben campbell1
6 discussion posts
im trying to write some scripted functions to make hotkeys.
im having trouble because anytime i run a BSF.Window fuction it doesnt do anything even though the bool being returned is true
the ones ive tested with are BFS.Window.Close(windowHandle) and BFS.Window.Minimize(windowHandle)

am i just missing something?
Oct 27, 2017  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Are you running the function from the Script Editor, or via hotkey on an actual window?
Oct 27, 2017  • #2
User Image
ben campbell1
6 discussion posts
this was via hotkey the script editor says it runs fine and such so i tested it on multiple real windows.
Oct 28, 2017  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you attach one of your scripts so that we can test it out here?

Thanks!
Oct 30, 2017  • #4
User Image
ben campbell1
6 discussion posts
its overly simple

Code

using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Trigger target when run by a Trigger rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
BFS.Window.Close(windowHandle);
}
}
Nov 1, 2017  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks, that seems to work for me here! Could you attach a debug log?
  • On the DisplayFusion Settings > Troubleshooting tab, change the Logging drop-down to "L1: Log Minimal" and click Apply
  • Focus a window, then press the hotkey for your function
  • Send us the DisplayFusion.log and DebugInfo.html files (can be found by clicking the Open Log button on the Troubleshooting tab)
  • Disable debug logging after sending the log
Nov 1, 2017  • #6
User Image
ben campbell1
6 discussion posts
I have no idea what changed but now it works.....

thanks for trying to help though!
Nov 2, 2017  • #7
User Image
ben campbell1
6 discussion posts
as a side note is there a way to disable the notification balloon that appears to tell me the hotkey worked?
Nov 2, 2017  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There sure is! In the Settings > Advanced Settings window, enable the "General: Don't Show Tray Icon Notification Balloons" option.
Nov 3, 2017  • #9
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)