The company's software is going to be released, and I want to make a CD to start it myself. So I am reading this and taking a note.
1. First, prepare materials such as the background image, the mobile sound of the button, the clicking sound of the button, the decorative pattern, and the starting sound. First, create a blank project and set the style item to image in the properties panel on the right (the properties panel is the attribute of the entire project) then select the location of your background image in the decentralized image option.
2. Add the title in the second step. Select Insert-label in the menu bar and add the title. You can also select the button in the shortcut button or press Ctrl + 2. Enter the label to be displayed in text in the object under the settings tab. Select font can set the font size. Alignment can be used to set alignment. In State colors, set the normal color, the highlighted color to move to the top, and the color to be clicked. Here I set all of them to white and set them to white in normal, click match normal.
3. Add the button in step 3. Select the first "insert" icon in the left gallery panel to display the library that comes with the software. Select the appropriate button and drag it to the project. Double-click the button to open its property panel button properties, or you can directly modify the parameters of the button in the properties panel on the right. We recommend that you double-click the button properties panel and enter the text to be displayed on the button in settings-object-text. Other options are the same as the title setting method. You can set the button name and Display Effect in attributes-properties-object, postition can set the button position, and feedback can set the pointer and display text to move the mouse to the button, sounds-highlight is the sound of the mouse moving over the button, and click is the sound of the mouse clicking. The action tag is the most important, that is, the action language of the program to run after clicking the button. There are three situations: On click, on enter, and on leave. We mainly use on click and on leave. Click Add action under on click. The new action wizard dialog box is displayed. Select an action from the drop-down menu of step 1-Choose. For example, if you want to install a software, select the file option. All file actions will appear in the list under step 2-choose an. Select File. run, which is the action for running a file. A blue file will appear under the list. run font. Click it to view help. Click Next and select the program or resource you want to connect to in source. Other options can be ignored. Click Finish. When the program we want to do needs to copy the file to the installation folder for registration, such as winrar3.2 and flashget1.4, we need to use the on leave label, select Add action, select shell for the action type, then select shell. getfolder command. I want to locate the progarm file folder, because the WinRAR folder is under the progarm file folder, and we cannot directly copy it to the WinRAR folder. Click Next and select shf_programfiles in type. In this case, the following command line will show result = shell. getfolder (shf_programfiles); we will change result to destfolder. Then add a file. copy action (methods are all known), select the source location as the file we want to copy, and set destination to destfolder .. "// WinRAR //" click to finish (note the quotation marks ). In this way, we can copy the file.
4. Add the window below, use fireworks to make the window, and then click Insert-image or use the shortcut button or Ctrl + 4 to insert it. Then use object-lock-selection to compress it, so that the image in the window will not be touched. Use the same command to insert an appropriate image as an image in the window.
5. Insert-hotspot is used to insert a text segment (Hotspot is used to insert a paragraph, while label is used to insert a title) and adjust it to a proper position. Select width and height in project-WINDOS settings to adjust the width and height. Select "add" in project-audio settings to add a Startup sound file tip garden. Gather a mega about the drought South Bu media's workshop and lie. If the sound file is screwed by h, then the attacker will take the meide sodium fan hoop tip. define roject-startup movie to set an opening animation (Flash is also acceptable !) Finally, you can use F5 to preview and generate it with F7. Note that hard drive folder is selected under build & publish target, and then select the CD folder to be created.
By the way, you can also directly open the software's built-in touchpad to see how its action is written. In short, good English people take advantage of it, when I look at help like this, I guess it's confusing. If I have something wrong, please correct me. In fact, the action of this software is very powerful and can be used to make many startup interfaces for different purposes. If you are interested, you can refer to his help. I also learned from help, I have not tried other actions yet. I believe that everyone's imagination is richer than me, and they will certainly be able to make better. Wish you success! Ah, it's been a long time. It's time to wait!
If you do not like the buttons that come with the software, you can use Photoshop to prepare the buttons (at least two statuses are required: normal upload and click Save to save as. PNG files (because PNG files support transparent backgrounds ), in this way, you can customize buttons in the button editing tool that comes with autoplay media studio professional. Of course, you can also use Photoshop to make a background with options, you can also customize the menu selection by using autoplay media studio professional hotspot editing.
The practices of browse CD and exit cd are missing in the article. In addition, when I see a question about titles animation in the easyboot topic, let's talk about it together. If any, please correct me!
1. To add a title animation, select project-startup movie and select play startup moive in the displayed dialog box. In startup movie, select the video or Flash format for the title animation. Select the animation position in filename. In window size, select whether the window is full screen or custom size. Media size is the size of the selected media, and fit to window is the size of the window. Style is some style settings.
See figure 1.
2. Browse CD is the content button of the browsing disc by clicking Add action in actions and selecting the export efolder command in file. Click "Next" and select defaultfolder to set your default browsing directory.
My command is as follows:
File. incluefolder ("autoplay", sw_shownormal );
3. Exit CD is the exit button. You can click Add action in action and select application. Exit () in application.
Subinterface jump function:
See figure 2.
The playback button code is as follows:
Audio. Load (channel_user1, "autoplay // audio // The Woods ().ogg", false, false );
Audio. Play (channel_user1 );
"Autoplay // audio // The Woods ().ogg", is the file name you want to play. The Code indicates that the file to be played is first found and then played.
The pause button code is as follows:
Audio. Stop (channel_user1 );
Description of some actions in autoplay media studio professional V5.0
The following are some actions (incomplete) about the application)
(1). Application. Exit
Close Window
For example, disable the automatic running interface.
Application. Exit ();
(3). Application. getlasterror
Returns the final error code. (This code is used together with dialog. Message without actual effect)
For example, return the final error code and pay it to the nerror variable.
Nerror = application. getlasterror ();
It can be used with the if judgment and the dialog. Message command:
Print the AutoPlay/docs/myfileloud file, and check whether there is an error in the execution of the action. Return the error code to the error variable. If the error code is not 0 (that is, there is an error) it is displayed in a dialog box.
File. Print ("autoplay // docs // myfileprohibited ");
Error = application. getlasterror ();
If (error ~ = 0) then
Dialog. Message ("error", _ tblerrormessages [Error], mb_ OK, mb_iconexclamation );
End
Error Code range:
(9999) Unknown error code
(1000-1099) file-related errors
(1100-1199) command attribute errors
(1200-1299) audio-related errors
(1300-1399) page errors
(1400-1499) Status dialog box errors
(1500-1599) INI file errors
(1600-1699) Registration Errors
(1700-1799) ListBox errors
(1800-1899) system errors
(1900-1999) text file errors
(2000-2099) window related errors
(2100-2199) drive errors
(2200-2299) folder action-related Error
(2300-2399) Shell Action Errors
(2400-2499) DLL errors
(2500-2599) HTTP errors
(2600-2699) compressed file errors
(2700-2799) Error in prompt box
(2800-2899) application errors
(2900-2999) internal function errors
(3000-3099) string-related errors
(7). Application. loadscript
Read Lua script file
For example, read the AutoPlay/scripts/addedfunctionality. Lua script.
Application. loadscript ("autoplay // scripts // addedfunctionality. Lua ");
(9). Application. Minimize
Minimal Interface
Example: Minimal Interface
Application. Minimize ();
(10). Application. Restore
Restore Interface
Example: Restore the interface
Application. Restore ();
(11). Application. runscriptfile
Run Lua script
For example, run the myscript. Lua script file.
Application. runscriptfile (_ sourcefolder... "// myscript. Lua ");
========================================================== ================================
The following are all actions about file:
1. file. Copy
Copy the target file to the specified directory
Example: file. Copy ("C: // mydir/*. *", "C: // destdir/", true, true, false, true, nil );
2. file. Delete
Delete the target file
Example: file. Delete ("C: // mydir // myfile. Ext", false, nil );
3. file. deleteonreboot
Delete the target file at next Startup
Example: file. deleteonreboot ("C: // mydir // myfile. Ext ");
4. file. doesexist
Determine whether the target file exists or not and obtain the "true" value; otherwise, obtain the "false" value. (It is ineffective for use independently, and can be used together with dialog. Message)
Example: are_ya_there = file. doesexist (_ windowsfolder... "// system. ini ");
5. file. incluefolder
Folder browsing
Example: file. incluefolder ("C: // Documents and Settings", sw_maximized );
6. file. Find
Searching for files on the local hard disk (ineffective for separate use, combined with dialog. Message)
Example: Found = file. Find (shell. getfolder (shf_mydocuments), true, false, "*. pdf ");
If (found) then
Dialog. Message ("found one! "," The first PDF file found was: ".. found [1]);
7. file. getattributes
Obtain the attributes of the target file system (it is ineffective to be used independently and must be used together with other commands)
For example, attrib = file. getattributes (_ tempfolder .. "// mytempfile. tmp ");
Breadonly = attrib. readonly;
Strcreationdate = attrib. creationdate;
8. file. getcrc
Obtain a CRC value for the target file (used to check the file after downloading and use the file with no effect, and used together with file. Run and dialog. Message)
For example, crc_value = file. getcrc (_ tempfolder .. "// setup.exe ");
If crc_value = 824907888 then
File. Run (_ tempfolder .. "// setup.exe", "", "", sw_shownormal, true );
Else
Result = dialog. Message ("error", "the downloaded file is incomplete. Please try downloading again.", mb_ OK, mb_iconstop, mb_defbutton1 );
9. file. getdefaviewer Viewer
Obtain the open method of the target file type (it is ineffective to use it independently and must be used together with other commands. In this example, the default open mode for JPG is obtained)
Example: result = file. getdefaviewer Viewer (". jpg ");
10. file. getshortname
Obtain a DOS 8.3 file name for a long file name (it is ineffective to use it independently. I personally think it should be used together with other commands)
Example: short_version = file. getshortname ("C: // program files // autoplay media studio 5.0 // ams50.exe ");
Result: C:/progra ~ 1/autopl ~ 1/ams50.exe
11. file. getsize
Obtain the size of the target file (use it with no effect and use it with other commands)
For example, file_size = file. getsize (_ tempfolder .. "// setup.exe ");
12. file. getversioninfo
Obtain the version information of the target file (if it is used separately, it is ineffective. Use it with other commands and pay the obtained information to other functions)
Example: version_info = file. getversioninfo (_ programfilesfolder... "// doopernator // doopernator.exe ");
13. file. Install
Install the DLL file to the system (with dialog. message, application. getlasterror is used in combination. In the following example, the successfully installed function is paid and the application is used. getlasterror fails to get the error, and then determines whether the installation is successful or not. If the installation fails, use dialog. messag output error message)
Example: Success = file. Install ("autoplay // docs // cooltoy. dll", _ systemfolder .. "// cooltoy. dll", file_install_always );
Error = application. getlasterror ();
If success = false then
Dialog. Message ("error", _ tblerrormessages [Error], mb_ OK, mb_iconexclamation );
14. file. Move
Move the target file to the specified directory (Note: _ tempfolder is the temp folder, _ programfilesfolder... is the Program Files folder, and _ windowsfolder... is the system folder)
Example: file. Move ("autoplay // docs // *. txt", _ tempfolder .. "// text files", false );
15. file. moveonreboot
Move the file to the specified directory at next Startup
For example, file. moveonreboot (_ tempfolder .. "// setup.exe", "C: // setup.exe ");
16. file. Open
Open the file (if it points to the EXE file, it will be copied to autoplay/docs/by default and then executed). To play a video file, use this command, file. run cannot be implemented.
Example: file. Open ("autoplay // docs // ad4.92.exe", "", sw_shownormal );
17. file. openemail
Send an email (you can also add a title)
Example: file. openemail ("[url = mailto: yu346704@sohu.com] yu346704@sohu.com [/url]");
File. openemail ("[url = mailto: yu346704@sohu.com] yu346704@sohu.com [/url]? Subject = Good luck ", sw_shownormal );
18. file. Openurl
Open a webpage in the default browser
Example: file. Openurl ("www.baidu.com", sw_maximize );
19. file. Print
Print Document
Example: file. Print ("autoplay // docs // 1.txt ");
20. file. Rename
Rename the specified file name (which can be used for batch processing files)
Example: file. Rename ("C: // 1.txt"," C: // 2.exe ");
21. file. Run
Run the file (directly in the original directory for software installation on the startup Interface)
Example: file. Run ("autoplay // docs // ezb456cn-s.exe", "", "", sw_shownormal, false );
22. file. runonreboot
Run the target file at next Startup
Example: file. runonreboot (_ tempfolder .. "// setup.exe", "/W ");
23. file. setattributes
Set the system attributes of the target file (you can obtain the attributes using file. getattributes, modify the attributes, or directly create an empty attribute. Replace the first sentence with attrib = .)
Be sure to note that = the attributes after the functions used before (attrib in this example) must be consistent (attrib. readonly, attrib. the same function ("C: // command. com ", attrib)
Example: attrib = file. getattributes ("C: // command. com ");
Attrib. readonly = true;
Attrib. Hidden = true;
File. setattributes ("C: // command. com", attrib );
========================================================== ======================
The following is the action about dialog.
1. Dialog. filebrowse
The find file dialog box is displayed.
Example: result = dialog. filebrowse (true, "locate file", _ folder topfolder, "All files (*. *) | *. * | "," "," dat ", false, false );
2. Dialog. folderbrowse
The Browse folder dialog box is displayed. (only the folder level is displayed, but the folder content is not displayed)
Example: result = dialog. folderbrowse ("Please select a folder:", "autoplay // Docs ");
3. Dialog. Input
The input dialog box is displayed.
Example: result = dialog. Input ("Enter data", "Your answer:", "", mb_iconquestion );
4. Dialog. maskedinput
Input data in the specified format (########## for the specified format, 2045559923 for the default data)
Example: result = dialog. maskedinput ("Enter data", "your phone number:", "(###########", "2045559923", mb_iconquestion ,"");
5. Dialog. Message
A warning message is displayed.
Example: Dialog. Message ("failure", "the file on your system is not valid .");
6. Dialog. passwordinput
Enter the Password dialog box (enter the number * with the application. exit () can be used together to confirm the password. In the following example, valid is used as the password and paid to real_password. passwordinput: enter a password and pay it to user_password. If it is equal to real_password, the interface is displayed. Otherwise, the application is used. exit () Exit the interface)
Note: (The following is the standard format of an if judgment statement, with the XXXX in the middle line. It is a command that meets the conditions for execution after judgment. Because it is a command, it must contain. In this example, the first two statements are the pay-as-you-go Statement, which is to pay the valid to real_password and the user input to user_password)
If XXXX ~ = XXXX then
Xxxx;
End
Example: real_password = "valid ";
User_password = dialog. passwordinput ("password", "Please enter the password:", mb_iconquestion );
If real_password ~ = User_password then
Application. Exit ();
End
7. Dialog. splashflash
Display a flash prompt box (10 in the following example shows the duration)
Example: Dialog. splashflash ("autoplay // flash // intro.swf", 10, false );
8. Dialog. splashimage
Show an image (10 in the following example shows the duration)
Example: Dialog. splashimage ("autoplay // images // d370.jpg", 10, true );
9. Dialog. splashvideo
Show a video (10 in the following example is the display duration, which has good support for the MPG format. I tried Avi and found the Skip phenomenon ?)
Example: Dialog. splashvideo ("autoplay // videos // Magnolia. mpg", 10, true );
10. Dialog. timedmessage
A waiting box is displayed (similar to the prompt box popped up during software installation, 2000 in the following example is the duration)
Example: Dialog. timedmessage ("Please wait...", "working...", 2000, mb_iconinformation );
In fact, dialog. most commands work with other commands to achieve the best effect, such as dialog. input, dialog. splashvideo and dialog. timedmessage and so on can only provide one prompt box or other similar prompts. If it does not work with other commands, inputting data and prompting videos, animations, and waiting information will have no practical significance.
========================================================== ======================================
All the following actions about folder:
Folder. Create
Create a folder
Example: folder. Create ("C: // stored ");
Folder. Delete
Delete a folder (empty)
Example: folder. Delete ("C: // stored ");
Folder. deletetree
Delete folders and their contents
Example: folder. deletetree ("C: // stored", nil );
Folder. doesexist
Check whether the folder exists and return the "true/false" value. If the folder exists, return "true". If the folder does not exist, return "false ". (It is ineffective for use independently, and can be used together with dialog. Message)
For example, check whether the ProgramFiles folder exists and return a prompt.
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
Search for folders on the local system
Example: 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
Returns the value of the current directory to the function.
Example: current_dir = folder. getcurrent ();
Folder. Rename
Rename a folder
Example: folder. Rename ("C: // stored", "C: // oldstored"); Note: stored is the name of the old folder, and oldstored is the new folder name.
Folder. setcurrent
Set the current directory
Example: folder. setcurrent ("autoplay // Docs ");
========================================================== ==================================
The following are some actions (unfinished) about paragraph)
Paragraph. setvisible
Set whether the paragraph is visible. The true value is visible, and the false value is invisible. It can be used to show the paragraph text when you move the mouse into the button, and the interaction effect when the time window is removed disappears.
For example, in the on enter label of the button action, the Section text is displayed when the mouse moves into the button.
Paragraph. setvisible ("paragraph1", true );
In the On leave label of the button action, the settings are as follows.
Paragraph. setvisible ("paragraph1", false );
========================================================== ====================================
The following table describes the shell related actions.
1. Shell. createshortcut
Create shortcuts
For example, create a shortcut pointing to C:/program files/MyApp/app.exe on the desktop and use the icon C: // program files // MyApp // app. ICO.
Shell. createshortcut (_ folder topfolder, "my folder cut", "C: // program files // MyApp // app.exe", "C: // program files // MyApp // myicon. ICO ", 0, sw_maximize );
2. Shell. deleteshortcut
Delete shortcuts
Example: Delete the created shortcut
Shell. deleteshortcut (_ partition topfolder, "My partition cut ");
3. Shell. Execute
Perform operations
For example, pay the my documents directory to the my_docs variable, and edit the companyinfo.htm webpage file in my documents.
Mydocs = shell. getfolder (shf_mydocuments );
Shell. Execute (mydocs .. "// companyinfo.htm", "edit", "", "", sw_shownormal );
4. Shell. getfolder
Set Directory Variables
For example, pay the my documents directory to the my_docs variable.
My_docs = shell. getfolder (shf_mydocuments );
========================================================== ====================================
The following is the actions of the zip section.
1. Zip. Add
Add a file to a compressed file
For example, add autoplay/docs/prices.txtand catalog.txt to the C:/companyinformation/info.zip file, and first pay the two files to the filetable variable so that you can use a zip file. add command to add these two files.
Filetable = {_ sourcefolder .. "// autoplay // docs // prices.txt", _ sourcefolder .. "// autoplay // docs // catalog.txt "};
Zip. Add ("C: // companyinformation // info.zip", filetable, false, "", 5, nil );
2. Zip. Extract
Decompress the file
For example, extract all files in autoplay/docs/graphics.zip to the C:/graphics directory.
Zip. extract ("autoplay // docs // graphics.zip ",{"*. * "}," C: // graphics ", true, true," ", 3, nil );
3. Zip. getcontents
Returns the content of the compressed file. (If this parameter is used separately, the return value is obtained)
For example, get the AutoPlay/docs/info.zip content list and pay the value to the zip_contents variable.
Zip_contents = zip. getcontents ("autoplay // docs // info.zip", true );