Announcement

Collapse
No announcement yet.

How to end process in task manager by autoplay media studio?

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

  • How to end process in task manager by autoplay media studio?

    I want a command to close a particular executable in the task manager.

  • #2
    Read the manual on System.TerminateProcess.

    Click image for larger version

Name:	terminate.png
Views:	207
Size:	99.1 KB
ID:	306219
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      does not work

      Comment


      • #4
        I want a code so that when I click the button it closes a specific executable

        Ex: teste.exe

        Comment


        • #5
          Lmfao "does not work". It does in fact work, that's the function you need to actually kill a process.
          You need another function that searches for the PID of a process, but we're not here to do your job.
          Saying "does not work" without showing how you implemented your code, or without showing your
          attempts at all, is silly.

          What the heck has happened to these forums...

          I want a code so that when I click the button it closes a specific executable
          Okay, write that code. I gave you part of the code you need; the function that actually kills the process by PID.
          lazkopat gave you another example, now you show us what you have done.
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment


          • #6
            I don't want a template, I want code that makes a certain process close when I press the button

            Comment


            • #7
              Originally posted by JUNINHO View Post
              I don't want a template, I want code that makes a certain process close when I press the button
              Yes, we understand what you want; but you have to put in some effort as well.
              Show us the code you've written to try to solve this yourself and we can help fixing problems.
              Bas Groothedde
              Imagine Programming :: Blog

              AMS8 Plugins
              IMXLH Compiler

              Comment


              • #8
                But I didn't understand anything! Sorry and I'm new to AMS

                Comment


                • #9
                  PHP Code:
                  instances_of_file 0;
                  file_to_check_for "yourprogram.exe";
                  processes System.EnumerateProcesses();
                  for 
                  jfile_path in pairs (processes) do
                  file String.SplitPath(file_path);
                  if (
                  String.Lower(file.Filename..file.Extension)) == file_to_check_for then
                  System
                  .TerminateProcess(j);
                  end
                  end 

                  Comment


                  • #10
                    Thanks for helping me!

                    I did a test with CCleaner64 but it didn't work.

                    instances_of_file = 0;
                    file_to_check_for = "CCleaner64.exe";
                    processes = System.EnumerateProcesses();
                    for j, file_path in pairs (processes) do
                    file = String.SplitPath(file_path);
                    if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
                    System.TerminateProcess(j);
                    end
                    end

                    Comment


                    • #11
                      if you understood what i am talking about i would recommend you an old sside dll ......
                      and this script:
                      PHP Code:
                      terminate System.TerminateProcess (XXXXXXXX); 

                      EXAMPLE
                      Untitled.rar

                      Comment


                      • #12
                        Thank you so much!!

                        With your help I can

                        Comment


                        • #13
                          Try this Demo
                          Click image for larger version

Name:	Demo.png
Views:	194
Size:	196.7 KB
ID:	306272
                          https://ln2.********/dl/2d1ff2e30/ub...rzcpp-63pmqusq

                          Comment

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