have you tried a simple

Open "C:\file.txt" for output as 1

Print #1,"this is my note"

Close 1

This will build a txt file, that you can keep open to write progress notes or errors to.



Bruce Krigman
Information Systems
South Shore Hospital
781-340-8299
Inactive hide details for "White, Scott A" <[EMAIL PROTECTED]>"White, Scott A" <[EMAIL PROTECTED]>


          "White, Scott A" <[EMAIL PROTECTED]>
          Sent by: [EMAIL PROTECTED]

          11/18/04 04:21 PM

          Please respond to
          [EMAIL PROTECTED]

To

<[EMAIL PROTECTED]>

cc


Subject

RE: [Talk] Location of Windows key strokes

I guess it's not that "cut & dry" for me. Sorry folks; but for some reason I cannot get this to work.

All I'm trying to do is open WORDPAD, then enter a few lines of text and file/save it.

Sub OpenWordpad(Optional dummay As String)
Shell "C:\Program Files\Windows NT\Accessories\wordpad.exe"
On Error Resume Next

Wait 1
'Activate "wordpad"
Activate "C:\Program Files\Windows NT\Accessories\wordpad.exe"

Connect "C:\Program Files\Windows NT\Accessories\wordpad.exe", stWindows
End Sub



Sub EnteringMsg(Optional dummy As String)
Enter " This message is coming from an automated script created"
Enter "by Scott White, using Boston Workstation. 222"

SendKeys "%{F}"
End Sub


It crashes and creates and error log that I'm not sure of the location.

On a good note..... it does open WORDPAD; but doesn't place any text into it.

Thanks,
Scott

      -----Original Message-----
      From:
      [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dwight Clevenger
      Sent:
      Wednesday, November 17, 2004 11:38 AM
      To:
      [EMAIL PROTECTED]
      Subject:
      Re: [Talk] Location of Windows key strokes

      Scott,
      Boston Workstation Documentation help file has this info under 'Connections- Windows Connections'


      Thanks,

      Dwight Clevenger
      Senior System Analyst
      Baptist Health System
      615 Soledad
      San Antonio, TX. 78213
      210-297-1563

      [EMAIL PROTECTED]

      >>> [EMAIL PROTECTED] 11/17/2004 08:02:55 AM >>>

      Good morning all.
      Can someone point me to the url that houses a list of commands to use
      in BWS for controlling windows apps.?

      I'm looking for the equivalent of sending <alt+F> and <alt+P>, and things along
      those lines.

      Thank you,
      Scott

<<inline: graycol.gif>>

<<inline: pic11511.gif>>

<<inline: ecblank.gif>>

Reply via email to