Re: Remote Control



Hi,

I followed your suggestion, and it basically works.
But I have still 2 issues left.

1) Setting volume seems to be complicated (????) and is not working.
I call WaveOutOpen to get a usable handle for WaveOutSetVolume.
Unfortunately I need to specify a wave-format.
I donot want to know this !!!
It was working OK on device nr1, when trying it on device nr2, it said the
format was not supported. I changed the format, and it stopped complaining.
But now the volume does not change anymore. WaveOutSetVolume returns that all
went well, but the volume stays the same. Is this function linked to the
format ? To control volume, do I need to specify the same format as what is
currently playing ?
I hope not, because I donot know that (it is online content).

Basically all I need is : BOOL SetVolume(DWORD volume);

How hard can that be ? :-(


2) The remote sends KeyDown+Up even if I keep the key pressed, no
repeat-keys are received, not even when my keymapper.exe has the keyboard
focus.
The remote-IR-interface is connected to USB (VIA EPIA), I donot see any
specific driver for it in the BSP, but the keys are received as normal
keyboard input. I think all remotes repeat their volume-key. So I am unsure
where this is handled.

Any suggestions ?

Greetings,
Rob.



"Paul G. Tobey [eMVP]" wrote:

Run an application (Use the VS2005 New Project wizard or the eVC wizard to
create a simple Win32 application), that is responsible for key mapping
(call it the KeyMapper ;-). On startup, have it read the contents of some
registry key or keys for keys that you want mapped to operations and save
them. Maybe the value name indicates the key to be mapped and the value
data is the command line of the program to run when the key is detected.

[HKEY_LOCAL_MACHINE\Software\KeyMapper\Keys]
"Ctrl+Alt+Plus"="volume.exe +5"
"Ctrl+Alt+Minus"="volume.exe -5"

or whatever. In the program, make the main window non-visible (you can do
this by simply commenting out the ShowWindow() call that the
wizard-generated code makes, I think. Call RegisterHotKey with each key
combination that needs to be caught, arranging for the key messages to be
sent to that invisible window. In the window procedure for the window,
handle the WM_HOTKEY message by finding the command that's supposed to be
performed and performing it.

Of course, you could invision having a bunch of built-in functions, rather
than running external programs to perform all of the possible operations,
but that's a simple way to do it and keeps the system somewhat more modular.

Set up to have the KeyMapper run on startup in your device in whatever way
you have available and you're done.

Paul T.

"Rob" <Rob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:14A51AEF-74C0-4280-BDC7-5E0E30637C63@xxxxxxxxxxxxxxxx
Hi,
Thanks for your response.
I am using the PS2 or USB keyboard, all standard stuff that comes with
CE5.
What would be the simplest way to map the keys ?
Can I do it in 1 central place, So I donot need to change 2 drivers ?

I assumed "Hotkeys" is a typical windows-thing, or is that just for the
desktop windows ?

Greetings,
Rob.








"Paul G. Tobey [eMVP]" wrote:

You can't do that with the registry unless your keyboard driver has some
unique features or some other application in the system is calling
RegisterHotKey and doing something when those keys are received.

Paul T.

"Rob" <Rob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A436C313-9625-4E4A-97BF-4100836AA51E@xxxxxxxxxxxxxxxx
Hi,
I have a remote control that delivers keypresses (in CE5.0).
For volume up/down '+'/'-' is received.
I need to couple these keys to the volume control.
And I need to map some other keys.

Can this be done using standard features ? (registry)
Or do I need to write my own App/driver for this ?

Greetings,
Rob.











.



Relevant Pages

  • How to restore disabled services to a non-functioning Services module?
    ... that's separate from the registry? ... Following a fresh W2K Pro installation on a solo desktop machine, ... No icons showing in the Network & Dial-up Connections window ... NetMeeting Remote Desktop Sharing ...
    (microsoft.public.win2000.general)
  • Cant open Outlook
    ... First I received a message that the window could not be ... delete registry and create new profile. ... or format of the file. ...
    (microsoft.public.outlook)
  • Re: Custom ID Field
    ... code window, and in the Immediate window, paste: ... When I exit the format box, it auto corrects me EVERY time. ... database and build up a small table, then a form, and go from there. ... Can the GetNextJobNumber function output in my format? ...
    (microsoft.public.access.formscoding)
  • Re: - Yahoo ups the ante, hijacks browsers through Adobe Reader 7
    ... One has to be a bit careful when deleting *everything* in the "Downloaded Objects" file. ... General tab. ... In the System Configuration Utility window, ... Remove all suspicious items from the registry ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Multiple date formats in a Table
    ... Duplicating the date in a second date field is certainly one way of doing ... window, then click on "New". ... Once you've got a function that works, create a new query in design ... > with date format and field properties. ...
    (microsoft.public.access.tablesdbdesign)

Loading