Jump to content

Recommended Posts

Posted

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.
  • Moderators
Posted

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

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

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.

Posted

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.


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

Posted

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.
  • Moderators
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

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.

Posted

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.
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.
  • Developers
Posted

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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.
Posted

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.

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
×
×
  • Create New...