使用FindWindow()
HWD hh=FindWindow(窗口类名,窗口标题名)
dim a as long
a=FindWindow("NOTEPAD",NULL)
if a>0 then
msgbox "记事本在运行"
end if
HWD hh=FindWindow(窗口类名,窗口标题名)
dim a as long
a=FindWindow("NOTEPAD",NULL)
if a>0 then
msgbox "记事本在运行"
end if
HWD是个什么东东??