I making a project that includes giving commands
There are 2 inputs
I wanna make it when someone enters a unknown command it will show
Unknown Command at Input1
Code:
Input2 is the place where u write commands and Input1 is the place where it shows the text like this for ex: The program will now minimize or what ever.Code:if(e_Key==13)then sCommand=Input.GetText(this); sCommand=String.Replace(sCommand, "\r\n", "", false); if(sCommand=="minimize")then Input.SetText("Input1", "The program will now minimize"); Application.Minimize(); Input.SetText("Input2", ""); end end
Thanks in advance.

Reply With Quote
.
