-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Comments
Cannot reproduce, works for me as expected with version 5.4 installer. PS: According to this, you are probably already using this hotkey with some other program. You cannot have two programs using the same hotkey. |
More detailed rundown on what I'm doing to see the problem:
- Downloaded latest version
https://github.com/eltos/PasteIntoFile/releases
- PasteIntoFile_v5.4_installer.msi
- Ran installer with selected options:
- Paste into file
- Copy file content
- Enable autosave
- Autosave may open explorer (e.g. when … )
- Autostart into tray
- Enable clibboard patching (experimental)
- All other options not listed are not selected.
- Opened command prompt to C:\Program Files (x86)\PasteIntoFile
- Ran PasteIntoFile.exe tray
- Got the following error:
C:\Program Files (x86)\PasteIntoFile>
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.<Main>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](ParserResult`1
result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 parsedFunc3, Func`2
parsedFunc4, Func`2 parsedFunc5, Func`2 notParsedFunc)
at PasteIntoFile.Program.Main(String[] args) in
D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Main.cs:line 139
- Note that running without the command line option "tray" results in
the program launching properly
…On Fri, Dec 20, 2024 at 7:30 AM Philipp Niedermayer < ***@***.***> wrote:
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.
Please provide sufficient information to reproduce the issue.
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALM74YR5Y23YKVC653XZEQD2GQSZ7AVCNFSM6AAAAABT6OKFD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJXGEZDGOJQGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
b__8_5(ArgsTray opts) in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Main.cs:line 144at 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.
at CommandLine.ParserResultExtensions.MapResult[T1,T2,T3,T4,T5,TResult](ParserResult
1 result, Func
2 parsedFunc1, Func2 parsedFunc2, Func
2 parsedFunc3, Func2 parsedFunc4, Func
2 parsedFunc5, Func`2 notParsedFunc)at PasteIntoFile.Program.Main(String[] args) in D:\a\PasteIntoFile\PasteIntoFile\PasteIntoFile\Main.cs:line 139
To Reproduce
Error message
Screenshots
Environment
Solution approach / workarounds
...
The text was updated successfully, but these errors were encountered: