Losing focus on window
-
Hi All,
As some of you might know, I'm building an immersive version of Sketchup. Since the user would not have access to a real keyboard, I'm simulating keyboard events via 3D menus and using AutoIt to mimic the selection as a keyboard press.
This is particularly needed for things like setting the number of sides of a polygon or in making n number of copies etc.Where I'm facing difficulty is that sometimes SU seems to lose focus on the current window. This happens on the most unexpected SU operations (setting timers or undo or commit operations), after which none of my AutoIt inputs get conveyed as keypresses. Has anyone faced a similar issue of losing focus on current window with SU calls? Also, is there a solution to the same (like directly talking to the status bar without having to mimic a keyboard press)?
Any help would be very much appreciated.
Thanks,
Arun -
Some times the toolwindows get the focus. Say if you undo a change where you edited a material in the Material Editor - SU will send the focus back to that window. Annoying.
Advertisement