maxrealqnx Posted June 29, 2008 Share Posted June 29, 2008 (edited) CODE#include <GUIConstantsEx.au3>Opt('MustDeclareVars', 1)Example()Func Example() Local $n1, $n2, $msg GUICreate("My GUICtrlRead") $n1 = GUICtrlCreateList("CMD", 10, 10, -1, 100) GUICtrlSetData(-1, "MsPaint|NotePad|Regedit", "NotePad") $n2 = GUICtrlCreateButton("Run", 10, 110, 50) GUICtrlSetState(-1, $GUI_FOCUS) GUISetState() Do $msg = GUIGetMsg() If $msg = $n2 Then ;My Code :/ not working GUICtrlRead($n1) Run $n1 ;My code end. ;;MsgBox(0, "Selected listbox entry", GUICtrlRead($n1)) ; display the selected listbox entry EndIf Until $msg = $GUI_EVENT_CLOSEEndFunc My code don't working ;My Code :/ not working GUICtrlRead($n1) Run $n1 ;My code end.Runer isn't working the part What must I do ?I don't understand more than the script please help me I'm thank you already for help Edited June 29, 2008 by maxrealqnx Visit My Website Link to comment Share on other sites More sharing options...
maxrealqnx Posted June 29, 2008 Author Share Posted June 29, 2008 (edited) This code working bye my friends ;My Code working$msg = GUICtrlRead($n1)ShellExecute($msg);My code end. Edited June 29, 2008 by maxrealqnx Visit My Website 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