By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

SendKeys automation

P: 25
Hi All....

I am using python 2.4. I have a python script on an xp machine. This machine is on a network, and is dedicated to running python scripts. I use remote desktop to access the machine thru the network.

I have a script on this machine which uses Cpamie and SendKeys to navigate a website. I use "from SendKeys import *"

Here is the problem. I have the script automated to run, using windows' "scheduled task". When I log into the machine thru "Remote Desktop" and watch the script run, it runs successfully. If I don't login to the machine, the sendkeys portions of the script do not get implemented. Usually someone would login to the machine and run the scripts. This is the first time I've tried to automate a script in the "Scheduled Task".

Does anyone know what could be causing this problem???

Any input would be greatly appreciated.

Thanks....

Silgd1
Feb 3 '09 #1
Share this Question
Share on Google+
4 Replies


micmast
100+
P: 144
I would think this is because the script is launched in the background or something, I know that at (sheduled tasks) allows the program to be launched interactively, it might help.
Feb 4 '09 #2

P: 25
Thanks Micmast......

I'm going to try to have "scheduled tasks" run the app in the foreground.....if that's possible.

Silgd1
Feb 4 '09 #3

P: 25
Hey all......

The problem was with the XP pro sp3 update. You can google a fix for this. It makes changes to the terminal service dll, and makes a few registry changes. Now we can have multiple users running concurrent sessions.
Feb 9 '09 #4

bvdet
Expert Mod 2.5K+
P: 2,851
@Silgd1
Thanks for the update, Silgd1. :)

-BV
Feb 9 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.