World: r3wp
[Windows/COM Support]
older newer | first last |
Anton 30-Jun-2006 [206] | Should make this group web-public. Any objections ? |
Graham 30-Jun-2006 [207] | no objections |
Anton 30-Jun-2006 [208] | I don't think there's anything in this group that anyone would be offended by publishing... |
Robert 30-Jun-2006 [209] | Anton, cool stuff. Thanks for doing it. |
Anton 30-Jun-2006 [210] | It's good to finally publish. |
Terry 1-Jul-2006 [211] | Any non-ms office demos? |
Graham 1-Jul-2006 [212] | skype is not ms office |
Anton 2-Jul-2006 [213x2] | Terry, how about MSScriptControl.r. Were you thinking of anything in particular? |
haa.. just got FOR_EACH working. | |
Anton 6-Jul-2006 [215x3] | Added demos/ado.r - ActiveX Data Objects read and manipulate data from a data source. |
Text to speech demo is working. | |
(not added to the site quite yet.) | |
james_nak 6-Jul-2006 [218] | Anton, OK DL'd the zip file, tried a couple of files, realized I needed Pro, ran Pro, sat amazed. Nice stuff my man. Thanks. |
Anton 7-Jul-2006 [219x2] | Sure, thanks ! I need to remind everyone here also of Benjamin Maggi's great effort in starting this project to begin with. |
Mmm.. that's two people who commented on the requirement for external library access - I will add a message about that somewhere. | |
Terry 7-Jul-2006 [221] | Where's the file Anton? |
Anton 7-Jul-2006 [222] | text to speech ? not added to website yet. The demo is supposed to show two different ways of getting text to speech; via MS Agent and via SAPI. I haven't got the MS Agent one working properly yet on my system. |
james_nak 7-Jul-2006 [223x3] | Anton, do you have a source for documentation on the COM lib itself. I.e., what it can do? |
OK, found something. I bet we have some books in the office as well: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/html/f5f66603-466c-496b-be29-89a8ed9361dd.asp | |
Yep, six books. | |
Anton 7-Jul-2006 [226] | Thanks for the link ! I don't actually know that much about COM, as it is a proprietary technology, I have avoided it til now. |
james_nak 7-Jul-2006 [227] | That link is not really the best in terms of the nitty gritty. A search through the MSDN site will show other places to look. |
Anton 9-Jul-2006 [228x6] | Yes, you can flop around in the MSDN archive for a while before you find what you want. An example which I am working on now is extracting Calendar data from Outlook. |
Updated COMLib website a little bit. Amongst other small changes, added demos/speech.r | |
If you've got an older distro, you can just download the full zip and extract the files over your old directory. | |
I would like someone to test the speech and let me know if the MS Agent character actually talks or not. | |
On my computer, only balloon text is shown. | |
(This is not urgent, just when you can be bothered) | |
Terry 10-Jul-2006 [234x4] | link? |
http://home.wilddsl.net.au/anton/rebol/os/windows/COMLib/files.html | |
TTS worked, the ms agent just had the bubble. I have some old ms agent code around somewhere that I used with LFReD, along with a dialect.. I'll see if i can find it. | |
The MS TTS is pretty old technology.. Sounds like Vista may has much better speech recognition and a new TTS. Should check out the beta. | |
Anton 10-Jul-2006 [238x2] | Righto, thanks :) |
We'll find out what the difference is. | |
Terry 10-Jul-2006 [240x3] | COM with PHP is soo easy... drop this into a page on your local server.. <? $word=new COM("word.application") or die("Cannot start word for you"); print "Loaded word version ($word->Version)\n"; $word->visible =1; $word->Documents->Add(); $word->Selection->Typetext("Dit is een test"); $word->Documents[1]->SaveAs("burb ofzo.doc"); $word->Quit(); ?> |
Want Macro support.. ? <? $obj = new COM("AutoItX3.Control"); $obj->CDTray ("H:", "open"); $obj->Sleep (1000); $obj->CDTray ("H:", "close"); ?> | |
Not to be critical, but the php syntax is much clearer. | |
Anton 10-Jul-2006 [243x2] | Yes, you can do the chaining of objects easily, and pass args to functions directly, without using the printf-style syntax. |
I am quite sure I can do better with rebol, but I would have to turn DispHelper inside out to find out the way. As it is, I have left DispHelper untouched. | |
Terry 10-Jul-2006 [245] | How RT manages to charge for library access I'll never understand (even though I paid for it .. once). |
Anton 10-Jul-2006 [246] | Looks like you just set the .TTSModeID |
Robert 10-Jul-2006 [247] | Anton, if you made it with the OL connection let me know. |
Anton 10-Jul-2006 [248] | .. but when I set TTSModeID it doesn't work. I am not sure if I am using the right TTSModeID or if I am passing it correctly... Robert, I'm extracting Outlook Calendar Appointments and Contacts. Just rudimentary at the moment, though. I haven't figured out how to surely extract all the properties. |
Robert 10-Jul-2006 [249] | And I want to import those into IOS/xpeers :-) so that we can sync to OL. Maybe even in both ways. |
Anton 10-Jul-2006 [250] | I will publish what I have in the next day or two. |
Terry 10-Jul-2006 [251] | Here's TTS in PHP.. <? $voice = new COM("SAPI.SpVoice"); $voice->Speak("Hello, lets have a conversation"); ?> |
Anton 10-Jul-2006 [252x2] | tts: CreateObject "Sapi.SpVoice" CallMethod [tts ".Speak(%s)" "Hello, let's have a conversation"] |
pretty similar in COMLib. | |
Henrik 10-Jul-2006 [254] | wouldn't it be prettier with: tts: CreateObject [Sapi SpVoice] tts/call [Speak "Hello, let's have a conversation"] just to make the syntax more smooth and REBOLish... :-) |
Anton 10-Jul-2006 [255] | Hmm... yes. Of course, if I could just choose the syntax I would make it much better. For now, still in learning mode. |
older newer | first last |