Start by using the "Product File Creator" tool under the "Tools" menu in WinScript Live.
This will allow you to easily define your product, communication method, and custom events.
There is also a document that defines all of the functions and mathematical symbols you can use in the product files found here:
Important Note: you may not be able to use the Product File Creator tool again if you've manually edited the file.