Jump to content
Sign in to follow this  
quarqo

Ienavigate proxy

Recommended Posts

quarqo

Hi all, i need some help at Autoit. How can i set-up an proxy for internet navigation. Let's say I have this code :

$oIE=_IECreateEmbedded()
$site=GUICtrlCreateObj($oIE, 150, 28, 640, 600)
_IENavigate($oIE, "exemplesite.com");

You know that will create an object frame same as an browser. But i want to navigate using an proxy ip. Do you know how can i solve this ?

Thanks, Quarqo. :)

Share this post


Link to post
Share on other sites
quarqo

It doesn't work for me. It use same default ip.

Share this post


Link to post
Share on other sites
Fire

Hi.

Check it out:

Especially:

#include <IE.au3> regwrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\","ProxyEnable","REG_DWORD","1") regwrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\","ProxyServer","REG_SZ","localhost:8118") sleep(5000) $so=_IECreate("http://www.wieistmeineip.de")

where localhost : 8118 listened by TOR.

Edited by Fire

[size="5"] [/size]

Share this post


Link to post
Share on other sites
quarqo

Thank you for help Fire. it works well. I have 1 more question: how can i reset to default ip after i finish the surfing. ? :)

Share this post


Link to post
Share on other sites
Fire

You are Welcome dude.

For undo all changes just execute:

#include <IE.au3> regwrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\","ProxyEnable","REG_DWORD","0") regwrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\","ProxyServer","REG_SZ","130.88.203.27:3124")
exit

and then exit your script.


[size="5"] [/size]

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  

×