Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Klomar
7 discussion posts
Hello everyone!
I'm using DisplayFusion Pro (steam) version 8.0 Beta 9.
I just wanted to report a little bug:
If I call the function Prevent Window Deactivation during a scripted function it doesnt work, I need to use a hotkey only for that specific function and then another hotkey for my scripted function.

The rest of the script just works fine, it only "skips" the prevent deactivation window function.

Here's the code (btw I'm using the italian version so the names of the functions are in italian)

Code

public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
BFS.DisplayFusion.RunFunction("Previeni Disattivazione Finestra (mantiene le finestre dei giochi attive)");
BFS.DisplayFusion.RunFunction("Blocca/Sblocca il Cursore del Mouse dal Monitor Corrente");
BFS.DisplayFusion.RunFunction("Muovi il Cursore del Mouse nel Precedente Monitor");
}
}


Anyway thanks for this amazing software :P
Jul 2, 2016 (modified Jul 2, 2016)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Interesting! We'll test this out here and see what we can find.

Thanks!
Jul 4, 2016  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Quick test: If you change the Prevent Window Deactivation line to the following, does it work?

Code

BFS.DisplayFusion.RunFunctionWithWindowHandle("Previeni Disattivazione Finestra (mantiene le finestre dei giochi attive)", windowHandle);
Jul 5, 2016  • #3
User Image
Klomar
7 discussion posts
Hey, I just tried that and it works perfectly :D.
Thanks!
Jul 5, 2016  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Excellent, glad to hear it!
Jul 5, 2016  • #5
User Image
Klomar
7 discussion posts
Hey!
I just saw this into the changelog for DisplayFusion v8.0 beta 10:
"Fix: BFS.DisplayFusion.RunFunction() now passes in the function's window handle by default"

That means that if I update in my function now I can simply use the runfunction command and it will work just fine also with the prevent window deactivation function?
Jul 24, 2016  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yep! It will use the window handle of whichever window has focus when the function is run :)
Jul 25, 2016  • #7
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)