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

Bob Klahn bobstones at comcast.net
Thu Nov 1 18:36:57 PDT 2007


Thanks, Robin.  It's working now.  I have to run it under each user account:

SCHTASKS  /Create  /RU username  /RP user-password  /SC ONLOGON  /TN 
task-name  /TR task-path

Why it produces audio but no video when run under the system account 
remains a mystery:

SCHTASKS  /Create  /RU SYSTEM  /SC ONSTART  /TN task-name  /TR task-path


Bob

At 08:23 PM 11/1/2007, Robin Dunn wrote:
>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






More information about the wxpython-users mailing list