unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Calling COM object from lisp
@ 2002-11-14 17:42 Peter Lee
  2002-11-15  7:52 ` Syver Enstad
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Lee @ 2002-11-14 17:42 UTC (permalink / raw)


Is it possible ?  If so where can I find a sample of instantiating and using an
object from lisp.

TIA.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Calling COM object from lisp
  2002-11-14 17:42 Calling COM object from lisp Peter Lee
@ 2002-11-15  7:52 ` Syver Enstad
  2002-11-19 16:03   ` Peter Lee
  0 siblings, 1 reply; 3+ messages in thread
From: Syver Enstad @ 2002-11-15  7:52 UTC (permalink / raw)


Peter Lee <pete_lee@swbell.net> writes:

> Is it possible ?  If so where can I find a sample of instantiating and
> using an
> 
> object from lisp.

I would advice you to use Python and Pymacs for that. Pymacs is an
extension for scripting emacs with Python. win32all is a collection of
Python packages and modules to work with various win32 based
technologies. Pymacs is very easy to work with and makes it a snap to
call Python from lisp.

Example:

Lisp:
Somwhere in .emacs (or another init file)
(pymacs-load "mymodule" "mymodule-") 

In your source.
(mymodule-call-com-object param1 param2)


Python:
In module mymodule.py

from win32com.client import Dispatch
def call_com_object(param1, param2):
    obj = Dispatch('InternetExplorer.Application')
    obj.Navigate('http://www.python.org')

-- 

Vennlig hilsen 

Syver Enstad

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Calling COM object from lisp
  2002-11-15  7:52 ` Syver Enstad
@ 2002-11-19 16:03   ` Peter Lee
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Lee @ 2002-11-19 16:03 UTC (permalink / raw)


Syver Enstad <syver-en+usenet@online.no> writes:
> I would advice you to use Python and Pymacs for that. Pymacs is an
> extension for scripting emacs with Python. win32all is a collection of
> Python packages and modules to work with various win32 based
> technologies. Pymacs is very easy to work with and makes it a snap to
> call Python from lisp.

I will try that... thanks Syver.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-19 16:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-14 17:42 Calling COM object from lisp Peter Lee
2002-11-15  7:52 ` Syver Enstad
2002-11-19 16:03   ` Peter Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).