Sign in to follow this  
Followers 0
Moscar

_InetGetSource Question

4 posts in this topic

I know that the definition of InetGetSource is - Gets the source from an URL without writing a temp file

Is there a switch that you can put in that will write a temp file ?

I am getting the source data from a HP JetDirect printer's web server.

If I do ConsoleWrite(_INetGetSource('http://10.100.13.17')) I get the info I need. Without the ConsoleWrite I get no data, no errors.

I had a lot of help writing this script and it works great as long as the HP web page is stored locally. At home that was the only way to test the script, now that I am at work it has to pull the the JetDirect Card.

Any thoughts would be appreciated.

Thanks

Share this post


Link to post
Share on other sites



I know that the definition of InetGetSource is - Gets the source from an URL without writing a temp file

Is there a switch that you can put in that will write a temp file ?

I am getting the source data from a HP JetDirect printer's web server.

If I do ConsoleWrite(_INetGetSource('http://10.100.13.17')) I get the info I need. Without the ConsoleWrite I get no data, no errors.

I had a lot of help writing this script and it works great as long as the HP web page is stored locally. At home that was the only way to test the script, now that I am at work it has to pull the the JetDirect Card.

Any thoughts would be appreciated.

Thanks

and the question is: How do you call _InetGetSource() in the case it "does not work"???


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

I know that the definition of InetGetSource is - Gets the source from an URL without writing a temp file

Is there a switch that you can put in that will write a temp file ?

I am getting the source data from a HP JetDirect printer's web server.

If I do ConsoleWrite(_INetGetSource('http://10.100.13.17')) I get the info I need. Without the ConsoleWrite I get no data, no errors.

I had a lot of help writing this script and it works great as long as the HP web page is stored locally. At home that was the only way to test the script, now that I am at work it has to pull the the JetDirect Card.

Any thoughts would be appreciated.

Thanks

My appologies if this is insultingly basic, but did you save the data somewhere after removing ConsoleWrite()?

; ConsoleWrite(_INetGetSource('http://10.100.13.17'))
$sPtrHTML = _INetGetSource('http://10.100.13.17')
MsgBox(64, "Debug:HTML", $sPtrHTML)

:whistle:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

My appologies if this is insultingly basic, but did you save the data somewhere after removing ConsoleWrite()?

; ConsoleWrite(_INetGetSource('http://10.100.13.17'))
$sPtrHTML = _INetGetSource('http://10.100.13.17')
MsgBox(64, "Debug:HTML", $sPtrHTML)

:whistle:

No, I just did that to test that the JetDirect card would give me data.

I had a ton of help from a great guy here, he wrote

For $source = _INetGetSource($Printers[$p])

So I know there is a ton of code missing, his script works awesome, it pulls the http:// adress from an Excel spreadsheet, goes to the source data and finds the toner % and then writes that data back into the excel spreadsheet.

I think there is something missing since it's pulling frmo the JEtdirect card ? Just looking for some advice.

Thanks

Edited by Moscar

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