Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I thought of a general use case which needs to be implemented:
Query:
- User is present in Desktop
- Keys in word 'go' followed by the google search string: for example if the user wants to search for 'java'. Then the user will key in 'gojava'
- Now the script has to detect that the user is present in desktop & then only execute the script to detect the search string after word 'go' & find it in Google by opening a browser.

Design:
C#
Detect Desktop
{
  Wait for user to hit 'go'
  {
   Cache the remaining words after 'go' as they have to be searched in google
    {Open google & search for the search string}
  }
}

Could anyone provide a script to do it? Preferably could it be done using AutoIT scripting?

Thanks & Regards,
Chaitanya
Posted
Updated 28-Dec-10 18:44pm
v3

1 solution

string SearchString = textboxSearch.Text.Replace(" ", "+");

then just have it open a browser window with inital page URL
"http://www.google.com/search?q=" + SearchString;


plenty of help on how to open a browser online, its easy enough
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900