Re: Can this be done in SwiftForth?

From: Bernard Sypniewski <syp_at_eticomm.net>
Date: Mon, 21 May 2001 10:25:44 -0400

----- Original Message -----
From: "Richard Owlett" <rowlett_at_atlascomm.net>
To: <sftalk_at_forth.com>
Sent: Sunday, May 20, 2001 2:39 PM
Subject: [sftalk] Can this be done in SwiftForth?

>
> I frequently find myself writing Microsoft Word macros similar to code
> fragment below.
> Is there any to perform "AppActivate" and "SendKeys" in Forth. { "adelay"
> prevents 'keystrokes' being sent too quickly to the target application}
>
> AppActivate "Bravo", True
> adelay
> SendKeys "{ESC}", True 'gives blank presentation
> adelay
> SendKeys "%F", True '"File" menu
> adelay
> SendKeys "{DOWN}~", True 'New file
> adelay
> SendKeys MyName + "~", True 'name of file to open
> adelay
> <snip>
>
Dear Richard,
    This interests me too because I am writing a VB application which works
with WORD. I would really like to use FORTH along with it. Just some random
thoughts:
    1. if you are usuing strictly WORD (and not writing an application to
control WORD), could you write a DLL in SwiftForth and get a VBA macro to
call it? If what you want to do is write to the WORD window, you may be able
to write out what you need in FORTH and send it to WORD via WORD macro
commands. I know this works from VB. WORD exposes its objects. It is a
question of being able to talk to the appropriate WORD object, I think.
    2. Have you ever called a SwiftForth DLL from VBA or VB? If you have,
let's talk. If you haven't and want to, let's work together.

Bernard

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Search the archives! Visit http://www.forth.com/search for details.
Received on Mon May 21 2001 - 07:20:01 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 08-Feb-2012. Archive updated nightly.