Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 6:24 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Google Searcher Macro[Source]
Thanked: 2 time(s)  Unread post Posted: Fri Apr 30, 2010 2:55 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Apr 26, 2010 5:11 am
Posts: 25
Been thanked: 5 time(s)
Has thanked: 0 time(s)
Contribution Points: 1051
Video: http://www.youtube.com/watch?v=ilSNAay1LfU

First in the variables list create a variable called {googlesearch}

Set the value to http://www.google.com/#hl=en&source=hp&q=

Then paste this in the code:

Code:
begin
     Window.Request user input("What do you want to look up on google?", "searchname")
     Variable.Evaluate (Text)("{googlesearch}{searchname}", "searchsentence")
     System.Launch application with arguments("iexplore.exe", "{searchsentence}", "yes")
     if  Window.Confirmation dialog gets confirmed by user("Do you want to search something else?")
          begin
               Window.Request user input("What else do you want to search?", "searchname")
               Variable.Evaluate (Text)("{googlesearch}{searchname}", "searchsentence")
               System.Launch application with arguments("iexplore.exe", "{searchsentence}", "true")
          end
 end


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Searcher Macro[Source]
Thanked: 0 time(s)  Unread post Posted: Fri Apr 30, 2010 9:44 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
Very nice demo of how to request user input from a macro.

Here is a slightly updated version, which will always do the search in whatever browser is your default.
Code:
 begin
     Window.Request user input("What do you want to look up on google?", "searchname")
     Variable.Evaluate (Text)("{googlesearch}{searchname}", "searchsentence")
     System.Launch application("{searchsentence}", "true")
     if  Window.Confirmation dialog gets confirmed by user("Do you want to search something else?")
          begin
               Window.Request user input("What else do you want to search?", "searchname")
               Variable.Evaluate (Text)("{googlesearch}{searchname}", "searchsentence")
               System.Launch application("{searchsentence}", "true")
          end
 end


Which also requires a variable called {googlesearch} with the following value http://www.google.com/#hl=en&source=hp&q=

Here is the downloadable macro, (download and drag it in to the list of macros in the main window of Blue Eye)
Attachment:
internet.google search.bem [11.03 KiB]
Downloaded 926 times

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Searcher Macro[Source]
Thanked: 0 time(s)  Unread post Posted: Mon Aug 16, 2010 11:14 pm 
Active User
Active User



Joined: Mon Aug 16, 2010 8:38 pm
Posts: 31
Been thanked: 1 time(s)
Has thanked: 0 time(s)
Contribution Points: 480
Nice! It remembres me vb Lol

_________________
Image

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Searcher Macro[Source]
Thanked: 0 time(s)  Unread post Posted: Sat Mar 19, 2011 6:56 am 
New User
New User



Joined: Thu Mar 17, 2011 11:06 pm
Posts: 16
Been thanked: 0 time(s)
Has thanked: 4 time(s)
Contribution Points: 94
nicely done. Very interesting.


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Searcher Macro[Source]
Thanked: 0 time(s)  Unread post Posted: Tue Dec 06, 2011 5:08 am 
New User
New User



Joined: Tue Dec 06, 2011 4:11 am
Posts: 19
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 0
nice.... now i can sit and watch my computer magically typing in google xD


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Searcher Macro[Source]
Thanked: 0 time(s)  Unread post Posted: Wed Jul 04, 2012 6:08 am 
New User
New User



Joined: Tue Jul 03, 2012 9:13 pm
Posts: 2
Been thanked: 0 time(s)
Has thanked: 21 time(s)
Contribution Points: 10
nice thx


Top
 Profile  
Reply with quote  
 Post subject: Re: Google Searcher Macro[Source]
Thanked: 0 time(s)  Unread post Posted: Sat Dec 07, 2013 1:40 am 
Contributor
Contributor



Joined: Fri Nov 01, 2013 1:06 am
Posts: 93
Been thanked: 4 time(s)
Has thanked: 39 time(s)
Contribution Points: 102
What exactly does this do ?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group