[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Win32 COM with Chicken?
From: |
Graham Fawcett |
Subject: |
[Chicken-users] Win32 COM with Chicken? |
Date: |
Mon, 2 May 2005 13:17:27 -0400 |
I wonder if anyone has implemented a general Win32 COM client module
for Chicken, or has some sample code that might be the basis for such
a module? I would like to be able to write something like:
;; launch instance of IE, navigate to a URL
(let
((msie (com-create-instance "InternetExplorer.Application"))
(target-url ("http://example.net/")))
(com-attribute-set! msie "Visible" #t)
(com-method-call msie "Navigate" target-url))
Or even better (a guy can dream, can't he?):
;; launch instance of IE, navigate, get the Document.Title
(let
((msie (com-create-instance "InternetExplorer.Application"))
(target-url ("http://example.net/")))
(com-attribute-set! msie "Visible" #t)
(com-method-call msie "Navigate" target-url)
(sleep-repeatedly-until (not (com-attribute-get msie "Busy")))
(print (com-attribute-get (com-attribute-get msie "Document")
"Title")))
(The second is more exciting because it requires more sophisticated
COM wrapping: (com-attribute-get msie "Document") would evaluate to a
COM VARIANT rather than a simple scalar.)
Sadly, I'm not a smart-enough Win32api programmer to roll my own.
Maybe that's a good thing. ;-) But any tips or suggestions (or code!)
would be very welcome.
Thanks,
-- Graham
- [Chicken-users] Win32 COM with Chicken?,
Graham Fawcett <=
- [Chicken-users] Problem with string-match?, Alejandro Forero Cuervo, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/04
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/05
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/06
- [Chicken-users] Return multiple values from foreign-lambda*, Alejandro Forero Cuervo, 2005/05/07