Whats wrong with this code,
i have tried different ways still it wont work.
what i am trying to do is put a code to on Show and when the application is running then i want it to check if notepad is running, and if it is i want it to display a message in a input object, that notepad is running, but if notepad is not running i want it to input that notepad is not running.
but i can not make it work, it seems simple but i can not figure it out!
this code is put on Show
Code:file_to_check_for = "notepad.exe"; --have all lowercase processes = System.EnumerateProcesses(); for j, file_path in processes do file = String.SplitPath(file_path); if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then Input.SetText("Input1", "Notepad is running"); else Input.SetText("Input1", "Notepad is not running"); end end

