FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

How do i develop scripts for SC?

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
Smeagol
Junior Member


Joined: 15 Oct 2005
Posts: 27
Location: Všnersborg, Sweden

PostPosted: Sat Oct 15, 2005 10:30 am    Post subject: How do i develop scripts for SC? Reply with quote

Hello

How do i develop scripts for SC? :)
How do i get started so to say, are there any pages for me to read?
Back to top
View user's profile Send private message MSN Messenger
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Sat Oct 15, 2005 4:11 pm    Post subject: Reply with quote

Here's a very basic and brief overview. Still good stuff to know if you wanted to glean over the scripts that ship with the product.

Everything you see on your handheld device when using Salling Clicker is the result of mini-applications (scripts) being executed from inside the Salling Clicker application on your computer. In our Windows version, these are VBScript/JScript applications (in the Mac version, AppleScript is the scripting language used).

Salling Clicker provides the scripts with a simple UI framework, allowing them to interact with a user through the handheld device. This framework consists of a number of widgets that can be pushed to the display of the device, and also events that are fired when the user interacts with your widgets.

The types of widgets available include:
- various types of popup dialogs
- optionlists
- text, date, and text input fields
- menus
- mediaplayer

The scripting "object model" that exposes all this is described in the Salling Clicker typelibrary. It can be inspected through a number of tools, including the venerable oleview, but also Visual Studio and others.

A script is packaged in a folder with the following mandatory contents:
- An XML file describing the script
- A script (.js or .vbs) containing the implementation

It's not exactly rocket-science writing scripts, but it's probably not for the absolute beginner either. If you have experience with JScript from web development, that's a very good start.

I hope this helped serve as some sort of introduction. Feel free to post more specific questions, and I'll do my best to help answer them.

Best.
--
Jonas

PS. I'd like to hear from people experimenting with this. I've got a couple of hints to share, like how to enable integration with script debuggers, which will greatly help you.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group