5 Respostas
+ 6
To help people answer, what operating system?
Also include version because startup methods can vary even in a single OS line.
+ 1
you can create a batch file that launches your python script and use task scheduler to run the a.m. batch file at start up or login.
the first thing i found about getting to task scheduler
https://www.isunshare.com/windows-8/open-windows-8-8.1-task-scheduler.html
+ 1
more details as it is actually very simple:
following content (adapted to your needs) should go in the batch file (f.e. myPyScript.bat)
c:\thePathToYour\python.exe c:\yourScript.py %*
you can schedule myPyScript.bat to be executed according to your needs with task scheduler.
see the link for more details:
http://www.thewindowsclub.com/how-to-schedule-batch-file-run-automatically-windows-7
in that way you can select to run it with the highest priviledges avoiding that the script asks for administrator rights every time if that is thr case.
0
Windows 8.1
0
@Jan Markus. They is. I tried to found a way to put the python script in it with some code. The only way I may have found is with a batch.
@seamiki. I'm not sure that could help me. I also didn't understand all of it so I'm maybe wrong. The batch file is a good idea.
It's for a keylog.