Here is one that tells you what page of a search you come up on.. first 1000 results...
Google has a way of blocking you if you do to many requests, that's why I have a long - random pause...
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
setbatchlines -1
Menu, Tray, Icon, shell32.dll, 147
menu, tray, NoStandard
Menu, tray, add, Stop, MenuHandler2
InputBox, strSpam, Search String, Enter your search string EXACTLY as you would for a search. (ie. the keywords you want to be found through),, 350, 140,,,,, keywords
StringReplace, strSpam, strSpam, %A_Space%, +, 1
InputBox, Needle, URL, Enter your web site address. (ie. www.yourwebsite.com),, 350, 140,,,,, www.yourwebsite.com
FileDelete, garbage*.dat
UrlDownloadtoFile, http://www.google.com/search?q=%strSpam%&btnG=Search&hl=en&sa=2, garbage46545645641.dat
fileread, Haystack, garbage46545645641.dat
FileDelete, garbage46545645641.dat
IfInString, Haystack, %Needle%
{
MsgBox, %Needle% is on the FIRST Google search page!
exitapp
}
counter := 1
loop
{
Menu, tray, add, Stop, MenuHandler2
Menu, tray, add, On page %counter% of 100, MenuHandler3
if counter >= 100
{
msgbox, not found in the first 1000 results
exitapp
}
sleep, 2
random, rand6, 2001, 5000, NewSeed
random, rand7, 10, 99, NewSeed
sleep, 4
random, rand8, 336, 2906, NewSeed
random, rand10, 12, 660, NewSeed
sleep, 20
random, rand11, 77, 999, NewSeed
random, rand4, 700, 900, NewSeed
sleep, 23
random, rand5, 510, 700, NewSeed
sleep, %rand6%
random, rand9, 51, 700, NewSeed
random, rand12, 25, 760, NewSeed
random, rand13, 19, 25, NewSeed
sleep, 2
random, rand0, 10, 1400, NewSeed
sleep, 3
random, rand1, 1000, 1500, NewSeed
random, rand2, 1000, 2030, NewSeed
sleep, 20
random, rand3, 900, 1100, NewSeed
sleep, %rand6%
FileDelete, garbage%rand7%%rand8%.dat
sleep, %rand2%
strSpam2 = http://www.google.com/search?hl=en&q=%strSpam%&start=%counter%0&sa=N
sleep, %rand13%%rand9%
UrlDownloadtoFile, %strSpam2%, garbage%rand7%%rand8%.dat
sleep, %rand3%
fileread, Haystack, garbage%rand7%%rand8%.dat
counter += 1
sleep, %rand4%5
FileDelete, garbage%rand7%%rand8%.dat
sleep, %rand5%
IfInString, Haystack, %Needle%
{
run, %strSpam2%
MsgBox, %Needle% is on Google search page %counter%. The URL is %strSpam2%
exitapp
}
sleep, %rand7%%rand8%
menu, tray, DeleteAll
}
;///////////////////////////
MenuHandler3:
sleep, 100
MenuHandler2:
FileDelete, garbage*.dat
ExitApp
return
MSN has no checker so its very fast...
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
setbatchlines -1
Menu, Tray, Icon, shell32.dll, 147
menu, tray, NoStandard
Menu, tray, add, Stop, MenuHandler2
InputBox, strSpam, Search String, Enter your search string EXACTLY as you would for a search. (ie. the keywords you want to be found through),, 350, 140,,,,, keywords
StringReplace, strSpam, strSpam, %A_Space%, +, 1
InputBox, Needle, URL, Enter your web site address. (ie. www.yourwebsite.com),, 350, 140,,,,, www.yourwebsite.com
FileDelete, garbage*.dat
UrlDownloadtoFile, http://search.live.com/results.aspx?q=%strSpam%&go=&form=QBRE, garbage46545645641.dat
fileread, Haystack, garbage46545645641.dat
FileDelete, garbage46545645641.dat
IfInString, Haystack, %Needle%
{
MsgBox, %Needle% is on the FIRST MSN search page!
exitapp
}
counter := 1
loop
{
Menu, tray, add, Stop, MenuHandler2
Menu, tray, add, On page %counter% of 100, MenuHandler3
if counter >= 100
{
msgbox, not found in the first 1000 results
exitapp
}
random, rand10, 12, 660, NewSeed
strSpam2 = http://search.msn.com/results.aspx?q=%strSpam%&first=%counter%1&FORM=PERE2
UrlDownloadtoFile, %strSpam2%, garbage%rand10%.dat
fileread, Haystack, garbage%rand10%.dat
counter += 1
FileDelete, garbage%rand10%.dat
IfInString, Haystack, %Needle%
{
run, %strSpam2%
MsgBox, %Needle% is on MSN search page %counter%. The URL is %strSpam2%
exitapp
}
menu, tray, DeleteAll
}
;///////////////////////////
MenuHandler3:
sleep, 100
MenuHandler2:
FileDelete, garbage*.dat
ExitApp
return