FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Nvidia TV out Shortcut script

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


Joined: 11 Apr 2006
Posts: 5

PostPosted: Tue Apr 11, 2006 2:08 pm    Post subject: Nvidia TV out Shortcut script Reply with quote

I have a problem with my TVout support in TVtool
Thats why i cant't switch my TVout with Salling Clicker

I found out that the Nivdia driver supports
hotkeys to toggle to the TV output.

I assigned the key Ctrl+shift+F1 to do this.
Now i tried to make a script for it with the example given in the forum.

But i can't get it to work :cry:

Here do you see the code i have changed:

var widget = CreateKeypadScreen( "mykeypad_" );
widget.title = "shortcut";
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_LCONTROL
VK_LSHIFT
VK_F1
SendKeystroke( 0xB3, false );
}

// Keep the keypad active
return true;
}

what am i doing wrong :(

Greetings,
Patrick
Back to top
View user's profile Send private message
salling
Site Admin


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

PostPosted: Tue Apr 11, 2006 4:47 pm    Post subject: Reply with quote

Hi Patrick,

Please see the note at the top of this thread:

http://www.salling.com/forums/viewtopic.php?t=2930

You should try something like the following in your script:

[code:1]
SendVirtualKeystroke( 0x70, true, true, false, false);
// 0x70 = VK_F1
[/code:1]

Let me know how this works.

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


Joined: 11 Apr 2006
Posts: 5

PostPosted: Wed Apr 12, 2006 1:27 am    Post subject: Reply with quote

It works thnx :D

What do you think of a howto where i will post some explanation and screenshots about assigning the hotkey to the Nvidia driver and where i can post the code? :lol:

if you like the idea should i do it here or in a new topic?
sorry for my bad English, i am from the Netherlands :wink:

thanks for the help,
Patrick
Back to top
View user's profile Send private message
thespeed
Newbie


Joined: 11 Apr 2006
Posts: 5

PostPosted: Wed Apr 12, 2006 12:23 pm    Post subject: Reply with quote

Just a little reply ;)
i found out that my ATI videocard in my laptop also supports hotkeys :D
so it looks possible to switch an ati to TVout with Salling Clicker :D
Back to top
View user's profile Send private message
salling
Site Admin


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

PostPosted: Wed Apr 12, 2006 3:24 pm    Post subject: Reply with quote

That's great news!

You're very welcome to write up a little how-to and post it here in the scripting area of the forums. I'm sure it'd be much appreciated by others wanting to do similar things.

If you also want to post a more "user-oriented" note, feel free to do so in the "Salling Clicker for Windows" area. The forums allow for zip attachments, so it's possible to include easy-to–install script plugins.

Best.
--
Jonas

[quote="thespeed"]Just a little reply ;)
i found out that my ATI videocard in my laptop also supports hotkeys :D
so it looks possible to switch an ati to TVout with Salling Clicker :D[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
thespeed
Newbie


Joined: 11 Apr 2006
Posts: 5

PostPosted: Fri Apr 14, 2006 7:35 pm    Post subject: Reply with quote

[quote="salling"]That's great news!

You're very welcome to write up a little how-to and post it here in the scripting area of the forums. I'm sure it'd be much appreciated by others wanting to do similar things.

If you also want to post a more "user-oriented" note, feel free to do so in the "Salling Clicker for Windows" area. The forums allow for zip attachments, so it's possible to include easy-to–install script plugins.

Best.
--
Jonas

[quote="thespeed"]Just a little reply ;)
i found out that my ATI videocard in my laptop also supports hotkeys :D
so it looks possible to switch an ati to TVout with Salling Clicker :D[/quote][/quote]

Thnx!

I will do my best on writing an how-to.
My girlfriend is here so i don't have much time for it now.
Next week i will post it :lol:

It's a very simple script but is works thanks to your help.

greetings Patrick
Back to top
View user's profile Send private message
Pug
Newbie


Joined: 18 May 2006
Posts: 3

PostPosted: Thu May 18, 2006 3:37 am    Post subject: Reply with quote

@The Speed:

I am hopefully awaiting your tutorial...or rather...openly hopening, that you release a script for ati - screen switching...

This is just another of those things that would make Salling Software perfect, IMHO...


Greetings,

Pug
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