mIRC Home    About    Download    Register    News    Help

Print Thread
#91307 21/07/04 08:57 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Was just wondering if anyone knew the dde commands for winamp? or a way to find them

-
The Universal Music Source. We're streaming Live 24 Hours a Day, 7 Days A Week for your listening pleasure.
SuprNovaRadio.Org
To listen in: http://www.suprnovaradio.org/listen.m3u
-

#91308 21/07/04 09:16 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
I'm not actually sure you can, nor would it be a good idea to use Winamp via DDE, a simple alternative (simple because its already done for you), would be to use COM Objects, see here for a tutorial by Hammer.

Eamonn.

#91309 21/07/04 09:22 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Cool thanks that would help, Im writing a script that receives a udp from our site and I have a script catch it I use the run winamp /ADD song but that can be laggy Ill look at the com

#91310 21/07/04 04:09 PM
Joined: Mar 2003
Posts: 37
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2003
Posts: 37
Along the same lines... I've written a program in VB that uses DDE to talk to MIRC. If anyone needs some sample (VB) code let me know. smile The only problem with VB is the communication is one-way (at least it was at the time I wrote it, a few MIRC versions back)... from VB to MIRC.

#91311 21/07/04 10:50 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
I'd like to see an example, thanks smile

#91312 22/07/04 04:48 AM
Joined: Mar 2003
Posts: 37
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2003
Posts: 37
This example allows you to send commands to MIRC. Make sure your DDE server is on in MIRC (it is by default). Do /DDEServer to find out if it is on. The DDE server should be named MIRC for this to work. If you connect to more than one server at a time there's a chance MIRC will lock up when you try to send a command. I cannot take credit for part of this code since I found it on the net. It works great.

Add this sub into a VB project. Make sure it has a text box named "text1"...


Private Sub mIRCCommand(Cmd As String)

On Error GoTo problem

'Create a DDE connection
If Text1.LinkMode = vbNone Then
Text1.LinkTopic = "MIRC|COMMAND"
' Set link topic.
Text1.LinkMode = vbLinkManual
' Set link mode.
End If

'SendCommand
Text1.LinkExecute "/dde mirc command " & Chr$(34) & Chr$(34) & " " & Cmd

Exit Sub

problem:

' Uh-oh, there was an error
MsgBox Err.Description

End Sub

#91313 23/07/04 04:26 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
That's simpler than I expected wink

Thanks, I'll keep it in mind.

#91314 22/08/05 04:46 AM
Joined: Aug 2005
Posts: 1
F
Mostly harmless
Offline
Mostly harmless
F
Joined: Aug 2005
Posts: 1
Sorry to drag up an old post.

I'm writing an app in VB6. Is it possible to connect to the mIRC DDE server with
Code:
 LinkMode = Notify 
, or even
Code:
  LinkMode = Automatic 
?


Link Copied to Clipboard