Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > General Talk And Support

General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players.

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 15th November 2003
Posts: n/a
Default Interaction between Perl and BSPlayer?

I'm currently trying to get the currently played filename from BSPlayer using a Perl script.

Did anybody successfully do this?

I don't know how to do a SendMessage with WM_COPYDATA. The simple ones like e.g. getting the movie length work fine, but this looks quite complex...
Reply With Quote
  #2 (permalink)  
Old 10th May 2012
Junior Member
BS.Player Newbie
Join Date: May 2012
Age: 33
Posts: 1
Rep Power: 0
Xetamus is on a distinguished road

I know this is a super old file, but I have been racking my brain over this for a few days. I have been trying to get GetFileName to work with Perl and I cannot do it for the life of me.

I referenced this site: Snarl with Perl on Microsoft Windows which had done something similar, but still to no avail.

Here is my current code, it returns a 1 from the SendMessage command but I can't actually pull the filename from anywhere:

my $cmd = Win32::GUI::GetActiveWindow();
my $buf = pack('a260');
my $cds = pack('L2P', BSP_GetFileNameW(), 4, $buf);
my $file_name = Win32::GUI::SendMessage($bsp_hand, $WM_COPYDATA, $cmd, $cds);
I'm running Win7 x64 and ActivePerl 5.14.2 (x86) and I'm beginning to suspect the difference in 32 and 64 bit may be causing some problems too. Any help anyone could provide would be awesome, thanks!
Reply With Quote

interaction, perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

LinkBacks (?)
LinkBack to this Thread:
Posted By For Type Date
Medya, film, YouTube, video, AVCHD ve divx oynatıcısı, ücretsiz oynatıcı - This thread Refback 15th May 2012 08:47 PM
Медиаплеер, плеер для фильмов, плеер YouTube, видеоплеер, плеер AVCHD, плеер divx, бесплатный плеер - This thread Refback 11th May 2012 09:07 AM

All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20