Function Long FindWindowA(uLong lpClassName,ref string lpWindowName) Library "user32"
************************************************************************************
功能:根据窗口标题查找窗口
示例:
ulong l_handle
string ls_wname
ls_wname="<窗口标题>"//如,无标题---记事本
l_handle=FindWindowA(0,ls_wname)
*******************************************************example 1
Function Long PostMessage(Long hwnd,Long wMsg,Long wParam,Long lParam) Library "user32" Alias for "PostMessageA"
功能:向创建指定窗口的线索发送一条消息,便不等待线索处理该消息
示例:
ulong l_handle
boolean rtn
l_handle=handle(w_main)
//61472=最小化窗口; 61488=最大化窗口 61728=正常窗口
rtn=PostMessageA(l_handle,274,61472,0)
example 2
For applications on Windows, the Handle function does not return a useful value when the previous flag is TRUE. You can use the FindWindowA Windows functio