Announcement

Collapse
No announcement yet.

Get Handle of Program Opened by File.Run()

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

  • Get Handle of Program Opened by File.Run()

    I write this line in a button to Open a Program:
    Code:
    result = File.Run("AutoPlay\\Docs\\Downloader.exe", "", "", SW_SHOWNORMAL, false);
    The program (Downloader.exe) successfully opened, But I need handle number of it.
    Can I get it?

  • #2
    See Window.EnumerateProcesses().

    Ulrich

    Comment


    • #3
      And when that doesn't work out for ya, there's still this old library of which I'm not sure if it still works.
      Bas Groothedde
      Imagine Programming :: Blog

      AMS8 Plugins
      IMXLH Compiler

      Comment


      • #4
        There is the CreateProcess function that will give you everything you would need to know also.

        Comment


        • #5
          Originally posted by Shrek View Post
          There is the CreateProcess function that will give you everything you would need to know also.
          Which you can call with the AMSWMemory plugin if you can still find it, or MemoryEx.

          There, you probably have enough information now!
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment


          • #6
            Originally posted by Imagine Programming View Post
            And when that doesn't work out for ya, there's still this old library of which I'm not sure if it still works.
            Thanks, it so usefull.
            How can I run this Dll with MemoryEx Plugin to run it in Ram?

            Comment

            Working...
            X