Teach you to use the Button Wizard to make a timer reminder gadget!

Source: Internet
Author: User
Tags current time set time

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.