Jump to content

Recommended Posts

Posted

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.

Posted

#include <IE.au3>

_IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 0 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] )

Just call it invisible? :-/

Posted (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 by random667

It is really sad to see a family torn apart by something as simple as a pack of wolves.

Posted

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

Posted

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

Maybe try this:

#include <INet.au3>

_INetGetSource ("http://www.website.com/test/WriteForm.asp?u_input=Test")

Basically sending the return value to null.

Posted

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.

Posted (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 by random667

It is really sad to see a family torn apart by something as simple as a pack of wolves.

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