Python Forum
How to create a task/import a task(task scheduler) using python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create a task/import a task(task scheduler) using python
#1
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
Reply
#2
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?
Reply
#3
https://datatofish.com/python-script-windows-scheduler/
Reply
#4
(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
Reply
#5
(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.
Reply
#6
(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
Reply
#7
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.
Reply
#8
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Running Python script through Task Scheduler? Winfried 8 521 Mar-10-2024, 07:24 PM
Last Post: Winfried
  Background task Mctweed 4 452 Feb-13-2024, 11:50 PM
Last Post: Mctweed
  How can I multithread to optimize a groupby task: davisc4468 0 714 Jun-30-2023, 02:45 PM
Last Post: davisc4468
  [SOLVED] Why is this asyncio task blocking? SecureCoop 1 784 Jun-06-2023, 02:43 PM
Last Post: SecureCoop
  Start print a text after open an async task via button Nietzsche 0 715 May-15-2023, 06:52 AM
Last Post: Nietzsche
  How to timeout a task using the ThreadpoolExecutor? lowercase00 2 2,513 Feb-07-2023, 05:44 PM
Last Post: deanhystad
  add interrupt for next task kucingkembar 0 779 Oct-07-2022, 12:15 PM
Last Post: kucingkembar
  count certain task in task manager[solved] kucingkembar 2 1,130 Aug-29-2022, 05:57 PM
Last Post: kucingkembar
  How to add another task? Makada 2 1,501 Nov-03-2021, 05:38 PM
Last Post: Makada
  Need some coding guidance for a task peny 5 2,196 Sep-27-2021, 02:02 PM
Last Post: peny

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020