1.Open Google
2.Enter search text
3.Smash that 'Google Search' button
Problem:
Click method doesn't seem to work. Code follows:
Code: Select all
SetBatchLines, -1
#NoEnv
#SingleInstance force
Load(wb)
{
while wb.busy
sleep, 100
}
wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True
wb.Navigate("Google.com")
Load(wb)
wb.Document.All.q.Value := "sample text"
wb.Document.All.btnK.click() ;<---This part simply doesn't work!
Load(wb)