Jump to content
Sign in to follow this  

How to get the code from the VIP access.

Recommended Posts


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.




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.

"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!

Share this post

Link to post
Share on other sites


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.

     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")


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
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
Credential ID
Copy Credential ID
Security Code
Copy Security code

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




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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...