B
Billy
My computer is on 24x7, has no screensaver nor does it use
power management. However, I do need to keep it locked
(Ctrl-Alt-Del, Lock Computer) when I am absent.
I have a WSH script that uses Notepad to open an ASCII
file, activate Notepad, and then issue a bunch of Sendkey
statements to manipulate the contents of the file before
saving and exiting.
The script works flawlessly when the computer is not
locked but never when it is locked - it starts Notepad,
opens the file but appears to fail to activate Notepad.
Am I correct in assuming that "objShell.AppActivate
("Notepad")" statement can not make a window active when
the computer is locked? If so, is there a workaround?
power management. However, I do need to keep it locked
(Ctrl-Alt-Del, Lock Computer) when I am absent.
I have a WSH script that uses Notepad to open an ASCII
file, activate Notepad, and then issue a bunch of Sendkey
statements to manipulate the contents of the file before
saving and exiting.
The script works flawlessly when the computer is not
locked but never when it is locked - it starts Notepad,
opens the file but appears to fail to activate Notepad.
Am I correct in assuming that "objShell.AppActivate
("Notepad")" statement can not make a window active when
the computer is locked? If so, is there a workaround?