Jump to content
Student_coder

Include CMD in the UI

Recommended Posts

Student_coder
Quote
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
GUISetBkColor(0xFFFFFF)
$load = GUICtrlCreateButton("LOAD", 80, 80, 75, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Times New Roman")
$CREATE = GUICtrlCreateButton("CREATE", 416, 80, 75, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Times New Roman")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

I want to insert cmd to the bottom part of this UI. Can anyone guide me.

 

Edited by Student_coder

Share this post


Link to post
Share on other sites
Jules

Hello,

I don't think there is an AutoIt command line prompt widget.

However, you can still insert an Input, and then use the Run() function to execute the command the user has typed.

 

Share this post


Link to post
Share on other sites
Student_coder

@Jules -

Hi ,

But if we use Run command it will run in another window na. I want it in same UI.

Thanks

Share this post


Link to post
Share on other sites
VIP

See eg:

 

 


Regards,
 

Share this post


Link to post
Share on other sites
TheDcoder

There is a function which does this in my Process UDF (link in my signature below), Run the example.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

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

×