are you using commands for object script as shown below ?

It looks like your code is for simple script which only allows one app at a time.

The Shell command works but the simple script will not allow commands to pass.

The code below is part of a script that runs a meditech report, then opens a command prompt to FTP the report off site.

Feel free to call with any Q's



Set M = New WinScript
M.At ""
ChDir "C:\Program Files\Meditech\MagicCS\Client"
M.Connect "C:\Program Files\Meditech\MagicCS\Client\VMAGIC.EXE", stMeditechCS
Set w = New WinScript


w.Connect "cmd", stConsole
M.Wait 0.5
w.Enter "c:"
M.Wait 0.5
w.Enter "cd\gnupg"
M.Wait 0.5
w.Enter Encrypt_Line
M.Wait 5
w.Enter "ftp"
M.Wait 5
w.Enter "open ftp.pressganey.com"
M.Wait 5
w.Enter FTP_User_Name
M.Wait 5
w.Enter FTP_Pass_Word
M.Wait 5
w.Enter FTP_Cmd
M.Wait 10
w.Enter "bye"

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:30 PM

          Please respond to
          [EMAIL PROTECTED]

To

<[EMAIL PROTECTED]>

cc


Subject

RE: [Talk] Location of Windows key strokes

Yes sir, that does work.

However, I unfortunately am trying to open either Wordpad or even my default web browser to navigate through
some of the fields in my task log.

I've opened Wordpad and my browser successfully; but cannot do anything with it once it's open.

Your suggestions does has it's application in other areas; but what I'm failing to understand is how to interact
with a windows application after opening it.

Thank you,

Scott
      -----Original Message-----
      From:
      [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
      Sent:
      Thursday, November 18, 2004 4:25 PM
      To:
      [EMAIL PROTECTED]
      Subject:
      RE: [Talk] Location of Windows key strokes

      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


CONFIDENTIALITY NOTICE: This e-mail communication and any attachments
may contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended
recipient, you are hereby notified that you have received this communication in
error and that any review, disclosure, dissemination, distribution or copying
of it or its contents is prohibited. If you have received this
communication in error, please notify Saratoga Hospital immediately by e-mail at

[EMAIL PROTECTED] and destroy all copies of this communication
and any attachments.

<<inline: graycol.gif>>

<<inline: pic20485.gif>>

<<inline: ecblank.gif>>

<<inline: C9082260.gif>>

<<inline: C3192396.gif>>

<<inline: C1796333.gif>>

<<inline: C5268137.gif>>

<<inline: C4116005.gif>>

<<inline: C0675637.gif>>

<<inline: C7760237.gif>>

<<inline: C5979049.gif>>

<<inline: C8472743.gif>>

Reply via email to