Sign in to follow this  
Followers 0
Rajubgs

How to get the code from the VIP access.

4 posts in this topic

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. 

Share this post


Link to post
Share on other sites



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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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 Access
Class:    #32770
Position:    1074, 775
Size:    205, 208
Style:    0x940A004C
ExStyle:    0x00050000
Handle:    0x0000000000270A50

>>>> Control <<<<
Class:    Button
Instance:    5
ClassnameNN:    Button5
Name:    
Advanced (Class):    [CLASS:Button; INSTANCE:5]
ID:    11008
Text:    Copy Security code
Position:    159, 96
Size:    33, 54
ControlClick Coords:    18, 38
Style:    0x5001000B
ExStyle:    0x00000004
Handle:    0x0000000000270A64

>>>> Mouse <<<<
Position:    1251, 909
Cursor ID:    0
Color:    0x000000

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
  VIP Access
Settings
Minimize
Close
Credential ID
VSST45851385
Copy Credential ID
Security Code
954889
Copy Security code


>>>> Hidden Text <<<<
30 sec Count Down Timer
Baloone Close
Credential ID Copy

    
    

VIPAccessImage..docx

VIPAccessImage.png

Share this post


Link to post
Share on other sites

This looks like you are trying to automate a 2 factor authentication step.

:think: Not so sure we want to go down that road.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0