Sign in to follow this  
Followers 0
atnextc

Help with URL Script

4 posts in this topic

#1 ·  Posted (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 by atnextc

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0