I would like to check if X window of a program is running, if it is not running, I want to end the current application.
Thanks for who can help.
did you check the 'MainWindowTitle' property?
loop through all processes and check their window title with that, you can also do it manually using win API calls
Originally Posted by silvaBR
I would like to check if X window of a program is running, if it is not running, I want to end the current application.
Thanks for who can help.
I don't really understand what you were trying to say but if you want to know whether the program is still running or not, you can check at the top. you can see 'STOP' icon. Thats mean, the program still running.
If you want the code to close the running program, you can use this .
Application.Exit()
Originally Posted by Ticherhaz
I don't really understand what you were trying to say but if you want to know whether the program is still running or not, you can check at the top. you can see 'STOP' icon. Thats mean, the program still running.
If you want the code to close the running program, you can use thisⓘ .
Application.Exit()