Skip to content

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

@shimbone

Description

@shimbone

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

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions