FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

First post!

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon Apr 11, 2005 6:15 pm    Post subject: First post! Reply with quote

You know, having the first post doesn't seem as much fun as it did in my youth...

Anyway, I'm looking for information on how to display things on the phone (messages, lists). There used to be some basic info on how to do this on your web page, but no longer. I have done some introductory Apple Event/Applescript examples for Carbon and Cocoa applications...look down at the bottom of http://homepage.mac.com/donbriggs/

Once I figure out how to do some Salling Clicker screen stuff, I could post examples in this vein too.

Dave
Back to top
glasspusher
Newbie


Joined: 11 Apr 2005
Posts: 6
Location: Oakland, California

PostPosted: Mon Apr 11, 2005 6:23 pm    Post subject: Reply with quote

That guest poster above is me. Forgot to log in, don't mean to be so secretive.

Dave
Back to top
View user's profile Send private message AIM Address
salling
Site Admin


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

PostPosted: Mon Apr 11, 2005 6:38 pm    Post subject: Clicker's widgets Reply with quote

Ok. I'll try to kick things off then by listing the types of UI widgets a script can manage on the connected device:

- List/menu
- Option list
- Message box
- Popup
- Yes/no popup (question)
- Date input
- Time input
- Text input
- Keypad widget (full-screen free-form display + keypad/pen input)
- On/off switch
- Slider

A script can "push" any such widget by issuing a "enter ... mode" command, like so:

[code:1]
tell app "SEC Helper"
enter boolean popup mode question "Really?"
end tell
[/code:1]

Obviously, for things to get interesting, user input will have to be handled. This is done by specifying a callback handler:

-------------

[code:1]
tell app "SEC Helper"
enter boolean popup mode question "Really?" affirmative response "my_response"
end tell

on my_response(do_it)
(* do stuff here *)
end my_response
[/code:1]

-------------

Widget invocations can be "nested" to create a conversational UI:

[code:1]
tell app "SEC Helper"
enter boolean popup mode question "Really?" affirmative response "my_response"
end tell

on my_response(do_it)
if do_it is 1 then
tell app "SEC Helper" to enter popup mode text "You did it!"
end if
end my_response
[/code:1]

-------------

I hope this gave some flavor for how scripting works in Clicker. Version 3.0 will improve the scripting model quite a bit, while keeping compatibility with the type of scripts shown above.

Let me know if there's a particular kind of widget you'd like more information about.

Best.
--
Jonas

[quote="Anonymous"]You know, having the first post doesn't seem as much fun as it did in my youth...

Anyway, I'm looking for information on how to display things on the phone (messages, lists). There used to be some basic info on how to do this on your web page, but no longer. I have done some introductory Apple Event/Applescript examples for Carbon and Cocoa applications...look down at the bottom of http://homepage.mac.com/donbriggs/

Once I figure out how to do some Salling Clicker screen stuff, I could post examples in this vein too.

Dave[/quote]
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 Mac 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 cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group