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

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-06 Thread eryk sun
On Thu, Apr 6, 2017 at 7:38 PM, Kurt Eilander wrote: > Hey all, > > I'm trying to get system modal functionality like the UAC dialog. > > 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=win

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

2017-04-06 Thread k
Hey all, I'm trying to get system modal functionality like the UAC dialog. 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=win

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

2017-04-06 Thread Kurt Eilander
Hey all, I'm trying to get system modal functionality like the UAC dialog. 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=win