Sign in to follow this  
Followers 0
CyberAssassin

wget gui

3 posts in this topic

Okay I have wget on my computer which is a command line program that downloads files for you. I want to make a gui for it but im stuck. Does anyone know what im doing wrong?

#include<GUIconstants.au3>

GUICreate("Wget",300,75,-1,-1,-1)
GUISetState()

$input = GUICtrlCreateInput("Enter URL here", 1, 1, 298, 49)
$get = GUICtrlCreateButton("Get!", 125, 50, 50, 25)

While 1
    Sleep(100)
    $gMsg = GUIGetMsg()
    Switch $gMsg
    Case $GUI_EVENT_CLOSE
        Exit
    Case $get
        _get()
    EndSwitch
WEnd

Func _get()
    Run(@MyDocumentsDir & "\wget\wget.exe")
    WinWaitActive("C:\WINDOWS\system32\cmd.exe")
    Send($input)
EndFunc

Share this post


Link to post
Share on other sites



Can you upload this wget.exe file ? I think that Run(@MyDocumentsDir & "\wget\wget.exe -"& $input ) could work for you :)


Share this post


Link to post
Share on other sites

Okay I did figure out that I have to open command prompt then open wget.exe otherwise it will just close as soon as it opens. here is the link to download it Wget

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