[wxPython-users] Running a wxPython app as a Windows XP scheduled task

Robin Dunn robin at alldunn.com
Thu Nov 1 17:23:40 PDT 2007


Robin Dunn wrote:
> Bob Klahn wrote:
>> I have a single-panel appointment app that I want to be able to run as 
>> a scheduled task (i.e., using SCHTASKS) under Windows XP.
>>
>> I can schedule it, and it does run, as it plays scheduled sounds at 
>> scheduled times, but it remains invisible.
>>
>> What do I have to do to get Windows to display my app when it's run as 
>> a Windows XP scheduled task?
> 
> Does nothing show up at all, even in the taskbar?  If so then I don't 
> know since I've never used this, but my guess is that it is not allowing 
> the task to display a UI.  (Even services need to be given special 
> permission to do that.)  Does a window display if you use schtasks to 
> run notepad.exe for example?
> 

Or you may need to find a way to have the task run as the same user that 
is logged in to Windows.  If that doesn't work, then I would divide the 
app in two.  Have the UI in one application and have it hide itself in 
the SysTray or something, and then when the scheduled tasks run then it 
can just send a message to the UI app where it can then show a frame or 
whatever you need.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list