Announcement

Collapse
No announcement yet.

shut down process in task manager?

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

  • 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
    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

    Comment


    • #3
      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

      Comment


      • #4
        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.

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎