Jump to content

Can you declare a function in a....

Recommended Posts

Is it possible to declare a function inside of a variable?

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET", "http://www.bsed.somee.com/T2T/Download1.txt", @SW_HIDE)
$Variable1 = _Getvar1()
$Variable2 = _Getvar2()

MsgBox(0,"test","read: "&$Variable1&" "&$Variable2)
;InetGet(""&$variable1, ""&$variable2, 1, 1)
;While @InetGetActive
 ; TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
 ; Sleep(250)
Func _Getvar1()

Func _Getvar2()
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET", "http://www.bsed.somee.com/T2T/Download2.txt", @SW_HIDE)


tolle indicium

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...