Moscar Posted July 9, 2007 Share Posted July 9, 2007 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 Link to comment Share on other sites More sharing options...
/dev/null Posted July 9, 2007 Share Posted July 9, 2007 I know that the definition of InetGetSource is - Gets the source from an URL without writing a temp fileIs 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.Thanksand 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 * Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 9, 2007 Share Posted July 9, 2007 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) 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 Link to comment Share on other sites More sharing options...
Moscar Posted July 9, 2007 Author Share Posted July 9, 2007 (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) 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 July 9, 2007 by Moscar 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