Home

About

Promote

Links


Beginner's Guide

Illustrated Manual

Quick start

Third-Party Applications

Tips, Tricks & Secrets

Tutorials

XMPlay FAQ


Skins (134)

Visuals (113)

Native Input Plug-ins (28)

Winamp Input Plug-ins (38)

DSP Plug-ins (10)

Output Plug-ins (4)

Archive Reader (15)

Tag Editing Plugins (6)

External Encoders (6)

Other Add-ons (14)

XMPlay Archive (66)

Extra Tools
XMPlay DDE commands
by Thomas Radeke, 2011-08-23 18:37:00

Illustrated Manual - DDE interaction

This is a list of all DDE functions and their keys. Each command number needs to be prefixed by "key" - for example: "key2" = Minimize.

1 = Toggle mini mode
2 = Minimize
3 = Minimize to tray
4 = Reload skin
5 = Options and stuff
6 = Open files/URL
7 = Toggle on-top
8 = Toggle time display
9 = Toggle looping
10 = Close
11 = Close with position saved
12 = Open directory
13 = Open from clipboard
14 = Toggle info bubbles
15 = Close at end of track/list

512 = Volume up
513 = Volume down
514 = DSP - Amplification up
515 = DSP - Amplification down
516 = DSP - Equalizer on/off
517 = DSP - Reverb on/off
518 = DSP - Options
519 = DSP - Balance left
520 = DSP - Balance right
521 = DSP - Amplification reset
522 = DSP - Auto amplification
523 = DSP - Volume mute

256 = Info - Open/close window
257 = Info - General
258 = Info - Message
259 = Info - Samples
260 = Info - Visuals
261 = Info - Extended list
262 = Info - Scroll up
263 = Info - Scroll down
264 = Info - Copy to clipboard
265 = Info - Fullscreen visuals
266 = Info - Text size decrease
267 = Info - Text size increase

288 = MOD pattern - Scroll mode
289 = MOD pattern - Prev channel
290 = MOD pattern - Next channel
291 = MOD pattern - Mute channel
292 = MOD pattern - Unmute all
293 = MOD pattern - Invert all
296 = Toggle MOD playback mode
297 = MOD - Interpolation
298 = MOD - Ramping
299 = MOD - Surround sound

80 = Current track - Play/pause
81 = Current track - Stop
82 = Current track - Forward
83 = Current track - Back
84 = Current track - Restart
85 = Current track - Prev subsong
86 = Current track - Next subsong
87 = Current track - Plugin info
88 = Current track - Tray title bubble
89 = Current track - Plugin info
90 = Current track - Stop at end
112 = Current track - Rating - none
113 = Current track - Rating - 1
114 = Current track - Rating - 2
115 = Current track - Rating - 3
116 = Current track - Rating - 4
117 = Current track - Rating - 5
118 = Current track - Rating - down
119 = Current track - Rating - up
120 = Current track - Rating - show

128 = Change track - Next
129 = Change track - Previous
130 = Change track - Random

320 = List sort - Shuffle
321 = List sort - Title
322 = List sort - Filename
323 = List sort - Extension
324 = List sort - Reverse
325 = List sort - Selected to top
326 = List sort - Tag - Title
327 = List sort - Tag - Artist
328 = List sort - Tag - Album
329 = List sort - Tag - Year
330 = List sort - Tag - Track
331 = List sort - Tag - Genre
332 = List sort - Tag - Comment
333 = List sort - Rating

336 = List nav - Up
337 = List nav - Down
338 = List nav - Page up
339 = List nav - Page down
340 = List nav - Jump to current
341 = List nav - Select all
342 = List nav - Invert selection
343 = List nav - Select dead
344 = List nav - Select extend up
345 = List nav - Select extend down
346 = List nav - Top
347 = List nav - Bottom
352 = List nav - Find
353 = List nav - Find next
354 = List nav - Find previous
355 = List nav - Find all
356 = List nav - Find quick
416 = List nav - Select same title
417 = List nav - Select same artist
418 = List nav - Select same album
419 = List nav - Select same year
420 = List nav - Select same track
421 = List nav - Select same genre
422 = List nav - Select same comment
423 = List nav - Select same type
424 = List nav - Select same path

368 = List - Add files/URL
369 = List - Add directory
370 = List - Remove
371 = List - Remove & delete file
372 = List - Play
373 = List - Toggle skipping
374 = List - Toggle queuing
375 = List - Clear queue
376 = List - Plugin info
377 = List - Filenames in ext. list
378 = List - Save
379 = List - Show queue in list
380 = List - Auto advance
381 = List - Add from clipboard
400 = List - Undo

382 = List track - Dequeue
384 = List track - Add to/from library
385 = List track - Plugin info
120 = List track - Rating - none
121 = List track - Rating - 1
122 = List track - Rating - 2
123 = List track - Rating - 3
124 = List track - Rating - 4
125 = List track - Rating - 5
126 = List track - Rating - down
127 = List track - Rating - up

96 = Plugin & Skins
97 = Plugins - DSP / general
313 = Toggle random play order
592 = Saved settings - Options
593 = Saved settings - Load current
608 = Info - Library (replaced "Recent tracks list")
624 = Device options

640 = Bookmark - Set
641 = Bookmark - Resume
642 = Bookmark - Resume after queue

Code Example

Here's a quick guide to making DDE work with XMPlay and VB6. (Thanks to BoggyB)

Create a new VB project, and dump two text boxes and a pair of command buttons on the form. Do whatever you like to them, but you'll want to make Text2 reasonably large with MultiLine enabled.

Add the following code to the form (changing the names if you changed them):

Private Sub Command1_Click()
' Use this one to retrieve data, e.g. infox topics

Text2.LinkTopic = "XMPlay|" & Text1.Text ' Init link topic
Text2.LinkMode = 2 ' Open connection
Text2.LinkRequest ' Grab data
Text2.LinkMode = 0 ' Close connecton
'''' EDIT: remove next line if you get a blank line between every line ''''
Text2 = Replace(Text2, vbLf, vbCrLf) ' Reformat string as textbox needs CRLF
End Sub

Private Sub Command2_Click()
' Use this one to execute a function, e.g. keyxxx topics or playlist manipulation

Text2.LinkTopic = "XMPlay|XMPlay" ' Init link topic. The second part (after the '|') doesn't appear to matter but must not be empty.
Text2.LinkMode = 2 ' Open connection
Text2.LinkExecute Text1.Text ' Execute function
Text2.LinkMode = 0 ' Close connection
End Sub

Hit F5 and enjoy! Use the first button for things like info0-2 (General, Message and Samples windows), and the second one things like the key codes provided above.