Jump to content
Sign in to follow this  
Sundry

Run a console aplication problem

Recommended Posts

Sundry

I have a console aplication and a wana run on some gui child window

Func SomeGUI()

Local $hGUI, $iLabel1, $iLabel2, $iedit, $isend, $imemo

Local $rpath="some.exe)

$hGUI = GUICreate("First instance", 500, 400, -1, -1, $WS_SIZEBOX)

$iMemo = GUICtrlCreateEdit(Run($rpath), 0, 62, _WinAPI_GetClientWidth($hGUI), 400)

GUICtrlSetFont($iMemo, 9, 400, 0, "Courier New")

GUISetState()

EndFunc

if i use only Run($rpath,...) it give me no error (Result PID) but i dont see no my console run , i try with other commands like runas, shellexecute... ,run (Cmd.exe & my console), autoit example:

Run(@ComSpec & " /c " & 'commandName', "", @SW_maximize)

all have same execution it run my program (that i belive because i dont have error)but extit my program .

Don't wana response like try to compile it, or your programs is bad (Work fine on windows console)

Maybe someone can help me. Tnx Sundry

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.