FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Code for PgUp and PgDown

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


Joined: 23 Apr 2009
Posts: 4

PostPosted: Thu Apr 23, 2009 10:21 pm    Post subject: Code for PgUp and PgDown Reply with quote

I need my Nokia E61 to control a presentation program which very simply essentially requires only two inputs: PgUp and PgDown (Ctrl + F would be nice but not essential).

I've seen on this forum sufficient examples that I think I can create a script if I have the keystroke codes (ie 0x26 etc) for PgUp and PgDown - can anybody let me know what they are or point me to a good resource where they can be found.
Back to top
View user's profile Send private message
jae_63
Senior Member


Joined: 29 Mar 2006
Posts: 79
Location: Bethesda, MD

PostPosted: Thu Apr 23, 2009 10:55 pm    Post subject: Reply with quote

Here's a code fragment that I wrote a while back. I'm pretty sure that these are PageUp/PageDown; perhaps they're the Up/Down arrows instead.

HTH ...


[code:1]var widget = CreateKeypadScreen( "mykeypad_" );
widget.title = "Sample PageUp/PageDown";
widget.CreateRow( "Demo", scCenter, scClip, scLarge );
widget.CreateRow( "Use the d-pad", scCenter, scWrap, scMedium );
theTerminal.Push( widget );


function mykeypad_KeyDown(theScreen, theKey)
{
if (theKey == "^") {
SendVirtualKeystroke(0x21,0,0,0,0);
} else if (theKey == "v") {
SendVirtualKeystroke(0x22,0,0,0,0);
}

return true;
}

[/code:1]
Back to top
View user's profile Send private message
prefio
Newbie


Joined: 23 Apr 2009
Posts: 4

PostPosted: Thu Apr 23, 2009 11:01 pm    Post subject: PgUp and PgDown Reply with quote

Thanks - I'll give it a go and let you know.
Back to top
View user's profile Send private message
prefio
Newbie


Joined: 23 Apr 2009
Posts: 4

PostPosted: Fri Apr 24, 2009 11:37 am    Post subject: Thankyou Reply with quote

Thanks - it works a treat.

Now for the Rolls Royce solution - I wonder whether I can see a thumbnail of my PC screen on my Nokia E61? I'll make a seperate post about that.
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 -> 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