Jump to content

How to get the code from the VIP access.


Rajubgs
 Share

Recommended Posts

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. 

Link to comment
Share on other sites

  • Moderators

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!

Link to comment
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

Link to comment
Share on other sites

  • Developers

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

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.
  :)

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...