Announcement

Collapse
No announcement yet.

Chris - ShellExecuteExample.efs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Chris - ShellExecuteExample.efs

    Hi Chris... or any one that might have an answer.
    I'm using a really neat EFS that was written by

    Title: Shell Execute Example for eSignal 7.x
    By: Chris D. Kryza (Divergence Software, Inc.)

    to open and run a command line batch file. Works like a charm. My question is... is there a way to close the command line window once the batch has been completed by using a button or call ? Preferably a call to a sub to close the cmd.exe window would be optimal.

    Thanks,
    Chris
    Last edited by Chris747; 11-14-2005, 03:50 PM.

  • #2
    Chris:

    I don't know for sure but I can give you something to try.

    If you look at the example functions in that script (e.g., launchNotepad and launchBrowser) you will see that the last parameter being passed to the DLL is a variable called ShowCmd. This is the Shell Show Constant and I think if you try different values here you can get the behavior you want.

    The available values are:

    SW_HIDE - 0
    SW_MAXIMIZE - 3
    SW_MINIMIZE - 6
    SW_SHOWMAXIMIZED - 3
    SW_SHOWMINIMIZED - 2
    SW_SHOWNORMAL - 1
    SW_SHOWNOACTIVATE - 4
    SW_SHOWNA - 8
    SW_SHOWMINNOACTIVE - 7
    SW_SHOWDEFAULT - 10
    SW_RESTORE - 9
    SW_SHOW - 5

    By default I'm using SW_SHOWNORMAL (e.g., the value of 1) in my examples. Play around with other values to see if it works.

    Chris

    Comment


    • #3
      Thanks Chris... it worked !

      Chris

      Comment

      Working...
      X