Code: if(GameProcessOk() && DllFileOk()){ Inject(); } Use your own logic, but its pretty simple. You just don't have to wait till the use press the button to inject