FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

assigning the "back" arrow to a hardware key

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


Joined: 16 Jan 2006
Posts: 2

PostPosted: Mon Jan 16, 2006 1:46 pm    Post subject: assigning the "back" arrow to a hardware key Reply with quote

Hi - just got Clicker and i'm loving it so far. I've started messing about with the scripts a bit, and i was wondering whether its possible to assign a hardware key to the "go back" arrow that appears in the bottom left hand corner of the screen (my device is a palm tx). It seems to be a function thats built into the client rather than into the individual scripts, so I can't work out how to call it. I'm not exactly an expert when it comes to programming, so forgive me if its obvious.
Thanks
Tom
Back to top
View user's profile Send private message
salling
Site Admin


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

PostPosted: Mon Jan 16, 2006 2:37 pm    Post subject: Reply with quote

Return false from the keyDown or keyUp handler.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
thepunypenguin
Newbie


Joined: 16 Jan 2006
Posts: 2

PostPosted: Mon Jan 16, 2006 4:44 pm    Post subject: Reply with quote

Sorry, I'm feeling fairly stupid, but I can't actually get that to work. Probably partly because I'm not sure exactly what you mean. To clarify, I'm trying to adapt the itunes script so that when I hit the "c" button on my palm, the screen goes back to the last one (eg if i'm in the "more" menu I go back to the player screen, or if I'm in the player screen I go back to the starting screen). This is the bit of code I assume I should be messing about with, but I've tried several things and none of them work.
[code:1]
function mediaPlayer_KeyUp(theScreen, theKey)
{
if (theKey == "*") {
// Display the OptionsList
moreMenu.selectedItem = setting_moremenu_item;
theTerminal.Push(moreMenu);

} else if (theKey == "c") {
return false;
[/code:1]
Cheers for the fast reply anyway,
Tom
Back to top
View user's profile Send private message
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