Rex_t Posted September 24, 2023 Share Posted September 24, 2023 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 <<<< > Link to comment Share on other sites More sharing options...
ioa747 Posted September 24, 2023 Share Posted September 24, 2023 Rex_t 1 I know that I know nothing Link to comment Share on other sites More sharing options...
Rex_t Posted September 24, 2023 Author Share Posted September 24, 2023 I could not able to locate any option to edit this discussion Link to comment Share on other sites More sharing options...
ioa747 Posted September 24, 2023 Share Posted September 24, 2023 (edited) 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 September 24, 2023 by ioa747 Edit I know that I know nothing Link to comment Share on other sites More sharing options...
Rex_t Posted September 24, 2023 Author Share Posted September 24, 2023 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 More sharing options...
Solution ioa747 Posted September 24, 2023 Solution Share Posted September 24, 2023 try manually first. after giving the password , how do you go to the next one with tab? , with enter? , with L (Login)? , with ctrl L (Login)? and after you find it, then you will go with the script I know that I know nothing Link to comment Share on other sites More sharing options...
junkew Posted September 24, 2023 Share Posted September 24, 2023 (edited) See faq 31. As its java there are some tryouts around javabridge. Edited September 24, 2023 by junkew Rex_t 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Rex_t Posted September 25, 2023 Author Share Posted September 25, 2023 Thanks ioa747 a lot, I followed your advice and found the key. In my case I have to pass spacebar. The automation is working fine now. ioa747 1 Link to comment Share on other sites More sharing options...
Rex_t Posted September 25, 2023 Author Share Posted September 25, 2023 Hi Junkew, I got this links from other discussion which you have posted. I will go through this Link to comment Share on other sites More sharing options...
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