rime / home

Rime::Home is home to Rime users and developers
https://rime.im
4.23k stars 231 forks source link

无法解决小狼毫算法服务每次开机要手动开启 #596

Open Gezell opened 4 years ago

Gezell commented 4 years ago

在第一次装好rime时,手贱把算法服务从任务管理器删除了,之后每次开机都要手动打开。之后将其加入开机自启项后,在任务管理器发现已经在后台进程中,可就是还要手动开启。一旦关机,第二次必须再手动开机。兄弟们有没有解决这种问题的方法哇。重装了好几次rime 还是一点用也没有,求解决!!!跪谢!

rockbenben commented 3 years ago

也出现了这问题,但我这是偶发性问题。设为开机启动容易出现报错。用 AHK 写了个WeaselServerAutostart 脚本暂时维持着,你可以作为参考

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; 开机 5 秒后启动程序
Sleep, 5000
; 监测应用是否有运行
Process, Exist, WeaselServer.exe
NewPID := ErrorLevel  ; 由于 ErrorLevel 会经常发生改变, 所以要立即保存这个值.
if not NewPID
{
 Run %A_WorkingDir%\WeaselServer.exe
}
return
Texhnolyze-Ran commented 3 years ago

也出现了这问题,但我这是偶发性问题。设为开机启动容易出现报错。用 AHK 写了个 WeaselServerAutostart 脚本暂时维持着,你可以作为参考

昨天剛剛在 Windows 10(Version 20H2)上裝上小狼毫。(作爲一名普通用戶,)從一開始,便切換不到中文輸入。😣 「聽説」需要手動啓動算法服務程序,但自己並不能夠馬上就知道該如何實現。 在「一不小心」嘗試著運行了主程序文件夾下的 WeaselServer.exe 之後,(「意外地」)發現恢復了(正常切換功能)。 但後來主機重啓之後發現需要重複相同的操作才行…… 到目前爲止,並沒有尋找到其他更加有效的解決辦法。 感謝🤝您所提供的解決方案和工具!

moxuanyuan commented 3 years ago

也出现了这问题,但我这是偶发性问题。设为开机启动容易出现报错。用 AHK 写了个WeaselServerAutostart 脚本暂时维持着,你可以作为参考

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; 开机 5 秒后启动程序
Sleep, 5000
; 监测应用是否有运行
Process, Exist, WeaselServer.exe
NewPID := ErrorLevel  ; 由于 ErrorLevel 会经常发生改变, 所以要立即保存这个值.
if not NewPID
{
 Run %A_WorkingDir%\WeaselServer.exe
}
return

我是使用计划任务,设置了登录时延时10秒启动 WeaselServer.exe,暂时没发现问题喔

SaturnTsen commented 7 months ago

我在HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon中创建了字符串值,名称 Shell,值为explorer.exe,"C:\Program Files (x86)\Rime\weasel-0.15.0\WeaselServer.exe",随后小狼毫可以正常启动了,且登录后立刻可以使用。

我的系统是Win11 23H2,目前尚不清楚该方法的原理和适用范围,这是我之前玩Rainmeter留下的一些偏方(笑)。

Duplicates: https://github.com/rime/weasel/issues/596 https://github.com/rime/weasel/issues/241 https://github.com/rime/weasel/issues/359 https://github.com/rime/weasel/issues/499 https://github.com/rime/weasel/issues/612 https://github.com/rime/home/issues/596


新手指南:按Win+R,输入regedit,找到HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon,创建字符串值,名称修改为Shell,值修改为explorer.exe,"C:\Program Files (x86)\Rime\weasel-0.15.0\WeaselServer.exe"