Problem Enumerating Threads???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • bmreeves
    Forum Member
    • Oct 2004
    • 7

    Problem Enumerating Threads???

    Here is my code..Real Simple

    process = "outlook";
    processes = Window.EnumerateProcesses();
    for j, file_path in processes do
    file = String.SplitPath(file_path);
    if (String.Lower(file.Filename)) == process then
    Input.SetText("Input1", "Yep its running");
    elseif (String.Lower(file.Filename)) ~= process then
    Input.SetText("Input1", "Nope NOT Running");
    end
    end

    However, even if the outlook process is running it always says nope not running. I can change the process to look for to something like explorer and it works or even ams50 and it works. It seems like certain processes work while others do not.. Any assistance greatly appreciated..

    Thanks
    Last edited by bmreeves; 06-23-2005, 05:03 PM. Reason: spelling :)
  • Intrigued
    Indigo Rose Customer
    • Dec 2003
    • 6138

    #2
    Worm posted a link to a program that "kills" processes. Is that what you ultimately are trying to achieve through your AMS app.?

    If so, here is his link:

    Intrigued

    Comment

    • Intrigued
      Indigo Rose Customer
      • Dec 2003
      • 6138

      #3
      This user had some interesting comments late in 2004:

      Intrigued

      Comment

      • bmreeves
        Forum Member
        • Oct 2004
        • 7

        #4
        actually what I want to do is have something that checks to ensure outlook is running. I have a problem with outlook crashing and want to write a small app that looks to see if outlook.exe is running. Then if it is not running, I want it to start it up. I tried enumerating windows, however when outlook is minimized, it shows up in the notification tray only and not on the task bar which is how I need it so it doesnt take space on my taskbar. I can see outlook.exe running but when I try it and a few other apps, it cant seem to locate the process..How would I do an enumerate of processes to see if ams can actually see the processes? Thanks in advance for any help


        B

        Comment

        • Intrigued
          Indigo Rose Customer
          • Dec 2003
          • 6138

          #5
          Here is a comment from an I.R. member earlier this year:



          It seems that this is a known bug that is on the "to-do list" for now.
          Intrigued

          Comment

          Working...
          X