Private Sub Agent1_Click(ByVal CharacterID As String, ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Integer, ByVal y As Integer)
If Button = 2 Then
PopupMenu pop
End If
End Sub
Private Sub Form_Load()
Label1.Caption = "在猴子助手上点击右键,选择猴子的动画方式,同一方式多点几次会有不同的惊喜哟!"
Set agentreauest = Agent1.Characters.Load("dot0", App.Path + "\MNKYKING.acs")
Set dot0 = Agent1.Characters.Character("dot0")
dot0.AutoPopupMenu = False
dot0.Show (0)
End Sub
Private Sub thinking_Click()
dot0.StopAll
dot0.Play "Thinking"
End Sub
Private Sub searching_Click()
dot0.StopAll
dot0.Play "Searching"
End Sub
Private Sub congratulate_Click()
dot0.StopAll
dot0.Play "Congratulate"
End Sub
添加部件Microsoft Agent Control 2.0
Dim Peedy As IAgentCtlCharacterEx
Private Sub Command1_Click()
Agent1.Characters.Load "Peedy1", App.Path & "\Peedy.acs"
Set Peedy = Agent1.Characters("Peedy1")
Peedy.Show
End Sub
Private Sub Command2_Click()
Peedy.Hide
End Sub