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
Risdon Appraisal & Realty
1 discussion post
When I start my day I have 3 monitors that I have set up. I have 2 chrome browsers that have about 4 to 8 tabs open in each. Can I set it up so that when I open chrome all my tabs open to the correct websites? Thank you for your time.
Aug 12, 2017  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I've written up a Scripted Function that can do this for you, here are the steps to set it up:
  • On the Settings > Functions tab, click "Add Scripted"
  • Give it a name and a hotkey
  • Delete the default code and paste in the code from the attached screenshot
  • Edit the "browser1URLs" and "browser2URLs" variables with your website URLs
  • Click OK, then OK again
  • Try the hotkey

Hope that helps!
• Attachment: Launch2BrowsersWithWebsites.txt [1,002 bytes]
Aug 14, 2017  • #2
User Image
Paulie Fahy
5 discussion posts
Hi Keith,

This is almost exactly what I'm trying to achieve also. You script is very helpful in showing that this is possible for me but I was hoping you could help me further?
I have 3 monitors setup.

See the attached screen grab of my monitor setup......

My right monitor has 3 windows open (2 split on top and 1 across the width at the bottom)
Top right window has 5 tabs, Top left has 2 tabs and the bottom window has 2 tabs.
My middle and left monitor only have 1 window, each maximised.

Would it be possible for you to type a dummy script for me where I could just replace all the 'fake' urls in the script you type with my own?

I would love it if I could just switch on my computer and have these windows/tabs position themselves to where I put them each morning. I'm currently trying to use the 'window position profiles' but I'm not having much luck setting it up correctly.
Thanks in advance :) I hope you can help.
• Attachment [protected]: Window Setup.png [578,730 bytes]
Sep 9, 2018  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sure thing, what's the screen resolution of that monitor? Is it 1920x1080?
Sep 10, 2018  • #4
User Image
Alexander Granberg
4 discussion posts
Great script. How do I add to the script that browser window 1 should move to monitor 1 and browser window 2 to monitor 2? For some reason whenever I have Chrome open on any of my 4 monitors it always opens on same monitor.
Sep 13, 2018  • #5
User Image
Alexander Granberg
4 discussion posts
Also is it possible to create like a windows shortcut on the desktop that executes an scriptfunction like this one so ?
Sep 13, 2018  • #6
User Image
Paulie Fahy
5 discussion posts
Quote:
Sure thing, what's the screen resolution of that monitor? Is it 1920x1080?


Hi Keith,

Thank you for your response. Sorry about the late reply. I was away on holidays. Yes, you are right. The resolution is actually the same for all monitors and it is set to 1920x1080. The refresh rate is set at 60Hz on all of them also.

From Right to Left....
Monitor 1 = 1920x1080 @ 60Hz
Monitor 2 = 1920x1080 @ 60Hz
Monitor 3 = 1920x1080 @ 60Hz

I look forward to hearing from you again :)
Sep 13, 2018  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@Paulie: Try out the attached "Launch3BrowsersonMonitor3.txt"

@Alexander: Try out the attached "Launch2BrowsersWithWebsites-2018-09-14.txt". To run it from a desktop icon, create a desktop shortcut that runs C:\Program Files (x86)\DisplayFusion\DisplayFusionCommand.exe -functionrun "scripted function name"
• Attachment: Launch2BrowsersWithWebsites-2018-09-14.txt [1,194 bytes]
• Attachment: Launch3BrowsersonMonitor3.txt [2,449 bytes]
Sep 14, 2018  • #8
User Image
Paulie Fahy
5 discussion posts
Hi Keith,

This is now so much better than Ive ever had it set before. The browsers and tabs are all opening great now. Is there a way to switch the 2 top browsers (Monitor 1 on the Right) so that the smaller of the 2 browsers is on the left? I couldnt see in the script where the sizes were set for each window :(

Windows were initially opening on monitor 3 (left) but this was easily fixed within your script by changing the monitor ID from 3 to 1.
The only thing missing now is the full screen browers on monitors 2 and 3. Are these easily added?

Please leave me an email with a bitcoin wallet address if you have one. Id be glad to pay you something for doing this :)

Regards, Paulie
Sep 15, 2018  • #9
User Image
Alexander Granberg
4 discussion posts
Quote:
@Paulie: Try out the attached "Launch3BrowsersonMonitor3.txt"

@Alexander: Try out the attached "Launch2BrowsersWithWebsites-2018-09-14.txt". To run it from a desktop icon, create a desktop shortcut that runs C:\Program Files (x86)\DisplayFusion\DisplayFusionCommand.exe -functionrun "scripted function name"


This worked even better than I could think of ;) Really fast and snappy! Thanks a bunch. Will definitely come back with more questions. /Alex
Sep 17, 2018  • #10
User Image
Alexander Granberg
4 discussion posts
Quote:
@Paulie: Try out the attached "Launch3BrowsersonMonitor3.txt"

@Alexander: Try out the attached "Launch2BrowsersWithWebsites-2018-09-14.txt". To run it from a desktop icon, create a desktop shortcut that runs C:\Program Files (x86)\DisplayFusion\DisplayFusionCommand.exe -functionrun "scripted function name"


How do I also add the function that I would love the browser window to be like 100% maximized or a certain X,Y height and width?

/Alex
Sep 17, 2018  • #11
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@Paulie: The two windows on the top should both be the same size (half the height and half the width of the screen). Is that not the case on your system? Thanks for the kind words as well! Though definitely not necessary, if you'd like to donate Bitcoin, you can do that here: https://www.binaryfortress.com/Donate/

@Alexander: On line 20 and 30, change BFS.Window.MoveToMonitor to BFS.Window.MoveToMonitorMaximized. If you want to set a specific size, you'd have to do something like this on lines 20 and 30:

Code

BFS.Window.SetSizeAndLocation(BFS.Window.GetFocusedWindow(), 0, 0, 800, 600);
Sep 17, 2018  • #12
User Image
Paulie Fahy
5 discussion posts
Hi Keith,

Yes, I can see now that they are indeed set how you have mentioned. Im not fussy at all. Im more than happy with it in comparison to the way I had it before, lol :)
You will see from the screengrab (red line) how I was trying to setup the window originally. Could you please add another string to the script that would open up a maximised browser on the other 2 monitors also. Unless it is already in there and I cant see it :( Something similar to the previous script would be great, so that I may edit it with further URL/Tabs in future when necessary :)

Thaks again :)
• Attachment [protected]: MonSet2.png [585,137 bytes]
Sep 20, 2018  • #13
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Try this one, Paulie. The script is getting kind of messy, but it works. I can probably optimize it quite a bit but that's for a rainy day :laugh:
• Attachment: LaunchLotsOfBrowsers_20180921.txt [3,739 bytes]
Sep 21, 2018  • #14
User Image
Paulie Fahy
5 discussion posts
Well done my friend :-) This works great now! You've even managed to resize the window I mentioned perfectly. For anybody else that may take this script also. The only change I made was to the monitor ID number in the script as initially 2 of the monitors were swapped from where I wanted them (it may work perfectly for others).
Now I have one hotkey to launch all of my browers for work and one key to close them all (the script for which Ive just realised was written by Keith also, lol :)

You're a king among men my man! Thank you for your time and effort :)
Sep 21, 2018  • #15
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad I could help!
Sep 24, 2018  • #16
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)