Jump to content

Recommended Posts

Posted

Hi,

I have to automated a site which asks to select a certificate for login, I handled that with AutoIt.

In Windows-XP it is working fine.

if (autoIt.winExists(CERT_WINXP_TITLE, "") == 1) {
autoIt.winActivate(CERT_WINXP_TITLE, CERT_WINXP_TEXT);
autoIt.winWaitActive(CERT_WINXP_TITLE, CERT_WINXP_TEXT, 0);
autoIt.send(certificate, 0);
autoIt.controlClick(CERT_WINXP_TITLE, "", "Button2");
return true;
}

but this code fails for Windows 7.

Unable to select the correct certificate from the list of certificates.

post-67291-0-30054800-1315900649_thumb.j

Please help me out.

Posted

Not working, I had admin rights and this particular code is not working there. may be I need to use some other autoIt methods to do this. Please suggest som solution.

Posted

On windows 7 rightclick your EXE and select "run as admin" . Are you sure this is the same as in win7 as in XP - "CERT_WINXP_TITLE" ?

  • 4 years later...
Posted
On 9/13/2011 at 1:28 PM, ashishtr said:

Hi,

 

I have to automated a site which asks to select a certificate for login, I handled that with AutoIt.

In Windows-XP it is working fine.

 

 

if (autoIt.winExists(CERT_WINXP_TITLE, "") == 1) {
autoIt.winActivate(CERT_WINXP_TITLE, CERT_WINXP_TEXT);
autoIt.winWaitActive(CERT_WINXP_TITLE, CERT_WINXP_TEXT, 0);
autoIt.send(certificate, 0);
autoIt.controlClick(CERT_WINXP_TITLE, "", "Button2");
return true;
}

 

but this code fails for Windows 7.

 

Unable to select the correct certificate from the list of certificates.

 

cert.JPG

 

Please help me out.

Hi Ashish,

Did the problem solve for you and also could you please send the complete code to me with what values to send in the above variables. I also have a number of certificates installed and i need to select a particular certificate as per the client need.

Thanks in advance,

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...