Sketchup Pro 2023 Custom Trays Have Portions Blacked Out

Recently I ran across the dysfunctional trays on the second display bug. The computer in question is a HP EliteDesk, Windows 10, integrated Intel video. After a couple of hours digging into possible fixes it seemed that the easiest approach was to use the Windows Script Host SendKeys method to send the appropriate keystrokes to Hide and re-Show the affected Trays. Many thanks to ThomThom, a good bit of the code is siphoned from TT_Lib2

If you would like to try this solution, drop this file into the Plugins folder. Each time Sketchup is started the code will execute and refresh the trays. The code contains a lot of fiddly bits so I’m just throwing this out there to see how well it works.

Outdated
SW_ResetTrays.rb (5.6 KB)

Version 2.
Updated to be language aware as provided by @DanRathbun.
Updated to only apply to Sketchup version 23.0.419 in accordance with the comments from @colin.
SW_ResetTrays V2.rb (7.0 KB)

2 Likes