Jump to content

Event handler for MemoBox ?


crismar

Recommended Posts

Is there a event handler for MemoBox that gets triggered when someone types in it ?

Something like 'onMemoBoxType' ? Searched but couldn't find any, would be usefull for my script since I want to count characters and I'm using a timer at the moment, though I think it'd be more professional to use a event handler for it.

Also, another question, does LUA have a function like PHP to shrink a string ? More exactly, say I have a 300 characters long string. In PHP you could substr(string, 100) to get first characters and so on.

In short I'm develping a report panel and I want to limit it's characters to 300 (did that already), but I want to output it in chatbox in sequences of 100 characters. Could you tell me the function ?

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...