473,320 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Registering devices for raw input

Hello!

I'm trying to recognize input from my remote control so that I can use
it to control various of my installed apps (winamp and vlc for
instance). I've managed to hook things up so that I can receive
WM_INPUT to my window even when it's not in focus. The problem is that
I receive WM_INPUT much too often. I receive it when a key is pressed,
and when it's depressed (like WM_KEYDOWN and WM_KEYUP, except those
aren't being sent, I only get WM_INPUT). I also receive it from any
device connected to my system, not only my remote.

Is there a way to get WM_INPUT messages from my remote control only?
It's of course imperative that I receive messages when my window is
hidden as well. And can I make it so I receive WM_KEYDOWN/WM_KEYUP
instead of WM_INPUT, or in other ways know wether the message was sent
when the key was pressed or depressed?

This is where I learned to use raw input and hence those are the
structures and functions I use (with P/Invoke of course):
http://msdn.microsoft.com/library/de...t/rawinput.asp
Nov 16 '05 #1
1 2716
No-one has a clue, huh? =(

Unfortunatly, it seems that my IR-receiver is actually busted now (or
something is fucked up with my USB-ports, I'm not sure) so I can't
continue with my work. If however someone does know anything about raw
input, please do share.

I figured in the end (that being right before I couldn't receive any
more sígnals due to hardware malfunctioning) that I should just filter
the info I do get. After all, if I can make sure that I don't care
about input from my mouse and keyboard the only reasonable assumption
is that the info came from my remote control. Of course this is a
dangerous assumption, but I don't plan on releasing the software nor
add new peripherals to my stock right now so I think I'm safe.
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ellen K | last post by:
Hi all, We have standardized on Hyperion as our reporting tool. So far I have only set up a couple of Access databases as data sources for it. Now there is a request to report off our eOn...
7
by: Don Riesbeck Jr. | last post by:
I'm working on an application (OEM) using C# that utilizes input from a keyboard, and USB Barcode Scanner. The scanner is a HID Keyboard device, and input from it is sent to the system as if it...
0
by: NewsReader | last post by:
Hello, I have been looking around the net for a script to help me connect to and help gather information from Cisco routers/switches. I have pieced together a couple of different scripts from...
3
by: stacy | last post by:
I am developing an application that must look out over TCP on an ethernet connection to locate our proprietary devices. The Web application and the devices are communicating over ethernet with...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.