jdisme Posted May 8, 2008 Share Posted May 8, 2008 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 More sharing options...
Valuater Posted May 8, 2008 Share Posted May 8, 2008 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) Link to comment Share on other sites More sharing options...
jdisme Posted May 8, 2008 Author Share Posted May 8, 2008 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. Link to comment Share on other sites More sharing options...
Tapeworm Posted May 8, 2008 Share Posted May 8, 2008 get an admin account then, and unblock it Link to comment Share on other sites More sharing options...
someone Posted May 8, 2008 Share Posted May 8, 2008 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 Link to comment Share on other sites More sharing options...
jdisme Posted May 8, 2008 Author Share Posted May 8, 2008 ...thats not going to happen anytime soon, and even if I did that there would still be people who this script can help. Link to comment Share on other sites More sharing options...
jdisme Posted May 8, 2008 Author Share Posted May 8, 2008 @ 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 More sharing options...
jdisme Posted May 8, 2008 Author Share Posted May 8, 2008 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 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