PDA

View Full Version : LUA Methods/Functions for Microsoft


Philo
06-24-2004, 10:13 AM
Can someone point me in the direction of some instuctions on how to use LUA with MS word, Excel etc

I have read the help manual from the download site but need to know what methods there are and how to use them.

To start with Im just looking to write some text to a page, jump to a specific page, save a document perhaps even spell check it as well.

So far all I have managed, is to hack the calculator example from this forum to get word to open.

Any help gratefully recieved as all I've not managed to find anything helpfull on the web or the lua forum.

The Microsoft Site mentions a typetext method but I couldn't get it to work. Even just showing me how to use that will be a great help as I might then be able to figure out the rest for myself.

Thanks

Phil

Brett
06-24-2004, 12:47 PM
I am not sure of the specifics, however, try searching Google for "Microstf Word" mixed with a combination of "COM Model", "Automation Model", "Exposed Automation Methods", etc. That may help you find what you need. Basically anything that shows how to automate Word from VBScript, JavaScript or the Windows Scripting Host should be applicable to using the LuaCOM plugin from AMS50.

Philo
06-25-2004, 05:22 AM
Thanks Brett,

Ive been playing about with it but seem to be getting nowhere fast, even had one of the ICT guys take a look but we're well and truly stumped.

Guess I'll give up for now and hope someone produces some more Lua documentation and examples in the future.