TrucBidule
New member
- Joined
- Jul 19, 2022
- Messages
- 2
- Programming Experience
- 1-3
(I USE .NET 5.0)
So, i created a post on StackOverFlow but they closed my question due to not have enough braincells.
You can see the comment you can have a question already awnsered here: How work and be able to run a function in real time?
So i start project that's need real time "update" like i have my console project, i create function to execute in real time (example below) and i want like (
).
If you are questionning about what mean "real time", imagine Windows Defender detect something on your pc, you don't need to launch Defender and select the program to analysis it's automatic, it's the same concept except that but instead i need to detect something CPU friendly when it open like when cmd.exe open i want it close. (
For all another question check my old question comment or post a comment here
So, i created a post on StackOverFlow but they closed my question due to not have enough braincells.
You can see the comment you can have a question already awnsered here: How work and be able to run a function in real time?
So i start project that's need real time "update" like i have my console project, i create function to execute in real time (example below) and i want like (
C#:
if(toExec()) => execute toClose()
C#:
string theApp = "cmd.exe";
Boolean toExec()
{
if (app.isOpen(theApp))
{
return true;
}
else
return false;
}
void toClose()
{
if (theApp != null)
app.Close(theApp);
}
If you are questionning about what mean "real time", imagine Windows Defender detect something on your pc, you don't need to launch Defender and select the program to analysis it's automatic, it's the same concept except that but instead i need to detect something CPU friendly when it open like when cmd.exe open i want it close. (
C#:
i don't want to create do{ if(toExec()) => execute toClose() }while(true)
For all another question check my old question comment or post a comment here
Last edited by a moderator: