View Single Post
Old 21st November 2007, 03:25   #18
mazdakam
Junior Member
 
mazdakam's Avatar
 
Join Date: Nov 2007
Posts: 35
i write it with Iswindow and it works too as you told
PHP Code:
Function closeWFP
${For} $R0 1 100
  FindWindow $R1 
"" "Windows File Protection"
  
Iswindow $R1 Close 0
  Sleep 100
${Next}
Return
Close:
  
System::Call 'user32::PostMessageA(i,i,i,i) i($R1,${WM_COMMAND},2,0)'
  
FindWindow $R1 "" "Windows File Protection"
  
System::Call 'user32::PostMessageA(i,i,i,i) i($R1,${WM_COMMAND},6,0)'
FunctionEnd 
mazdakam is offline   Reply With Quote