首页| 论坛| 搜索| 消息
主题:AutoPlay Media Studio Professional的基本用法
回帖:例中的10是显示持续的时间)


例:Dialog.SplashFlash("AutoPlay\\Flash\\Intro.swf", 10, false);








8、Dialog.SplashImage


显示一个图片(下例中的10是显示持续的时间)


例:Dialog.SplashImage("AutoPlay\\Images\\d370.jpg", 10, true);








9、Dialog.SplashVideo


显示一个视频(下例中的10是显示持续的时间,对mpg格式支持良好,本人试了试avi,出现了跳桢现象?)


例:Dialog.SplashVideo("AutoPlay\\Videos\\Magnolia.mpg", 10, true);








10、Dialog.TimedMessage


显示一个等待提示框(类似软件安装时弹出的提示框,下例中的2000为持续时间)


例:Dialog.TimedMessage("Please Wait...", "Working...", 2000, MB_ICONINformATION);








其实Dialog.命令大部分都是与其他命令配合使用时才能发挥最佳效果,例如Dialog.Input、Dialog.SplashVideo、Dialog.TimedMessage等都只能提供一个提示框或其他类似提示,如果不与其他命令配合,输入数据和提示视频、动画以及等待信息等等就都没有什么实际意义了。








================================================================================





以下所有关于Folder.的Action:


Folder.Create


建立文件夹


例:Folder.Create("C:\\Stored");





Folder.Delete


删除文件夹(空)


例:Folder.Delete("C:\\Stored");





Folder.DeleteTree


删除文件夹及其内容


例:Folder.DeleteTree("C:\\Stored", nil);





Folder.DoesExist


检查文件夹是否存在并返回“真/假”值,若存在返回“真”,不存在返回“假”。(单独使用无效果,与Dialog.Message等联合使用)


例:检查ProgramFiles文件夹是否存在,并返回提示.


does_exist = Folder.DoesExist(_ProgramFilesFolder);


if does_exist then


Dialog.Message("Notice", "Yes, the folder does exist on your system.", MB_OK, MB_ICONINformATION);


else


Dialog.Message("Notice", "No, the folder does not exist on your system.", MB_OK, MB_ICONINformATION);


end





Folder.Find


在本地系统上查找文件夹


例:found = Folder.Find( Shell.GetFolder(SHF_MYDOCUMENTS),"Plant Data", false);


if (found) then


Dialog.Message("Found one!", "The first folder found was:" .. found[1]);


end





Folder.GetCurrent


返回当前目录的值赋给函数


例:current_dir = Folder.GetCurrent( );





Folder.Rename


重命名文件夹


例:Folder.Rename("C:\\Stored", "C:\\OldStored");注:Stored为旧文件夹名,OldStored为新文件夹名。





Folder.SetCurrent


设置当前目录


例:Folder.SetCurrent("AutoPlay\\Docs");





================================================================================


以下是关于Paragraph的部分Actions(未完)





Paragraph.SetVisible


设置段落是否可见,Ture值为可见,False为不可见。可用于鼠标移入按钮时显示段落文字,移出时段落消失的交互效果。


例:在按钮Action中的On Enter标签中如下设置,为鼠标移入按钮时显示段落文字.


Paragraph.SetVisible("Paragraph1", true);


在按钮Action中的On Leave标签中如下设置,为鼠标移出时段落消失.


Paragraph.SetVisible("Paragraph1", false);





================================================================================


以下是关于Shell部分的相关Actions





1、Shell.CreateShortcut


建立快捷方式


例:在桌面上建立一个指向C:\Program Files\MyApp\app.exe的快捷方式,使用C:\\Program Files\\MyApp\\app.ico的图标.


Shell.CreateShortcut(_DesktopFolder, "My Shortcut", "C:\\Program Files\\MyApp\\app.exe", "", "", "C:\\Program Files\\MyApp\\myicon.ico", 0, SW_MAXIMIZE);





2、Shell.DeleteShortcut


删除快捷方式


例:删除刚才建立的快捷方式


Shell.DeleteShortcut(_DesktopFolder, "My Shortcut");





3、Shell.Execute


执行操作


例:将My Documents目录付给My_Docs变量;然后编辑My Documents中的CompanyInfo.htm网页文件


MyDocs = Shell.GetFolder(SHF_MYDOCUMENTS);


Shell.Execute(MyDocs .. "\\CompanyInfo.htm", "edit", "", "", SW_SHOWNORMAL);





4、Shell.GetFolder


设置目录变量


例:将My Documents目录付给My_Docs变量


My_Docs = Shell.GetFolder(SHF_MYDOCUMENTS);








================================================================================





以下是关于zip部分的Actions





1、Zip.Add


添加文件到压缩文件


例:将AutoPlay\Docs\Prices.txt和Catalog.txt添加到C:\CompanyInformation\Info.zip文件中,将两个文件先付值给FileTable变量,这样可以用一个Zip.Add命令添加这两个文件.


FileTable = {_SourceFolder.."\\AutoPlay\\Docs\\Prices.txt", _SourceFolder.."\\AutoPlay\\Docs\\Catalog.txt"};


Zip.Add("C:\\CompanyInformation\\Info.zip", FileTable, false, "", 5, nil);





2、Zip.Extract



下一页上一页  (3/6)
下一楼›:???????????????????????????????????????????????????????????????????????
‹上一楼:上次的文章中少了Browse CD和Exit CD的做法,另外在Easyboot专题看到有人问片头动画的问题,就一 ..

查看全部回帖(26)
«返回主帖