Glyph Posted February 12, 2007 Share Posted February 12, 2007 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) $oHTTP.Send() $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) ;Wend Func _Getvar1() $oHTTP.Responsetext EndFunc Func _Getvar2() $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", "http://www.bsed.somee.com/T2T/Download2.txt", @SW_HIDE) $oHTTP.Send() $oHTTP.Responsetext EndFunc ...? tolle indicium Link to comment Share on other sites More sharing options...
MHz Posted February 12, 2007 Share Posted February 12, 2007 If I understand your script correctly, then you are just getting the return value from the function. $return = function() func function() return 5 endfunc $return = 5 Link to comment Share on other sites More sharing options...
Glyph Posted February 13, 2007 Author Share Posted February 13, 2007 I need it to not download a file if it finds certain text in a text file will not download thus eliminated continuous downloads in a loop., any help?? tolle indicium 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