Skip to content
/ ktmm Public
forked from ao/ktmm

Keep That Mouse Moving!

Notifications You must be signed in to change notification settings

keepwow/ktmm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ktmm (Keep That Mouse Moving!)

Thanks to Andrew Odendaal

Use pyenv and pyenv-virtualenv (my method of running this tool)

  1. Prepare the env

    • macOS
    brew install pyenv-virtualenv
    • Linux
    gh repo clone pyenv/pyenv ~/.pyenv
    gh repo clone pyenv/pyenv-virtualenv ~/.pyenv/plugins/pyenv-virtualenv
  2. Add below to your ~/.zprofile or ~/.bash_profile:

    # pyenv
    export PYENV_ROOT="$HOME/.pyenv"
    export PATH=$PYENV_ROOT/shims:$PATH
    eval "$(pyenv init -)"
    eval "$(pyenv virtualenv-init -)"
  3. Install virtualenv

    pyenv install 3.12.2 # if you don't know the exact version, use TAB to show the hints
    pyenv virtualenv 3.12.2 ktmm

    If you want to download the Python package by using another mirror site instead of the official ftp site, here is the solution:

    mkdir -p ~/.pyenv/cache
    export v=x.y.z; wget https://repo.huaweicloud.com/python/$v/Python-$v.tar.xz -P ~/.pyenv/cache/; pyenv install $v

    You shall also use the script provided by this repo, with the following:

    sudo mv -v `pwd`/pyenv-install /usr/local/bin
  4. Final preparation

    # git clone https://github.com/kalabsha/ktmm.git ~/Code/ktmm
    gh repo clone kalabsha/ktmm ~/Code/ktmm
    cd ~/Code/ktmm
    penv shell ktmm
    python -m pip install -U pip -i https://pypi.douban.com/simple
    pip install -r requirements.txt -i https://pypi.douban.com/simple

    Update: I forgot something when migrate this script to macOS, now try pip install -r requirements.macOS.txt instead. But usually, try to run python ktmm.py first, you might want to install the packages needed only and let pip do the rest. Here in this case, it is pynput.

  5. Make the command alias, Run ktmm thereafter.

    alias ktmm="cd ~/Code/ktmm && pyenv shell ktmm && python ktmm.py"

About

Keep That Mouse Moving!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%