Place in a key press event or create event to see it work.
par = get_string('','');
//Just a test command to check if custom messages would work. Success
if(string_pos('msg ',par)=1){
text1 = string_replace(par,'msg ','')
if(!string_pos('"',text1)=0){
text2 =string_replace_all(text1,'"','')
text3 = text2;
show_message(text3);
}
else{
show_message('Not a valid string command!')
}
}
//Show help
if(string_pos('help ',par)=1){
text1 = string_replace(par,'help ','')
text3 = text1;
if(text3 = 'msg'){
show_message("msg: Show a message box with the given text. Must be in string form.");
}
else{
show_message('Not a valid function!')
}
}
When the string box appears, type
msg "Hello World" //Will show a message box with the text "hello world" help msg //Will show a message box with a description of what the function "msg" does
Enjoy!
Edited by HelpMyFellowPeople, 16 July 2012 - 07:58 AM.











