Big Digger wrote:
bidomoAHKHID Documentation - TheGood wrote:
USING THE CONSTANTS:
If you explicitly #include AHKHID in your script, you will have all the constants available to you. Otherwise, if AHKHID is
in your library folder and you do not wish to explicitly #include it, you can call AHKHID_UseConstants() to have the
constants available to you.
Damn, I really never came across that, but thanks for clarifying it for me...
Now I'm gonna take some reading lessons
EDIT::
Some time ago I posted some stuff about the ReportMappingTable and stuff to disable the default Remote behavior. Seems like it does not work on win 7 anymore, vista did.
Deleting CodeSetNum0..3 or filling ReportMappingTable to 00 00 00 (not touching the remote keycodes, obviously), will not even let the Example 2 script to get any input from the remote.
The only buttons declared in the ReportMappingTable and those which uses WM_INPUT will give something to Example 2.
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HidIr\Remotes\745a17a0-74d3-11d0-b6fe-00a0c90f57da]
"ReportMappingTable"=hex:\
;########################################################################################################
; Power, Vizualization, Print, Radio, Music, Pictures, Videos
0c,00,00,00,04,09,2b,\ ;12 Power
32,00,00,00,04,08,45,\ ;50 Vizualization
4e,00,00,00,04,08,08,\ ;78 Print
; 50,00,00,00,00,00,00,\ ;80 Radio
; 47,00,00,00,00,00,00,\ ;71 Music
; 49,00,00,00,00,00,00,\ ;73 Pictures
; 4A,00,00,00,00,00,00,\ ;74 Videos
;########################################################################################################
; DVD Menu, Recorded TV, Guide, Live TV, Aspect, Slide show, More Info, Back
24,00,00,00,00,00,00,\ ;36 DVD Menu
48,00,00,00,00,00,00,\ ;72 Recorded TV
26,00,00,00,00,00,00,\ ;38 Guide
25,00,00,00,00,00,00,\ ;37 Live TV
27,00,00,00,00,00,00,\ ;39 Aspect
33,00,00,00,00,00,00,\ ;51 SlideShow
0f,00,00,00,00,00,00,\ ;15 More Info
23,00,00,00,00,00,00,\ ;35 Back
;########################################################################################################
; Up, left, Ok, Right, Down
1e,00,00,00,00,00,00,\ ;30 Up
20,00,00,00,00,00,00,\ ;32 Left
22,00,00,00,00,00,00,\ ;34 OK
21,00,00,00,00,00,00,\ ;33 Right
1f,00,00,00,00,00,00,\ ;31 Down
;########################################################################################################
; Volume +, Volume -, Channel +, Channel -, TGB, Mute
10,00,00,00,00,00,00,\ ;16 Vol +
11,00,00,00,00,00,00,\ ;17 vol -
12,00,00,00,00,00,00,\ ;18 chan+
13,00,00,00,00,00,00,\ ;19 chan-
0d,00,00,00,00,00,00,\ ;13 TGB
0e,00,00,00,00,00,00,\ ;14 mute
;########################################################################################################
; Record, Eject, Rewind, Play, Pause, Forward, Replay, Stop, Skip
17,00,00,00,00,00,00,\ ;23 Record
34,00,00,00,00,00,00,\ ;52 eject
15,00,00,00,00,00,00,\ ;21 rewind
16,00,00,00,00,00,00,\ ;22 play
18,00,00,00,00,00,00,\ ;24 Pause
14,00,00,00,00,00,00,\ ;20 forward
1b,00,00,00,00,00,00,\ ;27 Replay / skip <<--
19,00,00,00,00,00,00,\ ;25 Stop
1a,00,00,00,00,00,00,\ ;26 Skip / slip -->>
;########################################################################################################
; 0-9 27, 1e, 1f, 20, 21, 22 , 23, 24, 25, 26
00,00,00,00,00,00,00,\ ;0
01,00,00,00,00,00,00,\ ;1
02,00,00,00,00,00,00,\ ;2
03,00,00,00,00,00,00,\ ;3
04,00,00,00,00,00,00,\ ;4
05,00,00,00,00,00,00,\ ;5
06,00,00,00,00,00,00,\ ;6
07,00,00,00,00,00,00,\ ;7
08,00,00,00,00,00,00,\ ;8
09,00,00,00,00,00,00,\ ;9
;########################################################################################################
; *, #, CLEAR, ENTER
1d,00,00,00,00,00,00,\ ;29 *
1c,00,00,00,00,00,00,\ ;28 #
0a,00,00,00,00,00,00,\ ;10 Clear
0b,00,00,00,00,00,00 ;11 Enter
in this ReportMappingTable, only the first 7 buttons in the Remote will give something to the AHKHID Example 2;
Power: I assigned this button a keyboard event directly to the registry, Ctrl + Win +Tab
Visualization: it has Ctrl + F12
Print: it has Win + E
Radio, Music, Pictures & Videos: although disabled, they don't originally appear in the mapping table, but they still work because they use WM_INPUT.
The rest of the list does not give anything.
Any help will be appreciated.
.::EDIT::.
Already Solved it!
You have to use at least a single button assign in the ReportMappingTable and leave the rest of the buttons alone, they will still give feedback to the IR receiver
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HidIr\Remotes\745a17a0-74d3-11d0-b6fe-00a0c90f57da]
"ReportMappingTable"=hex:\
;########################################################################################################
; Power, Vizualization, Print, Radio, Music, Pictures, Videos
0c,00,00,00,04,09,2b ;12 Power which sends Ctrl + Win + Tab
If anyone has this remote
http://mediacenterguides.com/sites/default/files/hp_remote.jpg (tried to resize it within the BB code but didn't work), working in XP and vista, please, send me the registry codes to keep looking into this (I don't have a XP or vista machine anymore, my actual PC does not like XP).