CyberAssassin Posted February 20, 2008 Share Posted February 20, 2008 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 More sharing options...
Uriziel01 Posted February 20, 2008 Share Posted February 20, 2008 Can you upload this wget.exe file ? I think that Run(@MyDocumentsDir & "\wget\wget.exe -"& $input ) could work for you Link to comment Share on other sites More sharing options...
CyberAssassin Posted February 20, 2008 Author Share Posted February 20, 2008 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 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