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
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.
May 13, 2016  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you attach a copy of your Scripted Function code, as well as screenshots of the Custom Functions? I'll test them out here to see what I can find out :)

Thanks!
May 16, 2016  • #2
User Image
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.
• Attachment: Chrome Resize.png [27,058 bytes]
Chrome Resize.png
Chrome Resize.png
• Attachment: DerekScriptedFunctions.txt [5,891 bytes]
May 16, 2016  • #3
User Image
Derek Fernandez
18 discussion posts
Here are the other custom functions, thanks again!
• Attachment: Directory Opus Resize.png [25,558 bytes]
Directory Opus Resize.png
Directory Opus Resize.png
• Attachment: Refresh Rainmeter.png [17,740 bytes]
Refresh Rainmeter.png
Refresh Rainmeter.png
May 16, 2016 (modified May 16, 2016)  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! Could you attach a copy of your troubleshooting info as well? Here are the steps:
  • Open the Settings > Troubleshooting tab
  • Click the "Copy to Clipboard" button
  • Paste the text into a text file (please don't paste the text directly into your reply, the formatting gets garbled and makes it difficult to parse)
  • Reply with the file attached
May 19, 2016  • #5
User Image
Derek Fernandez
18 discussion posts
Thanks Keith! Here is the troubleshooting file! Derek.
• Attachment [protected]: DerekTroubleshooting.txt [95,654 bytes]
May 19, 2016  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! Can you try changing the last line of the Chrome script to the following?

Code

BFS.DisplayFusion.RunFunctionWithWindowHandle("Chrome Resize", mainWindow);
May 20, 2016 (modified May 24, 2016)  • #7
User Image
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.
May 21, 2016  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ah sorry, it should have been RunFunctionWithWindowHandle. I've updated the previous post with the correct code :)
May 24, 2016  • #9
User Image
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.
May 24, 2016  • #10
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No problem, glad to hear it!
May 24, 2016  • #11
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)