View Single Post
Old 19th November 2007, 22:03   #10
mazdakam
Junior Member
 
mazdakam's Avatar
 
Join Date: Nov 2007
Posts: 35
i write it with Do while but it didn't work what is wrong with it:
PHP Code:
Function closeWFP

${Do}
;
Find and close first dialog
     FindWindow 
$"" "Windows File Protection"
    
System::Call 'user32::PostMessageA(i,i,i,i) i($0,${WM_COMMAND},2,0)'

;Find and close second dialog
    FindWindow 
$"" "Windows File Protection"
    
System::Call 'user32::PostMessageA(i,i,i,i) i($1,${WM_COMMAND},6,0)'
    
Sleep 500
     
 
[B] ${LoopUntil} $== '1'[/B
FunctionEnd 
how can i tell LoopUntil window is not pop?
mazdakam is offline   Reply With Quote