Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   Bug Reports And Codecs (http://forum.bsplayer.com/forumdisplay.php?f=10)
-   -   SDK 1.1 (1.0.800) Bugs (http://forum.bsplayer.com/showthread.php?t=2982)

giubbe 11th November 2003 03:40 PM

SDK 1.1 (1.0.800) Bugs
 
The result of BSP_GETVERSION is always- 1

The command BSP_Exit doesn't work

I have not checked the others.

Bye, Giubbe

bst 12th November 2003 06:09 PM

Hmm this should work.
Could you post some example code ?

giubbe 13th November 2003 06:48 PM

I apologize, I mistake

The BSP_GETVERSION works, I had send the wrong command

The BSP_Exit works only if the filmed is on play

The following code works well in 0.86.501, but not in 1.0.800 (not exit)

repeat
hWnd2 := FindWindow('BSPlayer',nil);
Application.ProcessMessages;
if Time - Te > 1/24/60 then begin
TempoOK:=false;
hWnd2:=1;
end;
until hWnd2<>0;
if tempoOK then begin
Ver := SendMessage(hWnd2, WM_BSP_CMD, BSP_GETVERSION, 0);
SendMessage(hWnd2, WM_BSP_CMD, BSP_Play, 0);
SendMessage(hWnd2, WM_BSP_CMD, BSP_Exit, 0);
end

This you instead work well in both the versions

repeat
hWnd2 := FindWindow('BSPlayer',nil);
Application.ProcessMessages;
if Time - Te > 1/24/60 then begin
TempoOK:=false;
hWnd2:=1;
end;
until hWnd2<>0;
if tempoOK then begin
Ver := SendMessage(hWnd2, WM_BSP_CMD, BSP_GETVERSION, 0);
showMessage(IntToStr(ver));
SendMessage(hWnd2, WM_BSP_CMD, BSP_Play, 0);
SendMessage(hWnd2, WM_BSP_CMD, BSP_Exit, 0);
end


This code starts the Chapter Cap with 0.86.501 and the chapter Cap-1 in 1.0.800

for t:=1 to Cap do SendMessage(bsp_hand,WM_BSP_CMD,BSP_NextCh,0);


All times are GMT +1. The time now is 09:14 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, 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