Sign in to follow this  
Followers 0
NegativeNrG

help About inetget() and inetgetsize()

2 posts in this topic

hi again, im working on a downloader and i have an inputbox,3 buttons(download,abort,getsize) the user inputs the url of the file, and the user clicks getsize(to get the size of the file) and download.

heres my code.

#include <GUIConstants.au3>
;created with form designer
$Form1 = GUICreate("Downloader By NegativeNrG", 331, 230, 222, 144)
$Input1 = GUICtrlCreateInput("Input UrL", 48, 48, 249, 21, -1, $WS_EX_CLIENTEDGE)
$Label1 = GUICtrlCreateLabel("URL:", 16, 48, 29, 17)
$Button1 = GUICtrlCreateButton("Download", 24, 168, 75, 25)
$Button2 = GUICtrlCreateButton("Abort", 120, 168, 75, 25)
$Button3 = GUICtrlCreateButton("Get Size", 216, 168, 75, 25)
$Progress1 = GUICtrlCreateProgress(96, 128, 182, 17)
GUICtrlSetColor(-1, 0x0D0000)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE

        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd
Exit

i could use GUIctrlread($Input1) but i duno how to do inetget() to get the url from GUIctrlread().

Thanks


[size=20]My File Upload[/size]Register at my site and upload.

Share this post


Link to post
Share on other sites



You can use GuiCtrlRead as a parameter to InetGet

InetGet(GuiCtrlRead($Input1), $sFileName)

Share this post


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
Sign in to follow this  
Followers 0