Create a ScriptModule. Right click below the functions section and select "Add ScriptModule".

Attachment:

add_script_module.JPG [ 25.91 KiB | Viewed 12857 times ]

Right click on the Script Module and Rename it to "TimerScript".

Attachment:

rename_scriptmodule.JPG [ 10.67 KiB | Viewed 12857 times ]

The Script Module will default with the following code.

Code:

namespace Neo.ApplicationFramework.Generated{ using System.Windows.Forms; using System; using System.Drawing; using Neo.ApplicationFramework.Tools; using Neo.ApplicationFramework.Common.Graphics.Logic; using Neo.ApplicationFramework.Controls; using Neo.ApplicationFramework.Interfaces;

public partial class TimerScript {

}}

In the code below, I have edited the TimerScript class to create and initialize two System.Windows.Form.Timer class instances. I have also created two functions "Stop()" and "Start()" that can be used to turn the timers on or off. The timers are configured to 1000 and 250 milliseconds.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum