Jump to content

GetUrl() ?


Recommended Posts

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

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

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...