Sign in to follow this  
Followers 0
martin

INetGet problem

10 posts in this topic

I have a script which uses InetGet. It was working ok as a script but not if I complied it.

I updated to the latest version of Autout3 and now it doesn't work as a script either.

I have IE 6.

If I use

InetGet("url i want","filename")

it fails.

Any suggestions would be appreciated.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites



InetGet("url i want","filename")

For 'filename', are you using the 'Direct Path'? If you are, you'll need to post your code.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Works for me using help file example and substituting a download from my own site. As Smoke_N suggests you should supply a bit more info.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

InetGet("url i want","filename")

For 'filename', are you using the 'Direct Path'? If you are, you'll need to post your code.

The relevant lines are

$workingdir = @WorkingDir

If InetGet($ojostring,$workingdir & "\pos1.htm") = 0 Then MsgBox(0,"","Inetget failed")

The $ojostring is made up of "http:\\www. etc

It must be significant (I assume) that this was working until I upgraded to the latest Autoit version about 1 hour ago.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

To see if it is InetGet() specifically... had you tried the 'DirectPath' rather than using the @WorkingDir macro?

Other than that, had you double checked to make sure the http://www. path still exists at this particular time? Code looks alright to me other wise.

Edit:

I hope it you have your http:// << like that and not like you posted it >> http:\\

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

To see if it is InetGet() specifically... had you tried the 'DirectPath' rather than using the @WorkingDir macro?

Other than that, had you double checked to make sure the http://www. path still exists at this particular time? Code looks alright to me other wise.

Edit:

I hope it you have your http:// << like that and not like you posted it >> http:\\

Yes, sorry it is http://


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Yes, sorry it is http://

if I try this simple example,taken from the example in the help file but with the if = 0 then added then it still fails

if InetGet("http://www.mozilla.org", "C:\foo.html") = 0 then msgbox(0,"","IE failed")

There is no file c:\foo.html created either.

Can it be anything to do with the version of IE I am using?

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

if I try this simple example,taken from the example in the help file but with the if = 0 then added then it still fails

if InetGet("http://www.mozilla.org", "C:\foo.html") = 0 then msgbox(0,"","IE failed")

There is no file c:\foo.html created either.

Can it be anything to do with the version of IE I am using?

Works fine for me.

WinXP sp2 / IE 6.0.2900 Autoit3 v 3.1.1.98


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Works for me using help file example and substituting a download from my own site. As Smoke_N suggests you should supply a bit more info.

Can you tell me which version of Autoit3 you are using and which version of IE?

I am very suspicious about the versions because the script was working ok until I changed to the latest version of AUtoit3

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Sorry, all; it's my firewall which is causing the problem. It lets IE work so I didn't think it was stopping AUtoit3 from working.

Apologies, but thanks for your replies


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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