xshinmi
March 31st, 2008, 02:25 PM
Hi all,
I have a script (wrote in vbs) that interact with one application. Basically the script run the Application and then check when the Window of the app is active, and then sending keys.
This works fine if iīm logged and then call the script.
My problem is:
The script is called from other program that listen to a network port.
When other computer conect to this port and send a determined command - this script is called.
If iīm logged and the windows isnīt locked the script runs fine.
If iīm logged and the windows IS locked the script runs, but he canīt know
if the window of the app is active. Even the sendkeys doesnīt work like i expect.
How can i solve this problem ?
I ready in the msdn about:
CreateWindowStation.
CreateDesktop.
but i cannot understand what this really does; and if this can solve my problem.
any suggestions?
I have a script (wrote in vbs) that interact with one application. Basically the script run the Application and then check when the Window of the app is active, and then sending keys.
This works fine if iīm logged and then call the script.
My problem is:
The script is called from other program that listen to a network port.
When other computer conect to this port and send a determined command - this script is called.
If iīm logged and the windows isnīt locked the script runs fine.
If iīm logged and the windows IS locked the script runs, but he canīt know
if the window of the app is active. Even the sendkeys doesnīt work like i expect.
How can i solve this problem ?
I ready in the msdn about:
CreateWindowStation.
CreateDesktop.
but i cannot understand what this really does; and if this can solve my problem.
any suggestions?