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
Camryn Colebee35933
21 discussion posts
Is it possible to move a window off the screen a little? I don't want to see the top of it. I set Top position to -31 but it doesn't seem to do anything.

Thanks
Nov 30, 2018  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You can't with a Custom Function, but if you send me the X, Y, Width, Height values that you want to use, I can do up a Scripted Function that will do it :)
Nov 30, 2018  • #2
User Image
Camryn Colebee35933
21 discussion posts
Oooo :D

I want it to move up 31, as well as span the height of the screen @ 1920x1080, so I had input:

X = 1006
Y = -31
W = 433
H = 1111
Dec 4, 2018  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! Try adding a new Scripted Function using this code:

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)
    {
        // Set the X, Y, Width, Height here
        int destinationX = 1006;
        int destinationY = -31;
        int destinationW = 433;
        int destinationH = 1111;

        // Move the window
        BFS.Window.SetSizeAndLocation(windowHandle, destinationX, destinationY, destinationW, destinationH);
    }
}
Dec 4, 2018  • #4
User Image
Camryn Colebee35933
21 discussion posts
Awesome, that did it for the most part!

The only thing is it seems to be afraid to bump right up to my Discord window. I tried setting the script's X value further to the left, but it didn't want to take, as far as I could tell. Simply closing the Todoist window (the one with the script on it) and reopening to activate the script wasn't dependably reflecting the changes.

Attached a pic.
• Attachment [protected]: gap.jpg [48,472 bytes]
Dec 5, 2018  • #5
User Image
Camryn Colebee35933
21 discussion posts
Nvm I got it, had to completely quit the program to get it to update. :)
Dec 5, 2018  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad to hear you were able to get it working!
Dec 5, 2018  • #7
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)