按键精灵自定义函数(备份)


// 根据标题信息获取窗体的句柄
Function getHanle(tittle)

	HwndEx = Plugin.Window.SearchEx(0, tittle, 0)
	
	If HwndEx = "" Then 
		getHanle = -1
	Else 
		MyArray = Split(HwndEx, "|")
		If UBound(MyArray) > 0 Then 
			getHanle = Clng(MyArray(0))
		Else 
			getHanle = -1
		End If		
	End If
	
	MsgBox "查找到窗口‘"& tittle &"’的句柄为:‘" & getHanle & "’"
	
End Function


你可能感兴趣的:(按键精灵)