Jump to content

Formating help?


Recommended Posts

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 :)

Link to comment
Share on other sites

@ 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.

Link to comment
Share on other sites

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))
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...