WritingTools icon indicating copy to clipboard operation
WritingTools copied to clipboard

Not working correctly if start on boot or from Start Menu.

Open nhan000 opened this issue 10 months ago • 9 comments

Edit: See https://github.com/theJayTea/WritingTools/issues/150#issuecomment-2677411525 ~~After adding a new button, using the hotkey to call the program after highlighting text no longer works. Calling the program when no text is highlighted still works.~~

Windows 11 24H2 Writing Tools 7.1

nhan000 avatar Feb 23 '25 13:02 nhan000

Hi, are you running the binary or the python script? Can you also post the complete options.json file?

momokrono avatar Feb 23 '25 16:02 momokrono

Hello!

Could you please confirm if the options.json file exists in your Writing Tools folder, and if so, share it as mokodoro said?

If nothing comes up when you select text and try invoking Writing Tools, that's usually because the options.json file was missing/not found — maybe because something went wrong with the button creation that I haven't encountered yet.

theJayTea avatar Feb 24 '25 02:02 theJayTea

So I'm pretty sure it's not related to adding new buttons but how Writing Tools was opened.

I just found out that if Writing Tools is launched from startup, using Start on Boot, or from the Start menu search like this: Image

Writing Tools doesn't show up when text is highlighted (but still works if no text is selected).

But if I launched Writing Tools by double clicking Writing Tools in its folder, it works as expected. I have no idea why.

I placed Writing Tools in the following directory: C:\Users\username\Nhan\Windows Programs\Writing Tools.

Here's my options.json file: options.json

nhan000 avatar Feb 24 '25 04:02 nhan000

Experienced the same issue as @nhan000

Windows 10 21H2 Writing tools v7 and v7.1

K-J-Q avatar Feb 24 '25 10:02 K-J-Q

So I'm pretty sure it's not related to adding new buttons but how Writing Tools was opened.

I just found out that if Writing Tools is launched from startup or from the Start menu search like this: Image

Writing Tools doesn't show up when text is highlighted (but still works if no text is selected).

But if I launched Writing Tools by double clicking Writing Tools in its folder, it works as expected. I have no idea why.

I placed Writing Tools in the following directory: C:\Users\username\Nhan\Windows Programs\Writing Tools.

Here's my options.json file: options.json

Interesting, and yes, it only works when manually launched (double-click); when launched from the start menu, it does not work correctly...

JKawmi avatar Feb 24 '25 10:02 JKawmi

Hey there!

So, you're running into the same bug I was! I found a little workaround that's been doing the trick for me.

Try creating a shortcut of the program and popping it into your startup folder. Just make sure you uncheck the 'start on boot' option within the program itself.

Image

Fingers crossed this helps you out until they get to the bottom of the real problem! Cheer~

ShmilyHuman avatar Feb 25 '25 02:02 ShmilyHuman

Some interesting further inspections:

  1. Working when start from powershell cli in Windows Terminal
  2. Not working if create a shortcut to pwsh.exe to run the same command

Environment: Windows 11 24H2, Writing Tools v7.1

g0g5 avatar Mar 13 '25 08:03 g0g5

Hello :) Sorry I’m late to the recent discussion.

I’ll work on fixing this by the next update! Looks like something clearly broke with the app's Start on Boot toggle - thanks for helping me start investigating, @g0g5 and @nhan000.

Expect to have this fixed by the next release (which will be after my grade 12 final exams).

For now, you'd still be able to have it start on boot with a manual shortcut as @ShmilyHuman kindly suggested.

theJayTea avatar Apr 04 '25 14:04 theJayTea

I've also experienced this issue, which is a bit annoying. Additionally, I've noticed that if I haven't used the program in a while, the shortcut stops working, and I have to close and reopen the program. Likewise, this is a fantastic tool. Thank you for creating it, and I hope you can fix it soon when you have enough time.

mreduar avatar Jul 01 '25 21:07 mreduar