Rajubgs Posted December 15, 2015 Posted December 15, 2015 Hi,I am Raju, I am new to AutoIT tool, I using this tool for the first time. I mainly use Selenium. I need your help in this, when i reached i found that this tool support the selenium so i started it.My problem : I my application after entering the UserName/Pwd and clicking on Next button there will be a secondary Authentication page. Over here i need to pass the VIP access code which is installed in my machine.I need to open the .exe and get the code and pass it to the text box. This code will change for every 30 sec. As selenium doesn't support the Non-UI application, so i thought this is the right tool to use it. Can some one help me out how to do it. I am able to open the file by using Run command but after that i could not find the way to click on the button and get the value. I need some help in this. Thanks,Raju.
Moderators JLogan3o13 Posted December 15, 2015 Moderators Posted December 15, 2015 Hi, @Rajubgs, welcome to the forum. What is the application you're trying to automate? Without knowing the app, or seeing a screenshot of what you're seeing, it is a little difficult to offer suggestions. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Rajubgs Posted December 16, 2015 Author Posted December 16, 2015 Hi, I have attached the Image from which i need to get the value. I need to click on the button in the red circle and need to past the value in the text box. I am able to do it by using MouseClick("left", 1254, 903) it is working fine. Here is the my problem, the X and Y coordinate are changing when the screen resolution's changes. So i tried using Controlclick but this function is not working. Below is the code which i have written. Run("VIPUIManager.exe") Sleep(5000) WinActivate("VIP Access") ;This function will click the button on the VIP Access to copy the Security Code. ;MouseClick("left", 1254, 903) ControlClick("VIP Access", "", "Button5", "left") Sleep(2000) Below is the Summary of the Button.>>>> Window <<<<Title: VIP AccessClass: #32770Position: 1074, 775Size: 205, 208Style: 0x940A004CExStyle: 0x00050000Handle: 0x0000000000270A50>>>> Control <<<<Class: ButtonInstance: 5ClassnameNN: Button5Name: Advanced (Class): [CLASS:Button; INSTANCE:5]ID: 11008Text: Copy Security codePosition: 159, 96Size: 33, 54ControlClick Coords: 18, 38Style: 0x5001000BExStyle: 0x00000004Handle: 0x0000000000270A64>>>> Mouse <<<<Position: 1251, 909Cursor ID: 0Color: 0x000000>>>> StatusBar <<<<>>>> ToolsBar <<<<>>>> Visible Text <<<< VIP AccessSettingsMinimizeCloseCredential IDVSST45851385Copy Credential IDSecurity Code954889Copy Security code>>>> Hidden Text <<<<30 sec Count Down TimerBaloone CloseCredential ID Copy VIPAccessImage..docx
Developers Jos Posted December 16, 2015 Developers Posted December 16, 2015 This looks like you are trying to automate a 2 factor authentication step. Not so sure we want to go down that road.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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