Sign in to follow this  
Followers 0
maxrealqnx

software runer

2 posts in this topic

#1 ·  Posted (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_CLOSE

EndFunc

My code don't working :P

;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 :P

I'm thank you already for help :)

Edited by maxrealqnx

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This code working bye my friends :)

;My Code working

$msg = GUICtrlRead($n1)

ShellExecute($msg)

;My code end.

Edited by maxrealqnx

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