ThomasAnderson
10-18-2008, 11:38 AM
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:
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
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.
Thanks in advance.
There are 2 inputs
I wanna make it when someone enters a unknown command it will show
Unknown Command at Input1
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
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.
Thanks in advance.