Found below 2 solutions in
http://www.sqaforums.com/showflat.php?Number=420045

a)
1. copy & Paste below code in notepad

Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "^%{F1}"

2. Save as keypress.vbs file
3. Schedule in microsoft scheduler (Start> Programs> Accessories> system
tools> Scheduled Tasks> Add Scheduled Task)map the .vbs file
4. Schedule for 'n' number of hours...

b)
If you want to ensure that the Desktop never locks or your Screen
saver/battery saver don't pop in between then you can use the following
freeware available on the net.

Caffeine.exe

http://blog.lib.umn.edu/rigd0003/uncertainty/caffeine_for_your_pc.html

After installation, when you launch Caffeine then it simulates a key press
every minute to keep the PC awake.
The icon on the taskbar allows you to toggle Caffeine ON/OFF. This way the
PC never sleeps and you can continue your QTP execution uninterrupted.


On Mon, Mar 3, 2014 at 11:11 PM, Prasad.L.V <[email protected]> wrote:

> Hi All,
>
> We execute scripts in a remote machine, while executing the remote machine
> goes ideal and gets locked.
>
> Is there a way to keep system active and unlock?
> could someone please guide me the steps if there is a solutions.
>
> Thank you,
> L V Prasad. K
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,


Ganesh Muralidharan
'God Never Forgets'

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to