09-21-2011, 02:58 AM
Hi Gintaras,
I am getting a Access is denied Error for a ShutDownProcess of a specific process. However, I can manually end the process after I give the ok to the "Warning: Terminating a process can cause undesired results....."
In fact even this code works:
Is there any work around to the Access is Denied Error. Note that there are other processes that I get "Unable To Terminate Process" dialog (i.e. The opation could not be completed. Access is denied" even when I try to do it manually.
So is there a reason why I am still getting the Access is denied on some even though I can get rid of them manually?
Thanks, S
I am getting a Access is denied Error for a ShutDownProcess of a specific process. However, I can manually end the process after I give the ok to the "Warning: Terminating a process can cause undesired results....."
In fact even this code works:
run "taskmgr.exe"
;----
int w=win("Windows Task Manager" "#32770")
Acc a.Find(w "LISTITEM" "SampleProcess.exe" "class=SysListView32" 0x1015)
a.Select(3)
but child("&End Process" "Button" win("Windows Task Manager" "#32770") 0x1)
wait 2 WV win("Task Manager Warning" "#32770")
but child("&Yes" "Button" win("Task Manager Warning" "#32770") 0x1)
Is there any work around to the Access is Denied Error. Note that there are other processes that I get "Unable To Terminate Process" dialog (i.e. The opation could not be completed. Access is denied" even when I try to do it manually.
So is there a reason why I am still getting the Access is denied on some even though I can get rid of them manually?
Thanks, S