random667 Posted October 12, 2007 Share Posted October 12, 2007 Is there any autoit function that can call a url such as: "http://www.website.com/test/WriteForm.asp?u_input=Test" without opening a browser window? I have tried InetGet() but it doesn't seem to work. Thanks It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
weaponx Posted October 12, 2007 Share Posted October 12, 2007 What do you need to do with the webpage? Link to comment Share on other sites More sharing options...
Kreatorul Posted October 12, 2007 Share Posted October 12, 2007 #include <IE.au3> _IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 0 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] ) Just call it invisible? :-/ Link to comment Share on other sites More sharing options...
random667 Posted October 12, 2007 Author Share Posted October 12, 2007 (edited) What do you need to do with the webpage?I need to send the query string "u_input=Test" to the "WriteForm.asp" file.in flash i can use:getURL("WriteForm.asp?u_input=Test", "0", "POST");I dont know if autoit can do something like this or not. Edited October 12, 2007 by random667 It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
ken82m Posted October 12, 2007 Share Posted October 12, 2007 Not sure what your trying to do but this would work for IE $IEInstance = Run(@ProgramFilesDir & "\Internet Explorer\Iexplore.exe " & $url, @SystemDir, @SW_HIDE) Â "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Link to comment Share on other sites More sharing options...
ssubirias3 Posted October 12, 2007 Share Posted October 12, 2007 Is there any autoit function that can call a url ... without opening a browser window? .... InetGet() ... doesn't seem to work.When I can't accomplish what I need with INetGet() I've been forced to use the IE.au3 functions. Have you looked at the Help file and the option settings for _IECreate()? This from the Help file.... $f_visible Optional: specifies whether the browser window will be visible 0 = Browser Window is hidden 1 = (Default) Browser Window is visible; ******************************************************* ; Example 5 - Create an invisible browser window, navigate to a website, ; retrieve some information and Quit ; ******************************************************* ; #include <IE.au3> $oIE = _IECreate ("http://sourceforge.net", 0, 0) ; Display the innerText on an element on the page with a name of "sfmarquee" $oMarquee = _IEGetObjByName ($oIE, "sfmarquee") MsgBox(0, "SourceForge Information", $oMarquee.innerText) _IEQuit ($oIE) Link to comment Share on other sites More sharing options...
weaponx Posted October 12, 2007 Share Posted October 12, 2007 Maybe try this: #include <INet.au3> _INetGetSource ("http://www.website.com/test/WriteForm.asp?u_input=Test") Basically sending the return value to null. Link to comment Share on other sites More sharing options...
ssubirias3 Posted October 12, 2007 Share Posted October 12, 2007 in flash i can use:getURL("WriteForm.asp?u_input=Test", "0", "POST");I haven't used OverloadUT's http UDF, but maybe this can help you? It can be found on this tread titled: HTTP UDF's, For downloading webpages and submitting POST requests Link to comment Share on other sites More sharing options...
random667 Posted October 12, 2007 Author Share Posted October 12, 2007 The asp page just writes the value of "u_input" to a text file on the server. Thanks for all the tips guys, I'll try them out. It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
random667 Posted October 12, 2007 Author Share Posted October 12, 2007 (edited) Ok, here is my finished script. it checks your machines ip address, and fit it changes, the new ip address is written to a text file on a server. I had been using a script that used blat.dll to email the ip address to me but due to some limitations it would no longer work. Thanks for the quick help. #include <Inet.au3> #include <GUIConstants.au3> Global $szLastIP = FileRead("ip.txt") Global $iCheckEvery = "5" Global $url="http://www.website.com/test/WriteForm.asp?u_input=" While 1 $szCurrentIP = _GetIP() $szLastIP = FileRead("ip.txt") If $szCurrentIP <> $szLastIP And $szCurrentIP <> -1 Then $szLastIP = $szCurrentIP FileDelete("ip.txt") FileWriteLine("ip.txt",$szCurrentIP) $IEInstance = Run(@ProgramFilesDir & "\Internet Explorer\Iexplore.exe " & $url&$szCurrentIP, @SystemDir, @SW_HIDE) Sleep(2000) ProcessClose($IEInstance) Sleep($iCheckEvery * 60000) EndIf WEnd Edited October 12, 2007 by random667 It is really sad to see a family torn apart by something as simple as a pack of wolves. 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