Jump to content

wget gui


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...