Key Wizard is the most popular action script development software, most of the mainstream game aids in the country is also used to make the program. But do you think that the function of the keystroke Genie is limited to this? Then you are wrong. Action Script application range, improve our office efficiency, for life to provide convenient function is the use of key script, today teaches three minutes to make automatic timer gadgets! Make your schedule more reasonable!
1, script function: Press F10 to start a timer reminder.
2, script use instructions: Set a good time-> start.
3, the production of ideas
A. Always get the current time
B. Calculate whether the current time is in line with the setup time
C. If you match the set time frame reminder
4, the script production process
First, create a new script and click New on the main screen.
After you enter the editor, you can see the editor's interface.
Click on the "source file" above the interface to enter the source edit state.
The first step, according to the idea, is to create a loop-controlled structure with the following code:
The framework has been set up, and the next step is how to make time judgments. Here we introduce a time function command. Time: Returns the current system times.
With the support of this function. The next thing we need to do is to compare the return value of this function with the time we expect. In the key wizard you just use if (if) ... Then (Then) ... can solve this problem. We thought we'd let him pop a reminder box at 15 o'clock in the afternoon to tell us the time was up.
If you want to see how this sentence is translated in the Key Wizard, click the "Normal" view in the editing area. Effect as shown:
Edit the code, just click "Save Exit", and then press the keyboard "F10" button, you can do what you want to do, to 15 points, the screen center will pop up a small dialog box, which says "time is up." The effect chart is as follows: