Re: [python-win32] CreateDesktop() and displaying a window on it

2017-04-07 Thread Tim Roberts
Kurt Eilander wrote: > According to http://developex.com/blog/system-modal-back/ the thing to > do is to create and switch to a new desktop. > > Therefore, I'm doing: > > hDeskOld=win32service.GetThreadDesktop(win32api.GetCurrentThreadId()) > hDesk=win32service.CreateDesktop("SysModalDesktop",0,wi

Re: [python-win32] CreateDesktop() and displaying a window on it

2017-04-07 Thread eryk sun
On Fri, Apr 7, 2017 at 4:35 PM, Tim Roberts wrote: > I see Eryk provided the explanation, but all I had to do to make your > example work was add > hDesk.SetThreadDesktop() > just after your SwitchDesktop call. That didn't work for me before. It was causing my Windows 10 system to get stuck o