atnextc Posted May 22, 2010 Share Posted May 22, 2010 (edited) I have a problem with my script below. I need it to have the input box value after "mx%3a" in the url when entering it in IE but it doesn't work.....or even better I have a list of domain names that I need to check to see if they point to us in a text file, can I have autoit read the domains from the text file and "silently" in the background check mxtoolbox to see if it points to us and log a file with the results? Sorry for all the questions, they all just came to me as I was typing this out. Thanks Atnextc #include <IE.au3> $number = InputBox("MxToolBox Checker", "Enter the domain name you want to check.", "") ; Check the user's answer to the prompt (see the help file for MsgBox return values) $url ="http://mxtoolbox.com/SuperTool.aspx?action=mx%3a" Send($number) $oIE = _IECreate($url, 1) $oFormLogin = _IEFormGetCollection($oIE, 0) Send ("{ENTER}") Edited May 22, 2010 by atnextc Link to comment Share on other sites More sharing options...
exodius Posted May 23, 2010 Share Posted May 23, 2010 I think you want something as simple as this: #include <IE.au3> $vDomain = InputBox("MxToolBox Checker", "Enter the domain name you want to check.", "") If @error Then Exit $oIE = _IECreate("http://mxtoolbox.com/SuperTool.aspx?action=mx%3a" & $vDomain, 1) Link to comment Share on other sites More sharing options...
atnextc Posted May 23, 2010 Author Share Posted May 23, 2010 That was what I needed to do as far as appending the variable to the end of the url.....thanks any ideas about the other ?'s Link to comment Share on other sites More sharing options...
exodius Posted May 23, 2010 Share Posted May 23, 2010 If you want to read a list from a file, look into _FileReadToArray, if you want to have IE run silently, look at the parameters for _IECreate.To read the page you'll probably want to read through the tables on the page and based on what you find, write out to a file using IniWrite or FileWriteLine.This will help you with figuring out what table # you want to look at:#include <IE.au3> #include <Array.au3> $number = InputBox("MxToolBox Checker", "Enter the domain name you want to check.", "") If @error Then Exit $oIE = _IECreate("http://mxtoolbox.com/SuperTool.aspx?action=mx%3a" & $number, 1) For $x = 0 to 100 $oTable = _IETableGetCollection ($oIE, $x) If @error Then Exit $aTableData = _IETableWriteToArray ($oTable, True) _ArrayDisplay($aTableData) Next Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now