You code it instead:
code:
var MaxLength = 100;
function On<YOUR_EDIT_ID_HERE>Event_EditTextChanged(PlusWnd, ControlId)
{
var Text = PlusWnd.GetControlText(ControlId);
if(Text.length > MaxLength)
{
PlusWnd.SetControlText(ControlId, Text.substr(0, MaxLength));
}
}
I havn't tried it but I think it should work. If it doesn't, I hope you get the idea.
Edit: if you want to add a beep you could use this function.
code:
function Beep(frequency, duration)
{
Interop.Call("Kernel32.dll", "Beep", frequency, duration);
}