I tried to catch a keydown message on Agrahams webrowser control but it doesn't work!
My code:
B4X:
Sub App_Start
Form1.Show
web.New1("Form1",0,0,240,320)
dzem.New1(web.ControlRef,True)
dzem.Hook(256)
End Sub
Sub Form1_Close
dzem.UnHook(256)
End Sub
Sub dzem_MagicEvent
Msgbox()
End Sub
I don't get any error message but it doesn't work...
Sub App_Start
web.New1("Form1",0,0,240,100)
obj.New1(False)
obj.FromControl(web.ControlRef)
key.New1(False)
Event.New1(obj.Value,"KeyDown")
Form1.Show
End Sub
Sub event_NewEvent
key.Value=Event.Data
End Sub
I get an error message:
Exception has been thrown by the target of an innvocation.