Hi All,
Help required!!!!
I was using an autoit script without issues for handling login window on Chrome. But since Chrome updated to 2.29 the login window has changed and my script has stopped working. I made changes to the script but function ControlSend is now not sending the text.
The script is as follows:
sleep(10000)
WinWait("[CLASS:Chrome_WidgetWin_1]","","20")
ControlSend("[CLASS:Chrome_WidgetWin_1; Title:abc | Post - Google Chrome]", "", "[CLASS:Chrome_WidgetWin_0; INSTANCE:1]", "username{TAB}")
ControlSend("[CLASS:Chrome_WidgetWin_1; Title:abc | Post - Google Chrome]", "", "[CLASS:Chrome_WidgetWin_0; INSTANCE:1]", "password{Enter}")
In the above script the TAB and Enter work but the text is not typed.
The earlier window (old version of Chrome) used to have different instance number for the 2 text box but the new one refers to both as Instance:1. Not sure whether this is the problem or not.
Details using SPY
>>>> Window <<<<
Title: abc | Post - Google Chrome
Class: Chrome_WidgetWin_1
Position: -9, -9
Size: 1938, 1050
Style: 0x17CF0000
ExStyle: 0x00000100
Handle: 0x0000000000120982
>>>> Control <<<<
Class: Chrome_WidgetWin_0
Instance: 1
ClassnameNN: Chrome_WidgetWin_01
Name:
Advanced (Class): [CLASS:Chrome_WidgetWin_0; INSTANCE:1]
ID:
Text: abc
Position: 0, 70
Size: 1920, 971
ControlClick Coords: 866, 184
Style: 0x56300000
ExStyle: 0x00000000
Handle: 0x0000000000260894
>>>> Mouse <<<<
Position: 866, 245
Cursor ID: 2
Color: 0xC2C2C2
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
Authentication Required
abc
>>>> Hidden Text <<<<