ThomasAnderson
08-28-2008, 12:54 PM
K i made a program wich works with rich text.
When u type for ex. /ams it openes AMS software, if u type /firefox it openes mozilla firefox etc.
The code:
if(e_Key==13)then
sCommand=RichText.GetText(this, false);
sCommand=String.Replace(sCommand, "\r\n", "", false);
if(sCommand=="/firefox")then
File.Open("C:\\Program Files\\Mozilla Firefox\firefox.exe", "", SW_SHOWNORMAL);
end
RichText.SetText(this, "", false);
end
So now i want to make it with 2 rich texts
So in RichText1 u need to type the command for ex. /firefox and press enter
Then in RichText2 it will show Firefox has loaded. Please wait.
Then when i type ex. /ams
In RichText2 it will show the message AutoPlay Media Studio has loaded.
Also when someone types a unknown command i wanna make it say @ RichText2 ex. Unkown Command please type /help for commands.
Thanks in advance.
When u type for ex. /ams it openes AMS software, if u type /firefox it openes mozilla firefox etc.
The code:
if(e_Key==13)then
sCommand=RichText.GetText(this, false);
sCommand=String.Replace(sCommand, "\r\n", "", false);
if(sCommand=="/firefox")then
File.Open("C:\\Program Files\\Mozilla Firefox\firefox.exe", "", SW_SHOWNORMAL);
end
RichText.SetText(this, "", false);
end
So now i want to make it with 2 rich texts
So in RichText1 u need to type the command for ex. /firefox and press enter
Then in RichText2 it will show Firefox has loaded. Please wait.
Then when i type ex. /ams
In RichText2 it will show the message AutoPlay Media Studio has loaded.
Also when someone types a unknown command i wanna make it say @ RichText2 ex. Unkown Command please type /help for commands.
Thanks in advance.