![]() ExecQuery("select * from win32_process where name='" & sApp & "'") ' Function to check for running application by its process nameįunction IsProcessRunning(sApp As String) VPID = Shell("calc.exe", 1) ' Run Calculator SendKeys "%" ' Bring it back into focus if user minimises it On Error GoTo Reload ' Open new instance of calculator in event of errorĪppActivate (vPID) ' Reactivate calculator process using Public declared variant If IsProcessRunning("calc.exe") = True Then ![]()
0 Comments
Leave a Reply. |