今天闲来无事,给大家发个魔域自动喊话的制作详解脚本,首先请把大漠插件放到项目保存位置的Debug文件夹,打开VB2008新建项目,新建模块,
声明API
Imports System.Runtime.InteropServices
Module Module1
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Public Function GetWindow(ByVal hWnd As Integer, ByVal uCmd As UInt32) As Integer
End Function
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Public Function PostMessage(ByVal hWnd As Integer, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Boolean
End Function
Public Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Integer)
End Module
依下图设计好窗体,添加一个时钟,双击喊话按钮打开,