Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2003
    Posts
    49

    Grin shut down process in task manager?

    scenario:
    an external app is called and launched (all runs well)
    the user then closes the application but the "process" remains running in task manager.
    if the user launches the app again this causes a problem
    is there a way to close/kill a process running in task manager from within AMS?

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    Re: shut down process in task manager?

    Find the Window using Window.Find to get the handle of the application. Then use Window.Close to close the appllication.


    Here's a thread that uses the actions that you'll need to get the handle of the app. In this case it minimizes the app, but you could close it instead.

    Go to Thread

  3. #3
    Join Date
    Jun 2003
    Posts
    49

    Re: shut down process in task manager?

    there is no window as the application is actually a process that has to be killed, no window is running, only a process

    thanks

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    Re: shut down process in task manager?

    You can still probably find the process using Window.GetTitles. Even though a process is not visible, it still has a name.

    Try this:
    <IR_ACTIONS_LIST>
    <Action name="Get Titles">
    <Type>129</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%WndTitles%</Variable>
    <VariableDelimiter>;;</VariableDelimiter>
    </Action>
    <Action name="Message Box">
    <Type>5</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <DialogTitle>Title</DialogTitle>
    <DialogMessage>%WndTitles%</DialogMessage>
    <Icon>3</Icon>
    <Variable>%Result%</Variable>
    <DialogType>0</DialogType>
    <DefaultButton>0</DefaultButton>
    </Action>
    </IR_ACTIONS_LIST>

    Look through the list, and see if your process is there, then use the name to close.

    It's worth a shot anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts