先做一个图片动画,加上触发器(触发器就是自己),加上以下代码:(这段代码就是模拟鼠标单击),图片设置“动作设置/鼠标移过,运行宏shubiao”
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Sub shubiao()
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
DoEvents
End Sub
846 KB, 下载次数: 777)
(2007-11-29 14:21:40, Size: 845 KB, Downloads: 257)
1、目前是单击效果
2、不能循环
283 KB, 下载次数: 186)
在你作品的基础上做了修改,这个你一定满意(请启用宏,否则看不到效果),把鼠标移动每个小图上,看看效果和那个flash是不是很像。
[ 本帖最后由 zyhqzn 于 2007-11-30 09:02 编辑 ]
310 KB, 下载次数: 320)
QUOTE:
cool........................... good job!!zyhqzn 兄厉害~~~~~~~
就是这个效果
不知道 你的 那个代码 是否通用?
该如何修改?
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Sub shubiao()
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
DoEvents
End Sub