From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Syver Enstad Newsgroups: gmane.emacs.help Subject: Re: Calling COM object from lisp Date: 15 Nov 2002 08:52:29 +0100 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037348108 27404 80.91.224.249 (15 Nov 2002 08:15:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 08:15:08 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Cbd5-00077a-00 for ; Fri, 15 Nov 2002 09:15:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CbXY-0007LI-00; Fri, 15 Nov 2002 03:09:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!news4.e.nsc.no.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 80.213.15.132 Original-X-Complaints-To: news-abuse@telenor.net Original-NNTP-Posting-Date: Fri, 15 Nov 2002 08:52:37 MET Original-X-Trace: news4.ulv.nextra.no 1037346757 80.213.15.132 Original-Xref: shelby.stanford.edu gnu.emacs.help:107073 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3626 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3626 Peter Lee 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