RealisT Posted September 20, 2010 Share Posted September 20, 2010 Windows XP Home - SP 3Working in SciTEI cannot get the INetGetSource function to work. AutoIt scripts work OK for me, but the INetGetSource doesn't retrieve any thing from known sites such as Google or even AutoItScript.com. (I have internet connectivity, and I have the INet.au3 include).Even the example script given on this website for this function does not return anything.The following code (given at http://www.autoitscript.com/autoit3/docs/libfunctions/_INetGetSource.htm) returns nothing in the Console:#include <INet.au3> ConsoleWrite(_INetGetSource('http://www.autoitscript.com'))I did try a variation, without success, which waits in a while loop until it has the source text before displaying.Is this incorrect code, or is some other vital thing missing?Thanks Link to comment Share on other sites More sharing options...
Fire Posted September 20, 2010 Share Posted September 20, 2010 (edited) I think your problem is not related with autoit. I think theris something misconfiguration with your IE-proxy setting(may be not working proxy ?) Anyway firstly check inetcpl.cpl's connections tab for proxy configuration. I think problem related with it. Another think may be in eg: FW blocking it? BTW inetget() works for you?or it has this problem? This example works for me in WIN XP SP2<br><br>Also try to compile <br><br>#include <INet.au3><br>MsgBox(64,"",_INetGetSource('http://www.autoitscript.com'))<br><br><br>And then run it .<br>If it works for you from compiled *.exe this means %programfiles%\AutoIt3\AutoIt3.exe was blocked by firewall.<br><br> Edited September 20, 2010 by Fire [size="5"] [/size] Link to comment Share on other sites More sharing options...
M a k a v e l ! Posted September 21, 2010 Share Posted September 21, 2010 Windows Firewall enabled for Autoit ? Try disabling your AV internet section It should work... [font="Lucida Sans Unicode"]M a k. a v e L ![/font] Link to comment Share on other sites More sharing options...
rudi Posted September 21, 2010 Share Posted September 21, 2010 Hi. Have a look at HttpSetProxy(), to either specify explicitely "no proxy" / "proxy:port" Use wireshark to catch the traffic, compare the capture to what you get when you use a webbrowser to surf the same URL. Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
RealisT Posted September 23, 2010 Author Share Posted September 23, 2010 OK, I've tried most of your suggestions:1. It appears that this unit is not set up as a Proxy Server. Should it be?2. Compiling & running does not work either, so I don't know if this about AutoIt.exe being blocked.3. INetGet does not work either (Returns 0, I believe. And INetGetInfo returns empty).4. I tried "no proxy" and "default" settings for HttpSetProxy(). No change in result.5. Windows Firewall apparently will not allow adding AutoIt.exe as a firewall exception program.Is this still a matter of settings?Thanks Link to comment Share on other sites More sharing options...
RealisT Posted September 23, 2010 Author Share Posted September 23, 2010 Also, no change when I add AutoIt.exe as an exception in the AV app. Link to comment Share on other sites More sharing options...
trancexx Posted September 23, 2010 Share Posted September 23, 2010 Interesting. Try this (click that). It's IE free. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
RealisT Posted November 1, 2010 Author Share Posted November 1, 2010 Sorry for the response delay. Was in hospital. The winHTTP method works well. It will make a fine alternative to _INetGetSource! Thank you 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