Jump to content

Send Click on the Button not having a Button info


Rex_t
 Share

Go to solution Solved by ioa747,

Recommended Posts

Hi Experts,

I am new to AutoIt. I have automated few easy application. Thanks, to auto info utility. Currently, I am working on application where I am not getting button info. I just need to click the button and login. Below is the sample code i tried so far.

1) With the below code I have highlighted the button which I need to click.

<

WinWaitActive("[CLASS:GlassWindowClass-2]", "", 20) ;focus on Confirmation window
Send ( "password" )
Send("{TAB}")

MouseClick("left") <Not Working>

>

2) I tried to send ENTER and this is also not working. But in manual it require click only to move to next screen.

<

WinWaitActive("[CLASS:GlassWindowClass-2]", "", 20) ;focus on Confirmation window
Send ( "password" )
Send("{TAB}")

Send("{ENTER}") <Not Working>

>

Below is the info which i got it from Auto info utility.

<

>>>> Window <<<<
Title:    SMS Admin
Class:    GlassWindowClass-2
Position:    385, 12
Size:    511, 987
Style:    0x96090000
ExStyle:    0x00000000
Handle:    0x002612A8

>>>> Control <<<<
Class:    
Instance:    
ClassnameNN:    
Name:    
Advanced (Class):    
ID:    
Text:    
Position:    
Size:    
ControlClick Coords:    
Style:    
ExStyle:    
Handle:    

>>>> Mouse <<<<
Position:    857, 490
Cursor ID:    2
Color:    0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
 

>

sms.JPG

Link to comment
Share on other sites

welcome to the forum.

yes, in the beginning it is like that until you get a little older.


As for your topic, it seems to be the web browser window, which makes things difficult.
take a walk with the info tool, again from the controls, buttons, input boxes, etc..
does it give you information on ClassnameNN ?

Or try doing a test without a mouse. when you open the window, where is the focus?
is it in the user's name?

 

Edit:
 

; Pauses the script until the requested window exists
Local $hWnd = WinWait("[CLASS:GlassWindowClass-2]")

; check
ConsoleWrite("$hWnd=" & $hWnd & @CRLF)

; Activates (gives focus to) a window
If WinActivate($hWnd) Then
    ; if ok then send
    Send("password")
    Send("{TAB}")
EndIf

 

Edited by ioa747
Edit

I know that I know nothing

Link to comment
Share on other sites

Hi ioa747,

Thanks for the reply.

As you have mentioned, I have thoroughly walked through the info utility. I could not found any value there in ClassnameNN. This form is not from the Web. Actually, This is a java based application.

Answering to the second question. When this form open the curser is by default placed on password where i can successfully can pass the password using 

Send("password")

 

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