问题描述
我想要做的是,如果满足一个条件,比如如果x=5,我希望它自动发送邮件给我。使用thunderbird,您可以部分执行此操作,但不能明显单击发送...
仅此雷鸟命令在这方面起作用:
thunderbird -compose "subject='test',to='someaddress@mail.com',body='this and that'"
这个 xdotool 命令也有效:
xdotool mousemove 570 179 click 1
这个 570 179 是发送按钮所在的位置。但是,如果我像这样组合这些。这行不通(将 && s 更改为 ; 也不行):
thunderbird -compose "subject='test',body='this and that'" && sleep 2 && xdotool mousemove 576 218 click 1
但是,当我只执行雷鸟命令时,如果我在另一个终端中应用此 xdotool 鼠标单击,则仅在那时有效。
我正在研究这个主题,他们说这可能与 x 服务器有关,所以他们建议如下:
thunderbird -compose "subject='something',body='
something'" && sleep 5; xdotool windowactivate $(xdotool getactivewindow) sleep 5 && xdotool mousemove 576 218 click 1
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)