Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys in batch file not working when logged out or screen locked 1

Status
Not open for further replies.

dnstapes

Programmer
Jul 17, 2001
38
US
I have a batch file that I need to run at night when I'm not using my
PC. At night, I always either log out of my Windows NT machine or lock
the screen so no one can get into my files. Unfortunately, my batch
file calls a VB script that interacts with Microsoft Project, and the
script uses several sendkey commands.

What's happenning is the batch script seems to start up, but as soon as
it gets to the first SendKeys, it halts. When I log in, if I enter the
key where the program halts. The rest of the script, including the
SendKeys, will execute without any problems.

Does anyone know how to fix this problem? I've tried rewriting the
script to not use any SendKeys, and I can't get it to work.

Thanks,
Dana
 
Hi, I don't have a fix, but am experiencing the same problem and would appreciate any advice.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top