Use the below code to rectify your issue

Set WSHShell = WScript.CreateObject("WScript.Shell")
For i = 1 to 2
WSHShell.SendKeys "{Numlock}"
WSHShell.SendKeys "{Numlock}"
WScript.Sleep(119000)
i=1
next

prepare a vb file with the above script and double click on that file. Your
system will not get locked.

Regards
Uma Mahesh


On Tue, Aug 20, 2013 at 12:49 AM, Anish Pillai
<[email protected]>wrote:

> Hi,
>
> No need to install fancy tools to do this when you can do it very easily
> with something like windows media player..
>
> Check the below link and try it out to see if it works for you..
>
>
> http://www.automationrepository.com/2013/07/prevent-windows-lock-during-qtp-batch-run/
>
>
> *
> cheers,
>  a n i s h
>
> [QTP Framework 
> Tutorials]<http://www.automationrepository.com/2012/03/qtp-framework-types-an-introduction/>|
>  [QTP
> Blogs] <http://www.automationrepository.com/qtp-blogs/>
>
> **
> [Subscribe to get new posts in your 
> Inbox]<http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds>
> *
>
>
>
> On Mon, Aug 19, 2013 at 12:25 PM, nikhil gangwar <[email protected]
> > wrote:
>
>> Hi,
>>
>> You can create a function that keep unlock your system and you can call
>> this function anywhere in framework or in your script . Main aim is to
>> execute this function after a regular interval. So that your running
>> scripts will keep you system unlocked. Once your execution is completed
>> then your system will be automatically locked your machine. (I believe, it
>> is also required)
>>
>> There are other ways also like change setting from registry but for
>> organization security policy in most of the organization it is not allowed.
>>
>> Please let me know if you have any query for the same.
>>
>>
>>
>>  Thanks
>>
>> Nikhil Gangwar
>>
>>
>> On Mon, Aug 19, 2013 at 1:12 AM, <[email protected]> wrote:
>>
>>> I did create the Vbs script. it runs fine when i put it on windows
>>> scheduler and system is not locked. But if the system is locked then it
>>> doesn't trigger.
>>> any idea?
>>>
>>> --
>>> --
>>> 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.
>>>
>>
>>  --
>> --
>> 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,
> Anish Pillai
> My QTP Blog <http://automationrepository.blogspot.com>
>
> --
> --
> 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.
>

-- 
-- 
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