Git Product home page Git Product logo

rime-weaselserver's Introduction

WeaselServerAutostart

在开机后,如果发现小狼毫无法输出中文,很可能是算法服务没有正常启动。

解决方法是手动打开小狼毫程序文件夹中的 WeaselServer.exe,默认位置为 C:\Program Files (x86)\Rime\weasel-0.15.0\WeaselServer.exe。请注意,不要将 WeaselServer.exe 设为开机启动,否则可能会导致程序报错。

随着小狼毫成为主力输入法,这个问题变得更加频繁。为了解决这个问题,我使用 AutoHotkey 编写了此脚本,暂时解决了这个问题。

下载打包好的 exe 程序:https://github.com/rockbenben/rime-WeaselServer/releases/

使用方法

  1. 为脚本或程序 WeaselServerAutostart.exe 创建一个桌面快捷方式。如果你的输入法是绿色版或非默认路径安装,则将程序放入小狼毫的「程序文件夹」内,然后生成快捷方式。
  2. 将快捷方式移动到开机启动目录。在 Windows 10/11 中,开机启动目录的默认位置是 %AppData%\Microsoft\Windows\Start Menu\Programs\Startup

脚本逻辑

  1. 检测小狼毫算法服务 WeaselServer.exe 是否已经启动。如果没有运行,则脚本会启动与脚本同目录下的 WeaselServer.exe 程序。如果目录下没有该算法程序,则使用 weasel-0.15.0 的默认安装路径。
  2. 然后,脚本会休眠 30 秒,并再次检测算法服务是否已经启动。
  3. 接着,脚本休眠 180 秒,最后检测一次算法服务是否已经启动。这次之后,无论结果如何,程序都将自动退出。

rime-weaselserver's People

Contributors

rockbenben avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.