|
在CSDN找到的,功能很强大,是以对象方式使用的,看使用该DLL的朋友反馈还不错,有网友在vb Script 中调用好像也行。所以抓过来请大家研究下,看能否用在Au3,官网地址:http://blog.csdn.net/Modest/archive/2008/05/08/2416967.aspx
CSDN下载需要积分,不方便,因此将所需文件打包传上来了,见贴子下面。
使用前需要用regsvr32注册MT32.dll
以下是在VB中使用的源代码
Private WithEvents Thread As MT32.Thread
Private WithEvents Thread2 As MT32.Thread
Private Sub Form_Load()
Set Thread = New Thread
Set Thread2 = New Thread
End Sub
Private Sub Command1_Click()
Dim Params(1)
Params(0) = "0"
Params(1) = "1"
Dim g(2)
g(0) = 0
Thread.CreateThread Me, "mm1", Params
Thread2.CreateThread Me, "mm2", g
End Sub
Public Sub mm1(p)
Dim i As Integer
Dim Obj As Object
Set Obj = Thread.ThreadObject
For i = 0 To 5000
Obj.Text1.Text = i
Next
End Sub
Public Sub mm2(p)
Dim i As Integer
Dim Obj As Object
Set Obj = Thread2.ThreadObject
For i = 0 To 5000
Obj.Text2.Text = i
Next
End Sub
[ 本帖最后由 baikaifang 于 2009-3-18 19:51 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|