This script is for DesktopX Edit object, basically it's suppose to respond to pressing Enter.
For some reason when I run this VB script, it works
Sub Control_OnKeyPress(Key)
' if enter key is pressed
If Key = 13 Then
Control.Text = "1234"
End If
End Sub
However, when I try to do the same thing with JScript, there's no response
function Control_OnKeyPress(Key)
{
if( Key == 13 )
{
Control.Text = "1234";
}
}