• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2441
  • Last Modified:

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
0
Face0
Asked:
Face0
1 Solution
 
sh0eCommented:
in what particular context?
javascript itself does not have a direct interface for dde communication
0
 
Face0Author Commented:
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.
0
 
mortenmoCommented:
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);
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
sh0eCommented:
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
0
 
Face0Author Commented:
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?
0
 
Face0Author Commented:
BTW: I do not use VB, so I don't feel comfortable using that ddclient :/.
0
 
jaysolomonCommented:
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
0
 
Computer101Commented:
PAQed, with points refunded (50)

Computer101
E-E Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now