(Oct 18, 2012 06:27 AM)BaussHacker Wrote: Actually it doesn't. It makes no sense to check if the process you're running is running ;)
check the rest of what i said and not just that line :P yes, the GetCurrentProcess is useless, I was more referring to the name length part. That can be used to get current applications. Look at my example if you don't understand.
Thanks to all who commented.
If anyone's wondering, this was a parody of this thread: https://hackforums.net/showthread.php?tid=2910267 🙂
This is not good, you should use the PID.
(Oct 18, 2012 11:52 AM)Debroski Wrote: check the rest of what i said and not just that line :P yes, the GetCurrentProcess is useless, I was more referring to the name length part. That can be used to get current applications. Look at my example if you don't understand.
Yeah I know, but I was just speaking about this alone. It has no real purpose xD If it can even execute that then it's running rofl :p
Oct 19, 2012 05:57 AM
(This post was last modified: Oct 19, 2012 06:00 AM by FearMe.)
bool IsRunning() //method
{ //bracket
return true; //return true
} //bracket
(Jan 1, 2015 01:56 PM)indecisveenough Wrote: The problem here is you guys don't respect the innovation and engineering done by apple. Also there warranty is simply outstanding. Specs and benchmarks aren't everything.
Oct 19, 2012 11:00 PM
(This post was last modified: Oct 19, 2012 11:00 PM by 0xDEAD10CC.)
(Oct 18, 2012 07:13 PM)Birds Wrote: This is not good, you should use the PID.
So you can waste more time checking if the application is still running while you execute methods from it during runtime? 🤨
... At all the people who try and expand on the OP's code... That's even funnier than writing the code in the first place and thinking it has a purpose.
why would anyone need this TBH
if the form is open the process is open Daa :P
Troll Mode on Yeah yeah stop trolling on hackforums then if this what a troll
Smoke crack and fly, Don't smoke weed and die
If this program is running it shoud close it just for the lolz :D
(Oct 18, 2012 07:13 PM)Birds Wrote: This is not good, you should use the PID.
LOL. I hope this is a troll.
If not, facepalm.
If its not running then System.Diagnostics.Process.GetCurrentProcess().ProcessName will result in an exception, OPs code will only work if the process is running.
(Oct 20, 2012 06:03 AM)The-One Wrote: If its not running then System.Diagnostics.Process.GetCurrentProcess().ProcessName will result in an exception, OPs code will only work if the process is running.
It wouldn't even result in an exception. For an exception to be thrown your process also has to run ;)
Lol why is this thread even still alive? The code can't be run unless the CurrentProcess in question, is running.
Obvious troll is obvious :P
|