{ "name": "Open Internet Explorer in Kiosk Mode on 2 Monitors", "language": 0, "code": "using System;\r\nusing System.Drawing;\r\n\r\npublic static class DisplayFusionFunction\r\n{\r\n\tpublic static void Run(IntPtr windowHandle)\r\n\t{\r\n\t\t//update these two strings with the desired websites (add websiteMonitor3, etc if you have more than 2 monitors, and copy/update the monitor 2 code block for each additional monitor)\r\n\t\tstring websiteMonitor1 = \"https://www.displayfusion.com\";\r\n\t\tstring websiteMonitor2 = \"https://www.checkcentral.cc\";\r\n\t\t\r\n\t\t//Open websiteMonitor1 on monitor 1 in kiosk mode (edit the monitor ID in the BFS.Window.MoveToMonitor function if needed)\r\n\t\tBFS.Application.Start(\"C:\\\\Program Files\\\\Internet Explorer\\\\iexplore.exe\", \"-k \" + websiteMonitor1);\r\n\t\tBFS.General.ThreadWait(2000);\r\n\t\twindowHandle = BFS.Window.GetFocusedWindow();\r\n\t\tBFS.Window.MoveToMonitor(1, windowHandle);\r\n\t\tBFS.General.ThreadWait(1000);\r\n\t\t\r\n\t\t//Open websiteMonitor2 on monitor 2 in kiosk mode (edit the monitor ID in the BFS.Window.MoveToMonitor function if needed)\r\n\t\tBFS.Application.Start(\"C:\\\\Program Files\\\\Internet Explorer\\\\iexplore.exe\", \"-k \" + websiteMonitor2);\r\n\t\tBFS.General.ThreadWait(2000);\r\n\t\twindowHandle = BFS.Window.GetFocusedWindow();\r\n\t\tBFS.Window.MoveToMonitor(2, windowHandle);\r\n\t}\r\n}", "description": "This script will open Chrome to the specified websites in kiosk mode on 2 monitors. You can change the websites in the \"websiteMonitor1\" and \"websiteMonitor2\" variables at the top. If you'd like to modify this function to work with more than 2 monitors, make sure to add \"websiteMonitor#\" variables at the top, copy/paste the second block of code (for monitor 2), and modify it for your monitor #.", "references": "System.Core.dll|System.Data.dll|System.dll|System.Drawing.dll|System.Management.dll|System.Web.dll|System.Windows.Forms.dll|System.Xml.dll" }