gazelka Posted June 23, 2017 Posted June 23, 2017 I'm trying to do an automatic search engine in google. But i dont know how to press button in webpage. ShellExecute("https://www.google.bg/") MouseMove(751,401) MouseClick("left", 751, 401, 1) Send("hello world") And now I want to press the search button.
Nunos Posted June 23, 2017 Posted June 23, 2017 Perhaps ControlClick https://www.autoitscript.com/autoit3/docs/functions/ControlClick.htm
gazelka Posted June 23, 2017 Author Posted June 23, 2017 Can anyone explain me with an example how it works? This is exactly the button "google search"
junkew Posted June 23, 2017 Posted June 23, 2017 Faq 31 see freq asked questions FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Bert Posted June 24, 2017 Posted June 24, 2017 look here: This explains how to do it The Vollatran project My blog: http://www.vollysinterestingshit.com/
gwinter Posted September 2, 2020 Posted September 2, 2020 Just send an Enter after to submit the search, since you are sending text to the field anyways, you just hit Enter after {ENTER}. An alternative to trying to access controls and buttons on a webpage is to generate Google search links instead of using a search page.
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