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:	163
Size:	99.1 KB
ID:	306219
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      does not work

      Comment


      • #4

        I have a sample

        Click image for larger version

Name:	D9yKGD.png
Views:	168
Size:	41.7 KB
ID:	306226
        Apz : https://*******/file/sHoyxTjB#OalYSB...m87B47H6Q8hnyY

        Comment


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

          Ex: teste.exe

          Comment


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


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

              Comment


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


                • #9

                  I have already sent the example above, it has it, the codes examine the transaction closure codes

                  Comment


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

                    Comment


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


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


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


                          • #14
                            Thank you so much!!

                            With your help I can

                            Comment


                            • #15
                              Try this Demo
                              Click image for larger version

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

                              Comment

                              Working...
                              X