HP3000-L Archives

May 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Fri, 25 May 2001 12:05:17 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
On Fri, 25 May 2001 08:49:18 -0400, Paveza, Gary <[log in to unmask]>
wrote:

>I'm working on a project where I would like to embed reflections within a
>visual basic program.  ... Has anyone done this?  ...
>I'm having trouble declaring the reflections object and setting it up ...

I've done this and it's pretty easy.  Basically, the easiest way to do this
is as follows:

   1) start the "script recorder" in Reflection
   2) do "the stuff" you want [login, transfer a file, log out]
   3) stop the recorder, and when it asks for a filename, make sure you
save it as a VISUAL BASIC file (.BAS) instead of an RBS or RCL file.

This last step does the whole thing -- you'll end up with a VB module you
can directly open with VB 5 or 6 and it will have everything laid out for
you. [creating the object, setting the comm parameters, prompt-boxes for
passwords that don't echo what the user types, etc.]

For the most part, you're script will consist of ".Transmit"
and ".WaitForString" commands [with several StatusBar.text = "what I'm
doing next..." settings thrown in for good measure ;) ]

One important thing to remember is to import/add the reflection "api"
module (rwinapi.txt) as part of your VB project.  This is a file that
defines all the symbolic constants used by the script(s) created by
reflection.  (things like rcAllowKeystrokes and NEVER_TIME_OUT)

Tom

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2