FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

[Request] GOM Player Remote Help
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
dore9fi
Newbie


Joined: 23 Dec 2008
Posts: 5

PostPosted: Wed Dec 24, 2008 2:03 pm    Post subject: Reply with quote

Thanks a lot joeker

I am finding it difficult to do these 3 other keys
4=Shift + Right Arrow
HASH=Alt + F4
STAR=Launch gom player

if you see the file code, i have done nr 4 but not working.
any tips please?
[code:1]
var widget = CreateKeypadScreen( "mykeypad_" );
widget.title = "GOM Player";
widget.CreateRow( "GOM", scCenter, scClip, scLarge );
widget.CreateRow( "GOM Player", scCenter, scWrap, scMedium );
theTerminal.Push( widget );


theTerminal.Push( widget );

function mykeypad_KeyDown(theScreen, theKey)
{
if( theKey == "s" ) {
// VK_MEDIA_PLAY_PAUSE
SendKeystroke( 0x20, false );
} else if( theKey == "v" ) {
// VK_DOWN
SendVirtualKeystroke( 0x28, false );
} else if( theKey == "^" ) {
// VK_UP
SendVirtualKeystroke( 0x26, false );
} else if( theKey == "<" ) {
// VK_LEFT
SendVirtualKeystroke( 0x25, false );
} else if( theKey == ">" ) {
// VK_RIGHT
SendVirtualKeystroke( 0x27, false );
} else if( theKey == "0" ) {
SendVirtualKeystroke(0x4D,false);
} else if( theKey == "7" ) {
SendVirtualKeystroke(0xBD,false);
} else if( theKey == "9" ) {
SendVirtualKeystroke(0xBB,false);
} else if( theKey == "2" ) {
SendVirtualKeystroke(0x21,false); VK_PRIOR
} else if( theKey == "3" ) {
SendVirtualKeystroke(0x22,false); VK_NEXT
} else if( theKey == "8" ) {
SendVirtualKeystroke(0x0D,false); VK_RETURN
} else if( theKey == "1" ) {
SendVirtualKeystroke( 0x48, false, false, true, false );
} else if( theKey == "5" ) {
SendVirtualKeystroke( 0x44, false, true, false, false );
} else if( theKey == "6" ) {
SendVirtualKeystroke( 0x49, false, true, false, false );
} else if( theKey == "4" ) {
SendVirtualKeystroke( 0x27, true, false, false, false );
}

// Keep the keypad active
return true;
}

function mykeypad_KeyRepeat( theScreen, theKey )
{
if( theKey == "<" ) {
// VK_LEFT
SendVirtualKeystroke( 0x25, false );
} else if( theKey == ">" ) {
// VK_RIGHT
SendVirtualKeystroke( 0x27, false );
} else if( theKey == "u" )
keyRepeated = true;
}
[/code:1]
Back to top
View user's profile Send private message
dore9fi
Newbie


Joined: 23 Dec 2008
Posts: 5

PostPosted: Thu Dec 25, 2008 1:24 am    Post subject: Reply with quote

Update.

I have done all the customizing of the key now, propably with lots of mistakes but it seems to be working for now.
The only key left is the (*star) key which I want it to open Gom Player ( "C:\Program Files\GRETECH\GomPlayer\GOM.exe" ). Anyone please?

The code how it looks now
[code:1]var widget = CreateKeypadScreen( "mykeypad_" );
widget.title = "GOM Player";
widget.CreateRow( "GOM", scCenter, scClip, scLarge );
widget.CreateRow( "GOM Player", scCenter, scWrap, scMedium );
theTerminal.Push( widget );

function mykeypad_KeyDown(theScreen, theKey)
{
if( theKey == "s" ) {
// VK_MEDIA_PLAY_PAUSE
SendKeystroke( 0x20, false );
} else if( theKey == "v" ) {
// VK_VOLUME_DOWN
SendVirtualKeystroke( 0xAE, false );
} else if( theKey == "^" ) {
// VK_VOLUME_UP
SendVirtualKeystroke( 0xAF, false );
} else if( theKey == "<" ) {
// VK_LEFT
SendVirtualKeystroke( 0x25, false );
} else if( theKey == ">" ) {
// VK_RIGHT
SendVirtualKeystroke( 0x27, false );
} else if( theKey == "0" ) {
SendVirtualKeystroke(0xAD,false); VK_VOLUME_MUTE
} else if( theKey == "7" ) {
SendVirtualKeystroke(0xBD,false);
} else if( theKey == "9" ) {
SendVirtualKeystroke(0xBB,false);
} else if( theKey == "2" ) {
SendVirtualKeystroke(0x21,false); VK_PRIOR
} else if( theKey == "3" ) {
SendVirtualKeystroke(0x22,false); VK_NEXT
} else if( theKey == "8" ) {
SendVirtualKeystroke(0x0D,false); VK_RETURN
} else if( theKey == "1" ) {
SendVirtualKeystroke( 0x48, false, false, true, false );
} else if( theKey == "5" ) {
SendVirtualKeystroke( 0x44, false, true, false, false );
} else if( theKey == "6" ) {
SendVirtualKeystroke( 0x49, false, true, false, false );
} else if( theKey == "4" ) {
SendVirtualKeystroke( 0x20, false, true, false, false );
} else if( theKey == "#" ) {
SendVirtualKeystroke( 0x73, false, false, true, false );
}

// Keep the keypad active
return true;
}

function mykeypad_KeyRepeat( theScreen, theKey )
{
if( theKey == "<" ) {
// VK_LEFT
SendVirtualKeystroke( 0x25, false );
} else if( theKey == ">" ) {
// VK_RIGHT
SendVirtualKeystroke( 0x27, false );
} else if( theKey == "u" )
keyRepeated = true;
}
[/code:1]



-----------
Edit
--------------------------------
Its all done now it needed double backslashes to find gom player.
Anyways thanks a lot for the help *joeker*
here are the codes again

Gomeremote.xml [code:1]<?xml version="1.0" encoding="utf-8"?>

<ClickerScript>
<Path>gomremote.js</Path>
<Author>Salling Software AB</Author>
<Category>GOM Player</Category>
<Description></Description>
<UUID>D0189DF0-CF32-4018-9F0F-6EF36B7F9677</UUID>
<Title>GOM Remote</Title>
<Type>ClickerItem</Type>
<URL>http://clicker.salling.com</URL>
</ClickerScript> [/code:1]

Gomremote.js [code:1]var exe = "C:\\Program Files\\GRETECH\\GomPlayer\\GOM.exe"
var widget = CreateKeypadScreen( "mykeypad_" );
widget.title = "GOM Player";
widget.CreateRow( "GOM", scCenter, scClip, scLarge );
widget.CreateRow( "GOM Player", scCenter, scWrap, scMedium );
theTerminal.Push( widget );

function mykeypad_KeyDown(theScreen, theKey)
{
if( theKey == "s" ) {
// VK_MEDIA_PLAY_PAUSE
SendKeystroke( 0x20, false );
} else if( theKey == "v" ) {
// VK_VOLUME_DOWN
SendVirtualKeystroke( 0xAE, false );
} else if( theKey == "^" ) {
// VK_VOLUME_UP
SendVirtualKeystroke( 0xAF, false );
} else if( theKey == "<" ) {
// VK_LEFT
SendVirtualKeystroke( 0x25, false );
} else if( theKey == ">" ) {
// VK_RIGHT
SendVirtualKeystroke( 0x27, false );
} else if( theKey == "0" ) {
SendVirtualKeystroke(0xAD,false); VK_VOLUME_MUTE
} else if( theKey == "7" ) {
SendVirtualKeystroke(0xBD,false);
} else if( theKey == "9" ) {
SendVirtualKeystroke(0xBB,false);
} else if( theKey == "2" ) {
SendVirtualKeystroke(0x21,false); VK_PRIOR
} else if( theKey == "3" ) {
SendVirtualKeystroke(0x22,false); VK_NEXT
} else if( theKey == "8" ) {
SendVirtualKeystroke(0x0D,false); VK_RETURN
} else if( theKey == "1" ) {
SendVirtualKeystroke( 0x48, false, false, true, false );
} else if( theKey == "5" ) {
SendVirtualKeystroke( 0x44, false, true, false, false );
} else if( theKey == "6" ) {
SendVirtualKeystroke( 0x49, false, true, false, false );
} else if( theKey == "4" ) {
SendVirtualKeystroke( 0x20, false, true, false, false );
} else if( theKey == "#" ) {
SendVirtualKeystroke( 0x73, false, false, true, false );
} else if (theKey=="*") {
new ActiveXObject("Shell.Application").ShellExecute( exe );
}

// Keep the keypad active
return true;
}

function mykeypad_KeyRepeat( theScreen, theKey )
{
if( theKey == "<" ) {
// VK_LEFT
SendVirtualKeystroke( 0x25, false );
} else if( theKey == ">" ) {
// VK_RIGHT
SendVirtualKeystroke( 0x27, false );
} else if( theKey == "u" )
keyRepeated = true;
}
[/code:1]

and this is what the keys do[code:1]"Gom Player"
[OK] - Play/Pause
[↑/↓] - Master Volume up/Down
[←/→] - Reverse/Forward + Hold down for Fast Reverse/Forward
[1] - Subtitles On/Off
[2/3] - Previous/Next file
[4] - Stop
[5] - Open Directory
[6] - Easy Browser
[7/9] - Zoom Out/In
[8] - Full Screen
[0] - Mute [master volume]
[#] - Exit
[*] - Start gomplayer
[/code:1]

Thank god I did it just before Christmas day. Hallelujah
lol
Back to top
View user's profile Send private message
joeker
Junior Member


Joined: 31 Mar 2007
Posts: 58

PostPosted: Fri Dec 26, 2008 5:54 pm    Post subject: Reply with quote

Sorry for the slash blunder .. Glad you figured it out yourself, good job!

Happy holidays!
Back to top
View user's profile Send private message
frosT88
Newbie


Joined: 07 Apr 2009
Posts: 2

PostPosted: Tue Apr 07, 2009 6:04 pm    Post subject: share? :D Reply with quote

after u finish would you mind sharing with others? :D
please...because i also use GOM player and would love to be able to control it! :)
Back to top
View user's profile Send private message
bB
Newbie


Joined: 23 Apr 2009
Posts: 13

PostPosted: Thu Apr 23, 2009 9:49 pm    Post subject: <slightly>offtopic Reply with quote

*edit* Fros, read first next time.
@frosty (next post): Cleaned post, hope you could do the same.
[size=9]I wasn't attacking, so no need for you to do so either; we could try being adults.[/size]


Last edited by bB on Thu Apr 30, 2009 4:10 pm; edited 3 times in total
Back to top
View user's profile Send private message
frosT88
Newbie


Joined: 07 Apr 2009
Posts: 2

PostPosted: Fri Apr 24, 2009 9:14 am    Post subject: Reply with quote

If everybody would think like you there would be no evolution!
Your reply is... irrelevant, stupid and clearly offtopic.
If you can't help, then just shut up.
The role of this forum is to talk issues about scripts,ideeas for new ones, and of course share!!!

And just for your information, i was able to modify the script to suite my needs.
If you would look closer you would see that was my first post, and i did not know at first where i could download. But we all live and learn.

And now to be on topic: 10x to all of you for the hard work! ;)
Back to top
View user's profile Send private message
dore9fi
Newbie


Joined: 23 Dec 2008
Posts: 5

PostPosted: Thu Jul 16, 2009 11:14 pm    Post subject: Reply with quote

Just updated this GomPlayer script

Enjoy



Gom Player.zip
 Description:

Download
 Filename:  Gom Player.zip
 Filesize:  1.35 KB
 Downloaded:  1167 Time(s)

Back to top
View user's profile Send private message
Deveron28
Newbie


Joined: 08 Apr 2009
Posts: 6

PostPosted: Tue Dec 01, 2009 5:59 pm    Post subject: Reply with quote

Can someone please design a GOM player script with buttons I can press for FF, RW, Play, Stop etc... for my 5800 as this phone has no buttons...

Thanks
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
Goto page Previous  1, 2
Page 2 of 2

 
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