hi, I am developing standalone application by unity3d.
I has function of tracking which program is running while user use computer.
so i used plugin dll to hide application while it tracking programs.
Here's the code
---------------------------------------------------------------------------------------------------
[DllImport("user32.dll")]
public static extern int ShowWindow(int hwnd, int nCmdShow);
public void hide_application()
{
Main_Handle = GetActiveWindow();
ShowWindow(Main_Handle,0);
}
-----------------------------------------------------------------------------
BUT, HERE'S A QUESTION.
as you can see in screenshot.
when i hide application. the cpu usage increase so highly.
It would be quite annoying, when user use another program.
how can i decrease cpu usage and also hide application.
please help me. thanks
please don't reply why don't use visual studio c# instead of unity3d. ^^*
↧