Jump to content

Problem with Certificate selection in Windows 7.


ashishtr
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • 4 years later...
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,

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...