Derek Fernandez
18 discussion posts
Hi!
I have a scripted function that calls two Custom Functions to 'Move window to specified location' with the following settings:
Position X: 0
Position Y: 0
Width Value: 2491
Height Value: 1374
But for some reason when I call the function through a script with: BFS.DisplayFusion.RunFunction() it incorrectly places the window at:
Position X: 0
Position Y: 0
Width Value: 1851
Height Value: 1014
The function used to work fine in a previous version of Display Fusion (possibly prior to Windows 10) so there must be some change I'm missing.
Thanks so much for your help with this! I'm stumped!
Derek.
Derek Fernandez
18 discussion posts
Thanks for your help Keith!
I'm attaching the code as a text file as the forums were returning an error with what it thought were italics tags in the code. Apologies for the rough code, it's not the best but it did work =)
There are two more attachments, I think I have to make a new reply for that.
Thanks again!
Derek.
Chrome Resize.png
Derek Fernandez
18 discussion posts
Here are the other custom functions, thanks again!
Directory Opus Resize.png
Refresh Rainmeter.png
May 16, 2016 (modified May 16, 2016)
•
#4
Derek Fernandez
18 discussion posts
Thanks Keith! Here is the troubleshooting file! Derek.
• Attachment [protected]: DerekTroubleshooting.txt [95,654 bytes]
Derek Fernandez
18 discussion posts
Hi Keith! I just tried this but get the compile error:
Compile Failed.
Line 44: No overload for method 'RunFunction' takes 2 arguments
Thanks again for your help with this! Derek.
Derek Fernandez
18 discussion posts
Thanks so much Keith! This fixed the problem for me! I've updated all instances where I called custom window resize functions to use RunFunctionWithWindowHandle and it all works as intended now! Thanks again! =) Derek.
No problem, glad to hear it!