mIRC Home    About    Download    Register    News    Help

Print Thread
#24665 17/05/03 08:50 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
i know that $dde is exist but i want that if one parameter is spcified and it's a number so it will return the Nth dde server
so i can know the dde servers on my computer
0 - total dde servers

#24666 17/05/03 05:11 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I'm not too familiar with DDE programming, but I don't believe such a feature can exist. I don't think Windows gives applications a list of the running DDE servers. I quickly looked through the DDE function list, and I didn't see anything that would do this.

#24667 18/05/03 11:04 AM
Joined: Dec 2002
Posts: 44
P
Ameglian cow
Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 44
I think it can.

I don't know the specifics, but the DDE package for Tcl on windows, provides a method of obtaining the currently running DDE servers.

I started using Tcl to make external mIRC interfacing aplications, but gave up when I found that Tcl for windows is crash prone like most other ports using cygwin.

However, at the time, I was able to run 15 copies of mIRC. Each one called a external Tcl application, to find out what DDE name it should use. Tcl would look at the currebntly looking servers, and pick a name and return it. From then on, Tcl could mass address a list of mIRC servers.

The Tcl isn't needed anymore, seeing as mIRC now has native multi-server support.


Suck it, lick it, milk it then put it away.
#24668 19/05/03 07:12 AM
Joined: Feb 2003
Posts: 309
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
I saw a pretty old application that did it on MSDN (it was 16 bit)... lemmie find the link

I htink this is it:
http://msdn.microsoft.com/library/default.asp?URL=/library/techart/msdn_rawdde.htm

Ok, well its not. mIRC now allows you to play with SendMessage, or a DLL coder could prolly whip somehting up from the similar ARTICLES found there...


Me? I'm too lazy to learn VC++ 6 well enough

#24669 21/05/03 05:15 AM
Joined: Jan 2003
Posts: 154
B
Vogon poet
Offline
Vogon poet
B
Joined: Jan 2003
Posts: 154
As a simple workaround, wouldn't it be possible to just make any mIRC DDE server add itself to a list that's stored somewhere in a person's registry? then when you run $dde(0), it just reads the info from the registry and returns the appropriate value.

It could even use a simple .ini file that's temporarily stored in 'c:\temp\'. This file would be deleted when the last mIRC DDE server is shut down.


- Wherever you go there you are.[color:lightgreen]
#24670 22/05/03 10:34 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Could be useful to detect rogue instances of mIRC running, eg. pre-packaged scripts or hidden trojan copies. This would have been much more useful before multi-server support was added.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#24671 24/05/03 03:20 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Maybe the suggestion was in order to find other, unknown DDE servers, not only other copies of mIRC. wink


Link Copied to Clipboard