473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Sending data from one application to another

Hello,

I'm trying to figure out how I would send data (most likely a string) from a script (written in python) to a program on windows xp.

I posted this here instead of the python forum because its not really to do with python, more to do with windows. How do two completely unrelated applications talk to eachother? What would I need to know in one application to find the other application? Does anyone have a link to where I could learn more about the mechanics of what I'm asking?

(Also, I tried searching google, but without knowing what im trying to do is actually called, its kinda hard.)

Thanks

EDIT:
some information in case it helps:
Python version: 2.5.1
Windows XP service pack 2, pro
target program: http://www.icechat.net
Nov 12 '07 #1
4 2292
bartonc
6,596 Expert 4TB
What you need to know about the target application is:
Does this application expose a COM interface?

Many Windows applications register a COM (Component Object Model) server which your Python program may become a "client" of. This is the most common technique for intra-app communications. If you have Windows development tools installed on your machine, the OLE-COM Object Viewer comes in very handy for finding the needed info. The PyhtonWin (not sure if that's installed by default when you install Python) program also has a COM Browser and MakePy utility that may shed some light on the subject.

There is also a shared memory interface used by some. I'll try to dig up the name of that one.
Nov 12 '07 #2
bartonc
6,596 Expert 4TB
What you need to know about the target application is:
Does this application expose a COM interface?

Many Windows applications register a COM (Component Object Model) server which your Python program may become a "client" of. This is the most common technique for intra-app communications. If you have Windows development tools installed on your machine, the OLE-COM Object Viewer comes in very handy for finding the needed info. The PyhtonWin (not sure if that's installed by default when you install Python) program also has a COM Browser and MakePy utility that may shed some light on the subject.

There is also a shared memory interface used by some. I'll try to dig up the name of that one.
Other IPC methods are list in Microsoft's Interprocess Communications.
Nov 12 '07 #3
Thanks for your help,

I went and asked the developer of icechat about COM and he told me I could use DDE to connect to it, and now I have access to the scripting engine within it via the python dde module.
Nov 12 '07 #4
bartonc
6,596 Expert 4TB
Thanks for your help,

I went and asked the developer of icechat about COM and he told me I could use DDE to connect to it, and now I have access to the scripting engine within it via the python dde module.
That module is in the PythonWin installation. If you don't already have that, it's on sourceforge. The DDE docs are very limited. You'll need to rely on Microsoft docs and translate by experimentation. ActivePython has some, but the installed help is easier to search.

Hope that helps.
Nov 12 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Zaidan | last post by:
I am running Excel2000 under WIN98 2nd edition, and I am writing a VBA code (I will consider using javascript if I have to) that does the following, at the user command: 1- Start MS Explorer and...
1
by: VM | last post by:
Where can I get information on building a web application that can send, via the Web, a text message to a portable device or another computer? And where can I get information on sending the same...
4
by: Winston Nimchan | last post by:
Hi: I'm currently developing a socket application and would like to precede the data being sent with a 4 byte message length header (bin4). Can anyone help Regards Winston
9
by: Sandy | last post by:
can mfc application, send text data to opened notepad file in desktop?(live transfer of data) . can anybody help
4
by: Christina N | last post by:
What is the easiest way to make an ASP.Net application send data to another web-app? For instance I would like APP3 to log user stats from APP1 and APP2. The applications are located on different...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
9
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
0
by: Andrea | last post by:
Hi I've having a very strange problem using the SendInput API to send text to other applications. I've written the code and it seems to work well. I discovered a strange problem: when I try to...
0
by: danishce | last post by:
Hello All: I am developing a client/server application using vb.net winsock programming. I am sending data to Server and at the same time receive the incoming data from the server. My application...
31
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.