Sign in to follow this  
Followers 0
jdisme

Formating help?

8 posts in this topic

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

Share this post


Link to post
Share on other sites



It's this simple

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

TCPStartUp() is a different animal.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

get an admin account then, and unblock it :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
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))

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