Director Api

All other topics about Ventuz Director here.

Re: Director Api

Postby mofo7777 » 12 Dec 2014, 12:54

Hello.

Yes it seems to work.

Another question. The plugin loose focus when Director application takes focus. I need to get all keydown event, even if plugin doesn't have focus. I'm searching for some kind of AddHandler or other technique, but for now i can't figure out on how to do this, because of the nature of the plugin. Any idea ?
mofo7777
 
Posts: 53
Joined: 24 Oct 2012, 15:03

Re: Director Api

Postby Alex Klein » 12 Dec 2014, 13:28

Haven't checked but you should be able to access the main window via App.Current.MainWindow or something like that and register a handler there. You might want to consider registering for preview key events instead of the normal key events because that will guarantee you get all keys, even those which the mainwindow decided to take first. Otherwise it could be that the already registered handlers on the mainwindow will grab the key press before your handler gets called... but not sure, just something to consider...
Alex Klein
 

Re: Director Api

Postby mofo7777 » 12 Dec 2014, 16:31

Thank you.

I was thinking that Application.Current.MainWindow would return the plugin handle, not the director handle. This solution seems to work.
mofo7777
 
Posts: 53
Joined: 24 Oct 2012, 15:03

Previous

Return to General Discussion

cron