WM_COPYDATA with current file/folder

Feature requests for VLC.
briantokyo
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Feb 2008 04:34

WM_COPYDATA with current file/folder

Postby briantokyo » 17 Jul 2008 17:11

It would be nice if you could add a message (unless there's one already? couldn't find any info about it) to return the full path+filename of the file that's currently playing.

Thanks

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: WM_COPYDATA with current file/folder

Postby VLC_help » 18 Jul 2008 15:28

You want to peak it from another program?

briantokyo
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Feb 2008 04:34

Re: WM_COPYDATA with current file/folder

Postby briantokyo » 18 Jul 2008 15:59

Yes

I can already retrieve the filename through various methods, but knowing also the path would help with some features of my program.
I thought of retrieving the device and file handles associated with the process through NTQuerySystemInformation, but when requested from
a 32-bit process (my app) in a 64-bit OS, it won't work.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: WM_COPYDATA with current file/folder

Postby VLC_help » 19 Jul 2008 16:14

Ii you want, you might want to write a notify module (use msn.c as basecode). I think the path is included in somewhere, because it was reported as bug earlier.
viewtopic.php?f=7&t=40095

http://www.google.com/codesearch?hl=en& ... misc/msn.c

I am not sure if the fix was MSN plugin only or some other change.

briantokyo
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Feb 2008 04:34

Re: WM_COPYDATA with current file/folder

Postby briantokyo » 19 Jul 2008 16:45

That could work, I could make a unique window class to send the message to, but this has 2 problems:
- it would require people enabling the new module
- the message would only be sent when a new video has been launched. my app can be run after that so it wouldn't catch the message.

VLC already supports various commands through messages, so it would be just adding another to retrieve the current media

briantokyo
Blank Cone
Blank Cone
Posts: 13
Joined: 21 Feb 2008 04:34

Re: WM_COPYDATA with current file/folder

Postby briantokyo » 14 May 2010 07:02

Has this been added recently? My old methods to retrieve current media no longer work with latest versions.

NTQuerySystemInformation only works if you are on 32-bit windows
Retrieving the tittle from statusbar no longer works through conventional methods since you changed the interface apis from wx
Retrieving the title from titlebar is also wrong, since when you go full-screen the tittle is changed to "VLC (Direct3D Output)" (even the statusbar on the interface is changed to this..)

Is it too much to ask to include a message for this? : (

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: WM_COPYDATA with current file/folder

Postby Jean-Baptiste Kempf » 15 May 2010 00:03

Provide a patch :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 10 guests