Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes after another program registers the same hotkey #31

Open
1 task done
RyanLua opened this issue Aug 29, 2024 · 1 comment
Open
1 task done

Crashes after another program registers the same hotkey #31

RyanLua opened this issue Aug 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RyanLua
Copy link
Owner

RyanLua commented Aug 29, 2024

Description

When another program registers the default F6 hotkey, Fluent Auto Clicker will crash because it is not handled.

What was expected?

No crash to occur if another program uses a hotkey.

What actually happened?

A crash occurred.

Steps to reproduce

  1. Open another program that uses the F6 hotkey like OP Auto Clicker
  2. Open Fluent Auto Clicker
  3. The app crashes immediately

Relevant log output

System.ComponentModel.Win32Exception
  HResult=0x80004005
  Message=Hot key is already registered.
  Source=Fluent Auto Clicker
  StackTrace:
   at FluentAutoClicker.MainPage.MainPage_Loaded(Object sender, RoutedEventArgs e) in C:\Users\ryanl\source\repos\FluentAutoClicker\FluentAutoClicker\MainPage.xaml.cs:line 42
   at WinRT._EventSource_global__Microsoft_UI_Xaml_RoutedEventHandler.EventState.<GetEventInvoke>b__1_0(Object sender, RoutedEventArgs e)
   at ABI.Microsoft.UI.Xaml.RoutedEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)

Other details

No response

Code of Conduct

@RyanLua RyanLua added the bug Something isn't working label Aug 29, 2024
@RyanLua
Copy link
Owner Author

RyanLua commented Dec 7, 2024

Ideally we use a content dialog to just inform the user that the hotkey isn't available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@RyanLua and others