-
are you using sendkey methods for the given scenario, because what I can think of script will fail only when you will use active desktop (keyboard or mouse movements). this is not really a great method to do.
Anyways, you can start VNC server on that machine which will not allow the machine to lock. Or ask your admins to change the group policy for your system.
Try going in power and change settings to not lock the system.
also, do let us know if any of this methods works fine with you.
-CrazyGirl.
Are you sure? This action cannot be undone.
-
i spoke regarding the setting they didnt accept.
So i am using send keys method in windows scheduler which is working fine.
My question is ,is there any setting in qtp such that we can find a work around for this ?
Are you sure? This action cannot be undone.
-
English-Scared
i spoke regarding the setting they didnt accept.
So i am using send keys method in windows scheduler which is working fine.
My question is ,is there any setting in qtp such that we can find a work around for this ?
No, I never found any settings in QTP which will stop system to lock.
Only alternative solution is to start something which will keep on talking to others (As suggested by CrazyGirl) and keep system alive and unlocked.
-CB
Are you sure? This action cannot be undone.
-
I even heard there is a freeware called Caffeine which keeps the system unlocked.
But as far as i know , the windows scheduler method is the work around ( if not allowed to change the power settings)
Thanks CG for the reply 😀
What exactly is VNC server? Can any one make it clear.
Are you sure? This action cannot be undone.
-
<a href="https://en.wikipedia.org/wiki/Virtual_Network_Computing" target="_blank" rel="nofollow noopener noreferrer">Virtual Network Computing</a>
Using VNC client you can connect to a system where VNC server is started. Actually VNC server keep on doing the broadcast its IP, If any VNC client ping that with authentication, server allows client to make an connection.
As you are talking about caffine, it will do the same. It will keep on doing the broadcasting (Not in negative sense and will deffinately not effect / jam your network) or keep doing some actions - similar to what you are doing using windows schedular.
Keep posting your doubts and solution if you get.
-CrazyBoy
Are you sure? This action cannot be undone.
-
Here is another question.
How to send Email From Outlook through QTP?
Iam able to send the Email using qtp 😀 , But before it is sending it is giving a pop up error message , a dialogue message .
So anyone came across this issue?
Are you sure? This action cannot be undone.
-
What is the error message???
There are two way of sending mails.
1. Using Outlook. For this outlook needs to be installed and configured, Also if needs authentication before sending a mail. Credentials should be passed in the send mail script.
2. Using SMTP server directly (Search CDO.mesage you will get a lots of material).
By the way which dialog message you are getting??
-CB
Are you sure? This action cannot be undone.
-
Please check the following link.
#-Link-Snipped-#
Here ,they explained the problem and procedure to avoid it..
Still it is not working.
Please let me know if you have any questions.
Moreover sending mail using CDO object doesnt have any problem.
But, when we try to read a mail using QTP , if we try to retrieve the body of the mail we get the same error pop - up.
I tried using Recovery Scenario and sendkeys still it didnt work.
Are you sure? This action cannot be undone.
-
Have you installed ClickYes utility... I am using ClickYes since long time, and facing no problem with it. Its working perfectly with me.
Explain your problem in detail...
-CB
Are you sure? This action cannot be undone.
-
By the way which Outlook version are you using??? Is it 2007 or 2003???
Actually check this:
Express ClickYes is a tiny program that runs in the system tray and automatically clicks the Yes button for the Outlook security prompt, that asks you to confirm mail sending from third party applications or access to Outlook's address book.
It is compatible with:
- Outlook 2003
- Outlook 2002 (SP1, SP2 and SP3)
- Outlook 2000 SP1+SR1
- Outlook 2000 SP2
ClickYes doesn't work with Outlook Express. There is an appropriate option in the Outlook's Express settings. To turn the prompts off, click 'Options' on the menu, switch to the 'Security' tab, and clear the 'Warn me when other applications try to send mail as me' checkbox.
-CB
Are you sure? This action cannot be undone.
-
I am using 2003 , I am not authorised to install the clickyes program 😔
Thats the reason I am trying to click yes using script.
Are you sure? This action cannot be undone.
-
English-Scared
I am using 2003 , I am not authorised to install the clickyes program 😔
Thats the reason I am trying to click yes using script.
Express ClickYes is the Freeware and you can easily get approval from your management team to get it installed by IT team.
I do not think that administrators will have objection on installation of this.
-CB
Are you sure? This action cannot be undone.
-
Yes CB, I have spoken to my Team management for the installation.
Are you sure? This action cannot be undone.
-
For the above problem if we place this vbs in our system and run through some external source not qtp it should work.
Still it is not working.
The code is
Set fso = CreateObject("WScript.Shell")
While fso.AppActivate("Microsoft Outlook") = FALSE
wscript.sleep 1000
Wend
fso.SendKeys "a",True
fso.SendKeys "y", True
wscript.sleep 7000
While fso.AppActivate ("Microsoft Outlook") = FALSE
wscript.sleep 1000
Wend
fso.SendKeys "y", True
Are you sure? This action cannot be undone.
-
Code looks fine to me, 😔
Have you tried installing ClickYes utility?? Any luck on that??
-CB
Are you sure? This action cannot be undone.
-
Not yet dude.
There is a big process here , I need to raise a request , need to get approval from manager etc etc...
So they said it takes some time.
So meanwhile trying for other methods of solving the issue.
Are you sure? This action cannot be undone.
-
You are using sendkey method in the above mentiod code. The best I can think is, this is issue of focus. In automation, whenever you use the sendkey method, focus should be on the application on which you want to perform action. I am assuming that machine is not in locked state and focus is on the dialog box only when you are executing this piece of code.
Another advice is try giving wait of 5 seconds and in these five seconds set focus on that winodw before using sendkey.
Hope this may help you.
-CB
Are you sure? This action cannot be undone.