SendKeys on a locked workstation

  • Thread starter Thread starter Jonathan
  • Start date Start date
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
 
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?
 
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
 
Back
Top