📄 createexe.frm
字号:
VERSION 5.00
Begin VB.Form FCreateEXE
BorderStyle = 1 'Fixed Single
Caption = "编译为EXE..."
ClientHeight = 4320
ClientLeft = 3135
ClientTop = 1800
ClientWidth = 5115
Icon = "CreateEXE.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4320
ScaleWidth = 5115
Begin VB.TextBox SoureFileText
Height = 315
Left = 1140
Locked = -1 'True
TabIndex = 17
Top = 210
Width = 3765
End
Begin VB.CommandButton CmdVisibel
Caption = "<< 隐藏"
Height = 435
Left = 7920
TabIndex = 15
Top = 3600
Visible = 0 'False
Width = 1215
End
Begin VB.CommandButton cmdHelp
Caption = "说明 >>"
Height = 435
Left = 3450
TabIndex = 14
Top = 3570
Width = 1335
End
Begin VB.TextBox MovieNameText
Height = 315
Left = 1140
TabIndex = 0
Text = "未知"
Top = 600
Width = 3765
End
Begin VB.TextBox CommapyText
Height = 315
Left = 1140
TabIndex = 2
Text = "未知"
Top = 1410
Width = 3765
End
Begin VB.TextBox TextAuthor
Height = 315
Left = 1140
TabIndex = 1
Text = "未知"
Top = 990
Width = 3765
End
Begin VB.TextBox TextPath
Height = 285
Left = 1140
TabIndex = 4
Top = 2940
Width = 2835
End
Begin VB.CommandButton CmdBrower
Caption = "浏览..."
Height = 315
Left = 4080
TabIndex = 5
Top = 2940
Width = 855
End
Begin VB.TextBox TextInfo
Height = 945
Left = 1140
ScrollBars = 1 'Horizontal
TabIndex = 3
Top = 1830
Width = 3765
End
Begin VB.CommandButton CmdOK
Caption = "确定"
Height = 435
Left = 270
TabIndex = 6
Top = 3570
Width = 1215
End
Begin VB.CommandButton CmdCancel
Caption = "取消"
Height = 435
Left = 1800
TabIndex = 7
Top = 3570
Width = 1275
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "源文件:"
Height = 225
Index = 4
Left = 150
TabIndex = 16
Top = 270
Width = 975
End
Begin VB.Label Label3
Caption = " "
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3465
Left = 5160
TabIndex = 13
Top = 180
Width = 4005
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "电影名称:"
Height = 225
Index = 3
Left = 150
TabIndex = 12
Top = 630
Width = 975
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "Flash作者:"
Height = 225
Index = 2
Left = 120
TabIndex = 11
Top = 1050
Width = 1005
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "发布公司:"
Height = 225
Index = 0
Left = 210
TabIndex = 10
Top = 1470
Width = 915
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "保存路径:"
Height = 225
Index = 1
Left = 210
TabIndex = 9
Top = 3000
Width = 915
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "说明:"
Height = 225
Left = 60
TabIndex = 8
Top = 1860
Width = 1065
End
End
Attribute VB_Name = "FCreateEXE"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const EXE_TEXT = " OpenPlayer可以将SWF的动画格式编译成可执行的EXE格式,你今后看的时候就不" & _
"用打Flash Movie的播放器了,当然,你也可以将它送给你的朋友,他/她就可以直接执行这个文件观看动画。" & _
vbCrLf & _
" 右边的一些信息是关于Flash Movie的一些说明,里面可能也有一些是版权方面的信息(虽然Flash Movie" & _
"是一种没有版权声明的文件格式——不像Midi 或MP3——但是做过Flash 动画朋友都知道做Flash 动画的辛苦)" & _
"希望你留这些关于作者的最确切的信息。"
Const SCR_TEXT = " OpenPlayer可以将SWF的动画格式编译成可屏幕保护程序,你可以把自已喜爱的Flash动画制作成的屏幕保护程序" & _
",可以在自己电脑上使用,也可以将它送给好朋友。" & _
vbCrLf & _
" 有了OpenPlayer,你不必为找不到超Cool的屏保而烦恼了,您硬盘上那么多的Flash动画就是你的屏幕保护程序!"
Private Sub CmdBrower_Click()
Dim Filename As String
If OUTTYPE = "EXE" Then
Filename = ShowSaveDialog(Me, "程序文件", "*.exe", "选择文件...", "exe", TextPath.Text)
Else
Filename = ShowSaveDialog(Me, "屏幕保护程序", "*.scr", "选择文件...", "scr", TextPath.Text)
End If
If Filename <> "" Then
TextPath.Text = Filename
End If
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
Dim cfn As FLASHNOTE
cfn.strAuthor = TextAuthor.Text
cfn.strCompany = CommapyText.Text
cfn.strMovieName = MovieNameText.Text
cfn.strNote = TextInfo.Text
cfn.strVer = "1.5"
CmdOK.Enabled = False
If OUTTYPE = "EXE" Then
Swf2Exe SoureFileText.Text, TextPath.Text, cfn, "SimplePlayer.exe" '编译可执行程序
Else
Swf2Exe SoureFileText.Text, TextPath.Text, cfn, "SSSaver.scr" '编译为屏保
End If
Unload Me
End Sub
Private Sub Form_Load()
On Error Resume Next
Dim exeFN As FLASHNOTE
SoureFileText.Text = Play.ShockwaveFlash1.Movie
exeFN = getNote(Play.ShockwaveFlash1.Movie)
TextAuthor.Text = exeFN.strAuthor
MovieNameText.Text = exeFN.strMovieName
CommapyText.Text = exeFN.strCompany
TextInfo.Text = exeFN.strNote
If OUTTYPE = "EXE" Then
TextPath.Text = Left(SoureFileText.Text, InStrRev(SoureFileText.Text, "swf") - 1) & "exe"
Label3.Caption = EXE_TEXT
Else
Me.Caption = "编译为屏幕保护程序..."
TextPath.Text = Left(SoureFileText.Text, InStrRev(SoureFileText.Text, "swf") - 1) & "scr"
Label3.Caption = SCR_TEXT
End If
End Sub
'========================================
Private Sub cmdHelp_Click()
If CmdVisibel.Visible = False Then
Me.Width = Me.Width + Label3.Width + 300
Me.Left = (Screen.Width - Me.Width) / 2
CmdVisibel.Visible = True
End If
End Sub
Private Sub CmdVisibel_Click()
Me.Width = Me.Width - Label3.Width - 300
Me.Left = (Screen.Width - Me.Width) / 2
CmdVisibel.Visible = False
End Sub
'======================================
Private Sub MovieNameText_Change()
MovieNameText.ToolTipText = MovieNameText.Text
End Sub
Private Sub SoureFileText_Change()
SoureFileText.ToolTipText = SoureFileText.Text
End Sub
Private Sub TextAuthor_Change()
TextAuthor.ToolTipText = TextAuthor.Text
End Sub
Private Sub CommapyText_Change()
CommapyText.ToolTipText = CommapyText.Text
End Sub
Private Sub TextPath_Change()
TextPath.ToolTipText = TextPath.Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -