GetActiveWindow retrieves handle to ruby console window instead of main window in sketchup 2022. It was retrieving handle to the main window since Sketchup 2021. How can i get the main window handle in SU 2022, Any advice on that ?
If the Ruby Console window is the one that has focus when that API call is made then yes the Console window’s ID will be returned.
See @thomthom 's TTLib:
TT::Win32::get_sketchup_window
1 Like
Even if the Ruby Console doesn’t have focus?
Do you have code to reproduce?