Jump to content

Recommended Posts

Posted

I wrote a script a little while ago that was used for finding the ip of websites, open up firefox, click on the url bar, and type in that ip. here is the code:

$var = InputBox ("Bypass", "Please enter the site that you are trying to access.")
Run ("C:\Program Files\Mozilla Firefox\firefox.exe")
WinWaitActive ("Mozilla Firefox")
Sleep (1000)
Mousemove (440,70)
Sleep (250)
MouseClick ("")
TCPStartup()
Send (TCPNameToIP($var))
Send ("{enter}")

I would like a more reliable way to do this. I know that if I do:

ShellExecute ("www.autoitscript.com")

then it opens up my default browser at the autoit site.

So I was thinking... can't I mix those together for a more reliable script?

I came up with:

$var = InputBox ("Bypass", "Please enter the site that you are trying to access.")
TCPStartup()
Run ((TCPNameToIP($var)))

But it doesn't work... what is wrong?

I thank you in advance for your help :)

Posted

Thanks for your help but I guess I was not clear on what I was trying to do. I am at school and things such as "youtube" are blocked but the IP of it isn't.

Posted

I can't test firefox, but this works for IE

$var = InputBox ("Bypass", "Please enter the site that you are trying to access.")
ShellExecute("http://" & $var)
While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Posted

...thats not going to happen anytime soon, and even if I did that there would still be people who this script can help.

Posted

@ someone

First of all thanks for trying to help. But That brings up youtube, but like I said its still blocked. I need a way to open up the website ($var) using the direct IP address. So instead of "http://www.youtube.com" I need "208.65.153.238" thats why I was using TCPtoIP.

Posted

Got it. thanks someone for giving me the idea, this works perfectly.

$var = InputBox ("Bypass", "Please enter the site that you are trying to access.")
TCPStartup()
ShellExecute("http://" & TCPNameToIP($var))

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
×
×
  • Create New...