View Single Post
Old 04-21-2009, 01:50 PM   #12
ancalex
Member
ancalex has a complete set of Star Wars action figures.ancalex has a complete set of Star Wars action figures.ancalex has a complete set of Star Wars action figures.
 
ancalex's Avatar
 
Posts: 21
Karma: 272
Join Date: Dec 2007
Location: Romania
Device: ebookwise 1150
a bit of succes

Hi
Well, AutoIt support operations with COM objects but like you will see it's a little bit tricky to manage that.
First I tried to do everything in a single script but... surprise... when I want to catch the OnBuildStart event using BuildFromWordDoc the result is... nothing. The event is not firing my function in AutoIt for overriding default project settings.
I can catch this event if I use BuildFromHtmlFile but surprise again... the default projects settings are used despite of what I do in my function. I think AutoIt have some problems with some events with some COMs... especially with SBPublisher COM.
So I decided to write only a GUI wrapper for word2imp.js first.
Here are the results.

First the source file (contains the autoit script and the jscript)

Second, the executable (contains the compiled autoit executable and again the jscript)
Attached Files
File Type: zip word2imp-source.zip (2.6 KB, 1009 views)
File Type: zip word2imp-exe.zip (298.8 KB, 1034 views)
ancalex is offline   Reply With Quote