FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

My first atempt!

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


Joined: 06 Dec 2005
Posts: 11

PostPosted: Mon Dec 19, 2005 9:54 pm    Post subject: My first atempt! Reply with quote

How to write a simple script for PALM for controling my Easy TV program with the following actions: PalmKEY-ProgramAction-ProgramShortcut (UP -next(n), DOWN-prewious(p), LEFT-volume up (+), RIGHT-volume down(-), CENTER-record(R) and if I press one more to STOP the recording process (S)). I tried with the tutorial script and is making: UP-jump to channel 6, DOWN-jump to channel 8, LEFT-jump to channel 5, and nothing more. If Im changing something in the script, the script doesnt work anymore. What is 0x25, 0x26, 0x27 in the script? I replaced this with the corresponding HEX characters for N, P, R, S but doesnt work. What is wrong? Maybe an program to make more simple the writing of scripts process? Please take a look at Girder.


[code:1]
var widget = CreateKeypadScreen( "mykeypad_" );
widget.title = "Keypad Sample";
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 == "s" ) {
// VK_MEDIA_PLAY_PAUSE
SendKeystroke( 0xB3, false );
} else if( theKey == "v" ) {
// VK_DOWN
SendKeystroke( 0x28, false );
} else if( theKey == "^" ) {
// VK_UP
SendKeystroke( 0x26, false );
} else if( theKey == "<" ) {
// VK_LEFT
SendKeystroke( 0x25, false );
} else if( theKey == ">" ) {
// VK_RIGHT
SendKeystroke( 0x27, false );
} else if( theKey == "u" ) {
// VK_VOLUME_UP
SendKeystroke( 0xAF, false );
} else if( theKey == "d" ) {
// VK_VOLUME_DOWN
SendKeystroke( 0xAE, false );
} else if( theKey == "c" ) {
// VK_VOLUME_MUTE
SendKeystroke( 0xAD, false );
}

// Keep the keypad active
return true;
}
[/code:1]
Back to top
View user's profile Send private message
guiome
Newbie


Joined: 10 Feb 2006
Posts: 7

PostPosted: Fri Feb 10, 2006 1:38 pm    Post subject: Remote Shockwave Reply with quote

Here is a code for virtual keystoke (28 is down arrow, 26 is up arrow... and so on).
It works on any application but not on a Shockwave.exe
Does anyone know why ?

Thanks


function mykeypad_KeyDown( theScreen, theKey )
{
try {
if( theKey == "v" ) {
SendVirtualKeystroke(0x28,false,false,false);
} else if( theKey == "^" || theKey == "r") {
SendVirtualKeystroke(0x26,false,false,false);
} else if( theKey == "<" || theKey == "u") {
SendVirtualKeystroke(0x25,false,false,false);
} else if( theKey == ">" ) {
SendVirtualKeystroke(0x27,false,false,false);
}
} catch( e ) {}
return true;
}
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