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
Jeffen Nilsson
118 discussion posts
So i feel like the transition between my profiles is a bit slow and i think my setup is a bit atypical in comparison to what other people are using.
I took a video so it's easier to follow along what im talking about
https://www.youtube.com/watch?v=wfa7slbYI3U

0:05 the TV gets disconnected so the other displays will now activate. (TV takes a couple of seconds to actually turn off even after going dark)
0:09 all the monitors activate
0:13 displayfusion seems to activate (spanning the background from my 'TV' profile)
0:29 displayfusion detects the new monitor layout and switches to profile 'Main-Nosplit'
0:33 displayfusion switches to the 'Main' profile and my custom script 'main profile switch application restore' executes (attached)
0:47 the script completes its execution.

----

As you can see it first takes about 5 seconds for displayfusion to notice that the monitor layout has changed (0:09-0:13).
Then it takes 15 seconds for displayfusion to switch the background to the profile of the current monitor setup 'Main-NoSplit' (0:13-0:29).
Then about 5 seconds later - even though i have a trigger set to switch to the 'Main' profile after 1 second - the 'Main' profile is activated (0:29-0:33).
and finally the script runs and it takes 15 seconds for the script to complete (0:33-0:47).

I've used this setup for quite a while and i really love the functionality of it although the speed is what makes me unsatisfied.

So on to my questions
1. Is it possible to make the waiting time here any shorter? it feels ridiculously long having to wait 15 seconds for displayfusion to recognize the monitor setup changing and activating the profile. and then even the shorter waiting times that feels longer then they should have to be.

2. Any idea why it takes so long for my script to run? the first part for the chrome and waterfox windows activate in just a couple seconds but for the latter part it take 15 seconds in total.
3. There is a rule for my TeamSpeak 3 window in the script but it doesnt seem to work.
4. Is it possible to compress the 'if' statements any further? like instead of having to use

Code

if ((windowTitle.Contains("xxxxxxx")) || (windowTitle.Contains("yyyyy")) && windowTitle.Contains("Waterfox"))
could i somehow combine the two to something like this?

Code

if (windowTitle.Contains("xxxxxxx"||"yyyyy")) && windowTitle.Contains("Waterfox"))
i've been trying several combinations but im not a c# coder so i am a bit lost.

5. You can see how my taskbar moves from the LEFT side of the TV to the LEFT side of my MIDDLE monitor whereas i want it to move to the RIGHT side of my LEFT monitor, i had this topic made just about a year ago and i was wondering if there was any progress on that front.

6. I'm also STILL having problems with waterfox windows resizing to these unmanageable sizes. made a topic about that aswell a while back. I think i can reproduce it pretty effectively now
  • Maximize the waterfox window the TV profile and then minimize it.
  • Disconnect the TV and then activate the Main profile
  • run the BFS.Window.MoveToMonitorMaximized on the waterfox window.
  • click the restore button in the top right
  • the waterfox window should now be squished in width (not always 1px but always smaller than what it can actually be resized to manually) while still being big in height, in my scenario it is 1279 px in height which is HALF of the 2560 the monitor it was maximized on is.
https://i.imgur.com/32gjd2J.png


Thanks
• Attachment [protected]: Main profile switch application Restore.txt [2,618 bytes]
Apr 29, 2018 (modified Apr 29, 2018)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
1. There isn't really a way to speed this up, no. There's a couple seconds delay just to make sure that the monitor config is done changing before setting the wallpaper, but the rest of the time is just loading and generating the new image.

2. The slowness is likely in the BFS.Window.GetWindowByText functions. That function loops through all open windows looking for the specific title, so calling that many times in the script will definitely take some time.

3. Have you tried adding asterisks before and after the text in the Teamspeak line?

4. There isn't really a way to compress those if statements further, no.

5. We haven't had a chance to add that scripting function yet, sorry.

6. This appears to be a bug with Waterfox not remembering its size properly. You might be able to work around it by first setting its size using BFS.Window.SetSize on it, before using BFS.Window.MoveToMonitorMaximized.

All the above being said, we're also adding a "Window Position Profiles" feature soon that should automate a lot of this, so look for that in 9.2 Beta 3 or 4 :)
May 4, 2018  • #2
User Image
Jeffen Nilsson
118 discussion posts
Quote:
1. There isn't really a way to speed this up, no. There's a couple seconds delay just to make sure that the monitor config is done changing before setting the wallpaper, but the rest of the time is just loading and generating the new image.

2. The slowness is likely in the BFS.Window.GetWindowByText functions. That function loops through all open windows looking for the specific title, so calling that many times in the script will definitely take some time.

3. Have you tried adding asterisks before and after the text in the Teamspeak line?

4. There isn't really a way to compress those if statements further, no.

5. We haven't had a chance to add that scripting function yet, sorry.

6. This appears to be a bug with Waterfox not remembering its size properly. You might be able to work around it by first setting its size using BFS.Window.SetSize on it, before using BFS.Window.MoveToMonitorMaximized.

All the above being said, we're also adding a "Window Position Profiles" feature soon that should automate a lot of this, so look for that in 9.2 Beta 3 or 4 :)


1. ah i see, that is unfortunate

2. any way i could speed it up with a different command?

3. yes even "*Teamspeak*" doesnt work Actually it seems that the latest DP update fixed this, ill keep testing. It seems like its a "sometimes it works sometimes it doesn't" thing, ill see if i can get some set steps down.

4. ok just wanted to know if i could make the script a bit more compact.

5. i'm hopeful :)

6. i could make alex aware of the problem so he could take a look into it.

the window position profiles sounds like a great addition, im excited :laugh:
May 5, 2018 (modified May 9, 2018)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
For #2, unfortunately there isn't a different way to do it that would speed it up, no. The only way to find a window by its title is to loop through all open windows looking for it.

Sorry!
May 10, 2018  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)