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

0-9 key binding, Swapped Middle and Right button #22

Closed EinarVaagland closed 4 months ago

EinarVaagland commented 5 months ago

Wonderful tool! I've been looking for this since I tried a Magic Remote several years ago, and why LG won't make a USB receiver is beyond me, the accuracy of the mouse is the best I've found. And your implementation is genious, please make a Patreon so we can help fund this project.

If I can make a wish, I'd want to assign actions to all the buttons, using 0-9 to run programs for example.

I've found an error. When assigning the Middle click to a colored button, the Right click is selected and vice versa.

BindCreator.cs:

private void MouseLeft_CheckedChanged(object sender, System.EventArgs e) {
  if(((System.Windows.Forms.RadioButton)sender).Checked) {
    this.arrBind = new Bind[] { new MagicRemoteService.BindMouse(BindMouseValue.Left) }; //Left
  }
}
private void MouseMiddle_CheckedChanged(object sender, System.EventArgs e) {
  if(((System.Windows.Forms.RadioButton)sender).Checked) {
    this.arrBind = new Bind[] { new MagicRemoteService.BindMouse(BindMouseValue.Right) }; //Middle
  }
}
private void MouseRight_CheckedChanged(object sender, System.EventArgs e) {
  if(((System.Windows.Forms.RadioButton)sender).Checked) {
    this.arrBind = new Bind[] { new MagicRemoteService.BindMouse(BindMouseValue.Middle) }; //Right
  }
}
Cathwyler commented 5 months ago

Hi,

Thanks for your feedback.

I fixed the swapped middle and right click. It will be available in the next release.

About 0-9 key binding I will look further if there is a way to subscribe these events.

Cathwyler commented 4 months ago

Hi,

I added 0-9 keybindon the latest release.

Regards

Einar-Vaagland commented 3 months ago

Thank you!