Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
object.New1(false)
object.FromControl("textbox1")
event.New1(object.Value,"KeyDown")
End Sub
Sub event_NewEvent
object.Value = event.Data
keys = object.GetProperty("Modifiers")
If StrIndexOf("Alt",keys,0) > -1 Then 'handle alt
form1.Text = "alt"
End If
If StrIndexOf("Shift",keys,0) > -1 Then 'handle shift
form1.Text = "shift"
End If
If StrIndexOf("Control",keys,0) > -1 Then 'handle alt
form1.Text = "control"
End If
End Sub