Cathwyler / MagicRemoteService

Use your LG Magic Remote as a Windows mouse and control your PC with the LG Magic Remote from your LG WebOS TV
GNU General Public License v3.0
48 stars 2 forks source link

MAP BUTTON #25

Closed dellas60 closed 3 months ago

dellas60 commented 4 months ago

I WANT TO THANK YOU FOR THIS EXCELLENT TOOL. SECONDLY CAN I MAP THE PROGRAM UP AND DOWN AND VOLUM UP AND DOWN BUTTONS. THIRDLY YOU MENTIONS THE BUTTONS THAT ARE NOT AVAILABLE IN REMOTE EXAMPLE AVANCE RAPID AND REMBOBINE WHY?

Cathwyler commented 4 months ago

Thanks for your feedback.

I will take a look if it's possible to get program and volume event from web app but in my opinion they are not triggered. The media button are available on the old remote control model.

Regards

dellas60 commented 4 months ago

I tried to modify your code but I am stuck in the key code for channel up and down how you get code key for remote in officiel site there is only code for new remote and if i scan example red key iget 403 i have an mr 18 remote

Cathwyler commented 4 months ago

https://webostv.developer.lge.com/develop/guides/magic-remote Unfortunatelly there is no more info from LG Official website.

dellas60 commented 4 months ago

Can I use the code key scanned by this app https://github.com/webOS-TV-app-samples/RemoteControl?tab=readme-ov-file in your app

Cathwyler commented 4 months ago

It seems that program key are working on 0x0021 and 0x0022. I will add them in a futur release.

Unfortunatly volume key are not triggering any event. If you find a way i will add it too.

If you find a keycode you can add a regkey in the registry For exemple if you want to bind program + to ENTER key

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\MagicRemoteService\Remote\Bind\0x0021\0]
"Kind"=dword:00000001
"VirtualKey"=dword:0000000d
"ScanCode"=dword:0000001c
"Extended"=dword:00000000

VirtualKey list is available there https://learn.microsoft.com/fr-fr/windows/win32/inputdev/virtual-key-codes ScanCode and Extended depend of your keyboard you can set it to 0 it will work in most of case

Restart the service without any code change.

dellas60 commented 4 months ago

I am very happy that you are doing a great job, can this help ?https://github.com/andrewfraley/magic_mapper/blob/main/magic_mapper.py

Cathwyler commented 4 months ago

Hi,

I added channel +/- binding possibility in the latest release.

I will take a closer look on the magic_mapper source code but it seems this is available only for rooted TV. MagicRemoteService is designed for non rooted TV. Unfortunatly i will not add rooted specific feature in this app. If you find a rooted way by yourself feel free to post it there.

Regards

dellas60 commented 4 months ago

THANK YOU FOR YOUR EFFORTS I WILL ALWAYS BUY AN LG TV THANKS TO YOUR APP