Created
June 9, 2016 23:04
-
-
Save dvtate/31d93c5f5f427c9a8d35a247700b1271 to your computer and use it in GitHub Desktop.
another old program of mine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim objIE, objWSH, intSC | |
MsgBox "Welcome to SearchBot 0.2" &vbNewLine& "-By: DV Tate Testa", 0, "Welcome - SearchBot 0.2" | |
'Get Info | |
strQ = InputBox("What do you want to search for?", "Query - SearchBot 1.2") | |
intSC = InputBox("How many times?", "SearchBot 1.2") | |
strQ = trim(strQ) | |
'Create IE obj | |
Set objIE = CreateObject("InternetExplorer.Application") | |
Set objWSH = CreateObject("WScript.Shell") | |
objIE.Visible = True | |
Do | |
objIE.navigate "http://www.google.com/?q=" & strQ, CLng(2048) | |
WScript.Sleep 1000 | |
objWSH.SendKeys "~" | |
WScript.Sleep 1500 | |
intSC = intSC- 1 | |
Loop While intSC > 0 | |
'End | |
Set objIE = Nothing | |
WScript.Quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment