Posts: 30
Threads: 12
Joined: Dec 2020
Can someone please help me.
im using python 3.6 and windows 10 64bit.
I am trying to create a task in task scheduler that runs at log on using python or a way to import a task to task scheduler using python as you can export tasks. Thank you
Posts: 419
Threads: 34
Joined: May 2019
If you ask a specific question, or any question for that matter, I might be able to point you in the right direction.
Have you coded before?
You will need the Time module, that's for sure. What kind of task are you scheduling? What input and output do you need?
Posts: 3,458
Threads: 101
Joined: Sep 2016
Posts: 30
Threads: 12
Joined: Dec 2020
(Feb-09-2021, 05:46 PM)michael1789 Wrote: If you ask a specific question, or any question for that matter, I might be able to point you in the right direction.
Have you coded before?
You will need the Time module, that's for sure. What kind of task are you scheduling? What input and output do you need?
trying to create a task for task scheduler that runs a program at log on by using python, I know about the schedule module and wincom32 but all the examples dont show how to create a task to be run at log on only at a certain time.
Yes I have coded before
Posts: 419
Threads: 34
Joined: May 2019
(Feb-10-2021, 05:18 AM)Tyrel Wrote: (Feb-09-2021, 05:46 PM)michael1789 Wrote: If you ask a specific question, or any question for that matter, I might be able to point you in the right direction.
Have you coded before?
You will need the Time module, that's for sure. What kind of task are you scheduling? What input and output do you need?
trying to create a task for task scheduler that runs a program at log on by using python, I know about the schedule module and wincom32 but all the examples dont show how to create a task to be run at log on only at a certain time.
Yes I have coded before
So "task" can just be a function that you run? Forgive me, I only write games, but that touches on most things.
Posts: 30
Threads: 12
Joined: Dec 2020
(Feb-10-2021, 03:25 PM)michael1789 Wrote: (Feb-10-2021, 05:18 AM)Tyrel Wrote: trying to create a task for task scheduler that runs a program at log on by using python, I know about the schedule module and wincom32 but all the examples dont show how to create a task to be run at log on only at a certain time.
Yes I have coded before
So "task" can just be a function that you run? Forgive me, I only write games, but that touches on most things.
No, task scheduler is a default app on your pc and you can create task in it but I want to do it through python
Posts: 1,838
Threads: 2
Joined: Apr 2017
I believe Windows exposes an API to user programs, so you should see if it allows you to schedule tasks that way. Perhaps there are also Python bindings for it. I found this, which details the C/C++ API, but again, there are likely Python wrappers.
Posts: 30
Threads: 12
Joined: Dec 2020
(Feb-11-2021, 07:27 AM)ndc85430 Wrote: I believe Windows exposes an API to user programs, so you should see if it allows you to schedule tasks that way. Perhaps there are also Python bindings for it. I found this, which details the C/C++ API, but again, there are likely Python wrappers.
yes there is, its called schedule but there isnt any examples online of how to create a task the runs at logon. There is only for a certain time.
|