SendKeys on a locked workstation

J

Jonathan

Hello all,

I developed a short VB6 program meant to run unattended. It has no forms.
The program calls the Shell function to launch MS-Access and does a series
of SendKeys to perform various functions. The program works as expected when
I run it from the IDE or invoke it from the command prompt.



What I want is to run at as a scheduled job when the workstation is locked.
That doesn't work. It brings up the Access database (I see the open DB there
when I unlock the workstation sometime later) but it appears that the
SendKeys didn't function.



Is there a way around this problem? I'm running on WinXP Pro.



Any help appreciated.



Jonathan
 
P

Pegasus \(MVP\)

Jonathan said:
Hello all,

I developed a short VB6 program meant to run unattended. It has no forms.
The program calls the Shell function to launch MS-Access and does a series
of SendKeys to perform various functions. The program works as expected when
I run it from the IDE or invoke it from the command prompt.



What I want is to run at as a scheduled job when the workstation is locked.
That doesn't work. It brings up the Access database (I see the open DB there
when I unlock the workstation sometime later) but it appears that the
SendKeys didn't function.



Is there a way around this problem? I'm running on WinXP Pro.



Any help appreciated.



Jonathan

What is the exact command you're scheduling?
 
J

Jonathan

I want to run the finished program as a scheduled task. The program will
start, the Shell function will execute starting up Access but the SendKeys
functions don't work if the workstation is locked.

Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top