Git Product home page Git Product logo

Comments (2)

yihong0618 avatar yihong0618 commented on September 26, 2024

Hi 这个项目是 fork 的所以我只加了我感兴趣的功能。。。
因此没想加多个音响。。(我只有一个)
如果多个的话我觉得可以用 env 跑
MI_USER=xxx MI_PASS=xxx MI_DID=xxx micli 5-5 这样(也可以写 shell 快速设置不同的 mi user

from miservice.

Chigogo avatar Chigogo commented on September 26, 2024

好的感谢。我试试ahk脚本,跟alias 是类似的。会在命令前添加export MI_DID=xxx &&,形如:

# 在Linux bash下
MI_DID=xxx && micli arg1 arg2 ...

贴在这里,如果有其他人需要

; 新建一个ahk脚本,并运行。
; 本人使用Windows的WSL,如果是cmd 或者powershell 可能需要修改组合符号
; 厨房
::txcf::
    ClipSaved := ClipboardAll ;Store rich format clipboard
    sleep, 20    
    clipboard =export MI_DID=xxxxxxxx && micli.py 5-5  \#0
    Send, ^v
    Send, {Left 4}
    sleep, 20

    Clipboard := ClipSaved
    sleep, 20
    ClipSaved = ;
return

; 办公室
::txbg::
    ClipSaved := ClipboardAll ;Store rich format clipboard
    sleep, 20    
    clipboard =export MI_DID=xxxxxxxx && micli.py 5-5  \#0
    Send, ^v
    Send, {Left 4}
    sleep, 20

    Clipboard := ClipSaved
    sleep, 20
    ClipSaved = ;
return

txcf 改成自己想要的短码;MI_DID=xxxxxxxx 替换成自己的did。

from miservice.

Related Issues (20)

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.