Glyph 2 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 Share this post Link to post Share on other sites
MHz 80 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 Share this post Link to post Share on other sites
Glyph 2 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 Share this post Link to post Share on other sites