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

Error when trying to run PasteIntoFile.exe in tray mode #65

Open
shimbone opened this issue Dec 20, 2024 · 2 comments
Open

Error when trying to run PasteIntoFile.exe in tray mode #65

shimbone opened this issue Dec 20, 2024 · 2 comments
Labels
bug Something isn't working not reproducible

Comments

@shimbone
Copy link

Even though a startup item was being registered (to run PasteIntoFile.exe tray), PasteIntoFile.exe was not being started.

I tried running "PasteIntoFile.exe tray" from a command shell in the PasteIntoFile directory and I got the following error:

Unhandled Exception: System.InvalidOperationException: Couldn't register the hot key.
at PasteIntoFile.KeyboardHook.RegisterHotKey(ModifierKeys modifier, Keys key) in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\KeyboardHook.cs:line 81
at PasteIntoFile.Program.RunTray(ArgsTray args) in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Main.cs:line 264
at PasteIntoFile.Program.<>c.

b__8_5(ArgsTray opts) in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Main.cs:line 144
at CommandLine.ParserResultExtensions.MapResult[T1,T2,T3,T4,T5,TResult](ParserResult1 result, Func2 parsedFunc1, Func2 parsedFunc2, Func2 parsedFunc3, Func2 parsedFunc4, Func2 parsedFunc5, Func`2 notParsedFunc)
at PasteIntoFile.Program.Main(String[] args) in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Main.cs:line 139

To Reproduce

  1. Install PasteIntoFile
  2. From a command shell navigate to C:\Program Files (x86)\PasteIntoFile
  3. Run PasteIntoFile.exe tray
...

Error message

...

Screenshots

Environment

  • App version:
  • OS:
  • ...

Solution approach / workarounds

...

@shimbone shimbone added the bug Something isn't working label Dec 20, 2024
@eltos
Copy link
Owner

eltos commented Dec 20, 2024

To Reproduce
1. Install PasteIntoFile
2. From a command shell navigate to C:\Program Files (x86)\PasteIntoFile
3. Run PasteIntoFile.exe tray

Cannot reproduce, works for me as expected with version 5.4 installer.
Please provide sufficient information to reproduce the issue.

PS: According to this, you are probably already using this hotkey with some other program. You cannot have two programs using the same hotkey.

@shimbone
Copy link
Author

shimbone commented Dec 21, 2024 via email

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

No branches or pull requests

2 participants