Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Michael Margraf
9 discussion posts
Hi

I would like to string 2 scripts together. I would like to move a game window to Monitor 2 and then to run a borderless windowed mode on it. The game in question is Blade and Soul. I have tried just using the internal "move to monitor 2" But it doesnt work. Borderless Window script does work with a key but I cant seem to automate the 2 processes. I have no clue about scripting But with a bit of advice I could edit some found on this site.

Any help appreciated
Jan 25, 2016  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Is the game initially full screen when you're trying to move it? If so, you'll need to reverse the order, and make it borderless first, then move it. Full screen games can't be moved to other monitors :)
Jan 26, 2016  • #2
User Image
Michael Margraf
9 discussion posts
No Its in windowed mode. But it has some kind of hacker prevention. Im guessing this is stopping running any commands on that window at least as an automated thing. Ive tried numerous combinations and nothing is working to move the window to the other monitor.
Jan 26, 2016  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ah, that could be. If you just try the Ctrl + Win + X hotkey on the game window, does it move to the next monitor?
Jan 27, 2016  • #4
User Image
Michael Margraf
9 discussion posts
Hmm no strangely Key combo works.

Although if the window is maximised it just minimizes it. But If the game window is minimized then it moves it as it should.
Jan 27, 2016  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, interesting! In your script, if you restore the window first, then move it, does that work?

Here's an example of code that would do that:

Code

BFS.Window.Restore(windowHandle);
BFS.General.ThreadWait(1000);
BFS.Window.MoveToNextMonitor(windowHandle);
Jan 28, 2016  • #6
User Image
Michael Margraf
9 discussion posts
Your example script worked perfectly to move the window to monitor 2.

Edit: Actually I spoke too soon. The script doesnt work. I dont know why I thought it did.
Jan 28, 2016 (modified Jan 29, 2016)  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ah, too bad. Does it run at all? (i.e. do you get a notification in the tray after pressing the hotkey?)
Jan 29, 2016  • #8
User Image
Michael Margraf
9 discussion posts
I do get a notification and the script does work with a hotkey.
Jan 29, 2016  • #9
User Image
Michael Margraf
9 discussion posts
This may help. The script does work with a hotkey but only when running it twice. The first time the window just remain on the original monitor. 2nd time it moves.

Im happy to have the script running from a hotkey but it would be cool if it Moved the window, Then maximized it, then made it borderless window.

Not sure how that would work with having to run the move to next monitor twice.
Feb 1, 2016  • #10
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Interesting. Couple of questions:
  • To make it borderless, are you using the DF script from the online repository?
  • Are you always moving it to a specific monitor with the script? If so, what's the monitor ID?
Feb 2, 2016  • #11
User Image
Michael Margraf
9 discussion posts
Im using this script https://www.displayfusion.com/ScriptedFunctions/View/?ID=ab674b2f-b76a-4276-b2ad-e1d3651a2c04

Im always moving to Monitor 2. Is that the ID you need?
Feb 3, 2016  • #12
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yep! You can try something like this:

Code

// Restore the window
BFS.Window.Restore(windowHandle);
BFS.General.ThreadWait(1000);

// Move it to Monitor 2 (duplicate this section if you need to do it twice to make it work)
BFS.Window.MoveToMonitor(2, windowHandle);
BFS.General.ThreadWait(1000);

// Maximize the window
BFS.Window.Maximize(windowHandle);
BFS.General.ThreadWait(1000);

// Run the borderless script
BFS.DisplayFusion.RunFunction("Remove Borders and Size to Full Screen (Make Borderless-Windowed)");
Feb 3, 2016  • #13
User Image
Michael Margraf
9 discussion posts
Everything works but the borderless bit.
Feb 4, 2016  • #14
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Is the name of your borderless function exactly as below?

"Remove Borders and Size to Full Screen (Make Borderless-Windowed)"
Feb 4, 2016  • #15
User Image
Michael Margraf
9 discussion posts
Ah I think Ive renamed it to "Borderless Window"

But I have made it all work. I copied and pasted the entire Borderless window script and replaced the last part in your script and I had to add a little delay.

Its worked. Im gonna try to see if it will work automated. But If not at least it works from a hotkey.

Thank you very much for your help.
Feb 4, 2016  • #16
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Excellent, glad to hear it!
Feb 4, 2016  • #17
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)