Jump to content
Sign in to follow this  
bryanlikesyou

open google and search automatically

Recommended Posts

Xenobiologist

Why Chrome? Why not using the IE.au3


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
stormbreaker

Perhaps, _ScreenCapture_Capture could be of help here.


----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites
EndFunc

Hello,

I need to open google.com in Chrome and search for my query and once the search page opens, take a printscreen and save it with timestamp in x folder on my D drive. The query I want to execute is http://www.google.com/search?hl=en&q=my query here&gl=us

Regards,

Bryan

I would start by using ShellExecuteWait to launch Chrome. Using ShellExecute will open the URL in your default browser instead of using IE. e.g.

ShellExecuteWait("http://www.google.com/search?hl=en&q=my query here&gl=us")

Then just use the _ScreenCapture_Capture as MKISH noted as well to grab the frame and save it to file. It should be a relatively easy script to make.

The source of your Google query can come from anywhere, such as an inputbox, text field or manually insert it but I'd make it a variable and have the query come from user input.

Why Chrome? Why not using the IE.au3

Because like most people, that is not a preferred browser. Chrome is a much better browser and he should be able to use the browser of his choice for scripts. ;)

EndFuncAutoIt is the shiznit. I love it.

Share this post


Link to post
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
Sign in to follow this  

×