dzEventsMagic and WebBrowser

pdabasic

Active Member
Licensed User
Hy!

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...

Any idea?
:sign0085:
 

pdabasic

Active Member
Licensed User
with Door it doesnt work too :(

B4X:
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.

:sign0163:
 

pdabasic

Active Member
Licensed User
Hello Agraham!

The error message is:

Event KeyDown is not valid on this ActiveX control


But that I know the webbrowser control have an keydown event?!
:sign0161:
 
Top