or is there a command to cloes a running file?
i searched and read the doc. but i didnt find any
i do not want to use the findwindow or class way becasue the file have many classes and no window title and it is hard to search for all the classes that the program use
Function CloseWinamp
Push $0
loop:
FindWindow $0 "Winamp v1.x"
IntCmp $0 0 done
SendMessage $0 16 0 0
Sleep 100
Goto loop
done:
Pop $0
FunctionEnd orFunction CloseApplication
Pop $1
Push $0
loop:
FindWindow $0 $1
IntCmp $0 0 done
SendMessage $0 16 0 0
Sleep 100
Goto loop
done:
Pop $0
FunctionEnd
Function .onInit
Push "Winamp v1.x"
Call CloseApplication
FunctionEnd and killing the file.exe is alot easierthank you