Fabietto
18 discussion posts
Hi,
my requirement is to open one specific web page , on a specific monitor.
I tried different settings but I failed in my attempt .
I also downloaded the beta version , but the result is equally failed .
Someone help me ?
Best regards,
Krandall
• Attachment [protected]: 00120.JPG [111,101 bytes]
• Attachment [protected]: 00121.JPG [106,637 bytes]
Fabietto
18 discussion posts
Thank yout for reply.
how to use and where to use this script ?
thx
Mar 15, 2015 (modified Mar 15, 2015)
•
#3
solaris765
40 discussion posts
You can go to Display Fusion settings. and Under the Function tab hit "Add Scripted" then just copy and paste it into the code body.
then Name it and assign a Key Combination as usual.
Fabietto
18 discussion posts
there is the possibility of applying this code when I click on a shortcut to a web page on the desktop ?
• Attachment [protected]: 001.JPG [32,506 bytes]
solaris765
40 discussion posts
No problem. I couldn't figure out the shortcut myself. So thanks for that as well!
Fabietto
18 discussion posts
Hi all,
I just updated the operating system ( W10 ) and the page opens but does not move the window to the other monitor.
It is necessary to adapt the script to the new S.O. ?
can someone help me ?
Best regards,
Fabio
May 3, 2016 (modified May 24, 2016)
•
#10
The script should still work fine in Windows 10. Which web browser is set as your default browser?
Fabietto
18 discussion posts
Hi,
Chrome is set to default.
Version 50.0.2661.102
Ok, could you attach a copy of the complete script code? I'll re-test it here.
Thanks!
Fabietto
18 discussion posts
Hi, thank you for help.
The script is:
using System;
using System.Drawing;
// The 'windowHandle' parameter will contain the window handle for the:
// - Active window when run by hotkey
// - Window Location target when run by a Window Location 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 Website you want opened.
string website ="http://www.dogs2015.com/Pages/LiveRacingDogs.aspx?sport_id=11";
//Monitor to be shown on.
uint monitor = 2;
/*
Standard selections would be : 1, 2, 3, etc.
If a monitor has sections i.e. 2.1, 2.2, 2.3
Your selections will include 201, 202, 203
*/
//open the website in a new window and caputre its handle
IntPtr window = BFS.Web.OpenUrlNewWindow(website);
while (true)
{
//if we failed to get the handle, continue to next loop iteration
if(window == IntPtr.Zero)
continue;
else break;
}
BFS.Input.SendKeys("{F11}");
//move the window to the specified monitor
BFS.Window.MoveToMonitor(monitor, window);
}
}
thank you,
Fabio