Sign in to follow this  
Followers 0
Raiuno

Google query and variables

3 posts in this topic

Hi I am Max from Italy I am a very beginner of Autoit.

I want to code a program with the following feature.

A user inputs in a input box a dissertation argument (for example psychology)

The data is stored in a variable ($subject) and is appended in the following address format of a google query:

intitle:dissertation + filetype:pdf + $subject

I coded the first lines

#include <IE.au3>

$argument = InputBox("Search a Dissertation", "Insert subject", "Dissertation Subject", "", -1, -1, 0, 0)

$oIE = _IECreate ("http://www.google.it/search?hl=en&q=intitle%3Adissertation+filetype%3Apdf+&meta=")

How can I append the $subject content directly to the address format with the Autoit script?

Any help will be very appreciated

Thanks

Max

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

You mean concatenation?

Try it like this: "String" & $variable

example

$var="/translate"

"www.google.com" & $var = www.google.com/translate

-edit-

Sorry Paulie. Didn't see that...

Edited by Nahuel

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  
Followers 0