Old 23rd November 2005, 05:30   #1
Zaxon
Junior Member
 
Join Date: Nov 2005
Posts: 2
Jump to time via the API

Is there a command to jump to a specifiable time within a file directly from the API?

There's only references to opening the jump to time window in the API resources I've read, which is a rather less than professional way of automating something.
Zaxon is offline   Reply With Quote
Old 23rd November 2005, 13:02   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
code:
#define IPC_JUMPTOTIME 106
/* (requires Winamp 1.60+)
** SendMessage(hwnd_winamp,WM_WA_IPC,ms,IPC_JUMPTOTIME);
** IPC_JUMPTOTIME sets the position in milliseconds of the
** current song (approximately).
** Returns -1 if not playing, 1 on eof, or 0 if successful
*/

-daz
DrO is offline   Reply With Quote
Old 23rd November 2005, 14:13   #3
Zaxon
Junior Member
 
Join Date: Nov 2005
Posts: 2
Quote:
Originally posted by DrO
code:
#define IPC_JUMPTOTIME 106
/* (requires Winamp 1.60+)
** SendMessage(hwnd_winamp,WM_WA_IPC,ms,IPC_JUMPTOTIME);
** IPC_JUMPTOTIME sets the position in milliseconds of the
** current song (approximately).
** Returns -1 if not playing, 1 on eof, or 0 if successful
*/

-daz
Perfect! Works well. Plus the keywords in the script gave me the ability to look up some other functionality in the forum.

Thanks.
Zaxon is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump