ashishtr Posted September 13, 2011 Share Posted September 13, 2011 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. Please help me out. Link to comment Share on other sites More sharing options...
ashishtr Posted September 20, 2011 Author Share Posted September 20, 2011 Is this an impossible requirement??? Link to comment Share on other sites More sharing options...
KaFu Posted September 20, 2011 Share Posted September 20, 2011 Might be an UAC issue? Try to run the code with administration privileges. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
ashishtr Posted September 23, 2011 Author Share Posted September 23, 2011 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. Link to comment Share on other sites More sharing options...
Juvigy Posted September 26, 2011 Share Posted September 26, 2011 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" ? Link to comment Share on other sites More sharing options...
v3khurana Posted August 8, 2016 Share Posted August 8, 2016 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. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now