Link to home
Start Free TrialLog in
Avatar of Face0
Face0

asked on

DDE with JavaScript.

Hello, my question isn't very long or anything, but I just would like to know if it is possible to make use of DDE commands (namely CTYP_POKE) using JavaScript?  If so, how do I o about doing this?
Thank you.

---Face
Avatar of sh0e
sh0e

in what particular context?
javascript itself does not have a direct interface for dde communication
Avatar of Face0

ASKER

Well, first of all, I'd just be using it locally on my computer.  Basically what I want to be able to do is be able to click a button or something and have it send a a CTYP_POKE DDE message to my mIRC client (mIRC is well-outfitted for use with DDE).  I would think that there would be some kind of active-x control or something i could use to achieve this.
Here is an example opening Excell using ActiveX.. Hopefully this helps.. Dont know much about what mIRC can do..

var x = new ActiveXObject('Excel.Application');
x.visible = true;
x.Application.Workbooks.Open("C:\\sp.xls");
alert("cell(1,1)== " + x.Application.Workbooks(1).Cells(1, 1).Value);
morten:
thats an active-x interface.. loading excel as an object


of course you could make your own active-x control and then call it to do your dde stuff
heres some visual basic code that shows how to use dde..  put functions for sending dde commands..
then create a new activexobject of the control u made and call the functions from it
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4550&lngWId=1

theres a (quite expensive) non-free active-x control available here:
http://www.angelfire.com/biz/rhaminisys/ddclient.html
that you could use also
Avatar of Face0

ASKER

sh0e, are you saying that I could make a c++ script that utilizes DDE and make it an activeX object?  I didn't know that you could do that, as I know next-to-nothing about ActiveX, could you please explain how I could do this?
Avatar of Face0

ASKER

BTW: I do not use VB, so I don't feel comfortable using that ddclient :/.
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ with points refunded

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jAy
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial