crazyreply

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

README

crazyreply GitHub release

一个疯狂发消息的应用

应用说明
此项目是将预设好的消息通过粘贴到文本框并控制键盘的方式实现的循环发消息。
此程序依赖robotgo,gotk3;目前支持Windows和Linux,MacOS理论上也支持。
使用场景:
直播网站,聊天工具等
软件截图:
Linux(Cinnamon桌面)系统下的效果

Windows 10系统下的效果

Windows 10系统下的效果 Windows 10系统下的效果 Windows 10系统下的效果

使用方法:
输入预先填好的文字信息,点击开始,然后把焦点放到对应的文本框里就可以发消息了。
文本框可以是任何可以输入文字的地方,比如弹幕的文本框,聊天软件文本框等。
Linux,Unix下需要安装xclip或xsel
注意事项
此项目在运行的时候可能会因为把焦点错误指定到某app的窗口,导致消息发送给了错误的人,所以在使用本工具之前应该谨慎,尽量关闭桌面多余的窗口。
Linux,Unix下需要安装xclip或xsel
构建需要的软件:
golang
git
Fedora构建:
$ dnf install gtk3-devel libxkbcommon-x11-devel xclip
$ git clone https://github.com/xiefeihong/crazyreply.git
$ cd crazyreply
$ go build
Ubuntu构建:
$ apt-get install libgtk-3-dev libx11-xcb-dev libxkbcommon-x11-dev xclip
$ git clone https://github.com/xiefeihong/crazyreply.git
$ cd crazyreply
$ go build
Windows构建:
推荐使用msys2
$ pacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-toolchain base-devel glib2-devel
$ sed -i -e 's/-Wl,-luuid/-luuid/g' /mingw64/lib/pkgconfig/gdk-3.0.pc
$ git clone https://github.com/xiefeihong/crazyreply.git
$ cd crazyreply
$ echo 'IDI_ICON1 ICON "view\ui\icon.ico"' > crazyreply.rc
$ windres -o crazyreply.syso crazyreply.rc
$ go build -ldflags="-H windowsgui"
MacOS或其他操作系统构建:
自行配置golang环境变量
此项目依赖于:
https://github.com/gotk3/gotk3
https://github.com/go-vgo/robotgo
Linux,Unix下需要安装xclip或xsel
请自行配置所依赖项目环境
Licences

crazyreply is licenced under

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL