Utiity which will keep the system unlocked based on QTP launced status - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Utiity which will keep the system unlocked based on QTP launced status (/Thread-Utiity-which-will-keep-the-system-unlocked-based-on-QTP-launced-status) |
Utiity which will keep the system unlocked based on QTP launced status - supputuri - 06-03-2012 Hi Friends, I have developed an utility which will keep the system unlocked until the QTP is launched (opened). This utility will also provide the ability for user to stop utility at any time, by default you can see the dialog with this option for every 2 minutes. You can configure this based on your needs. When ever user clicks on "yes" button then the utility will stop it's execution. Save the below code as "SystemUnlockBasedOnQTP.vbs" in the system where the scripts will be executed, and run the utility before start executing the script. Once you are done with script execution you can click on the "Yes" button on the popup window thrown by utility to stop the utility execution. Note: Execute this utility on the machine where QTP is executing. Code Snippet: Code: Dim objWSH,objQTP Please let me know if you need any further informaiton/suggestions. RE: Utiity which will keep the system unlocked based on QTP launced status - supputuri - 11-07-2012 Hi Guys, Small update in the code. Replace this line objWSH.SendKeys "{CAPSLOCK}" 'Reset back the CAPSLock to click on printscrn so that it does not impact any input data of your test. |