Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新之后以前使用xdotool唤醒qq的命令似乎不是很好用了 #39

Open
dev-soragoto opened this issue Dec 31, 2020 · 1 comment

Comments

@dev-soragoto
Copy link

以前使用

xdotool key --window $(xdotool search --limit 1 --all --pid $(pgrep QQ.exe)) "ctrl+alt+z"

可以直接唤醒qq,发现现在不是很好使了 不知道其他人有没有出现这个问题
排查了一下发现大概是deepin-wine5.0下的新版本qq有两个线程

[soragoto@soragoto-pc ~]$ pgrep QQ.exe
1179
1318
[soragoto@soragoto-pc ~]$ ps -e | grep QQ.exe
   1179 ?        00:00:15 QQ.exe
   1318 ?        00:10:15 QQ.exe
[soragoto@soragoto-pc ~]$ ps -x | grep QQ.exe | grep -v grep 
   1179 ?        Sl     0:15 c:/Program Files/Tencent/QQ/Bin/QQ.exe
   1318 ?        RLl   10:16 c:\Program Files\Tencent\QQ\Bin\QQ.exe /hosthwnd=65690 /hostname=QQ_IPC_{D97875D7-BC0B-46E8-9F08-59EF24126A9D} /memoryid=0 c:\Program Files\Tencent\QQ\Bin\QQ.exe

这个情况似乎不能用pgrep拿到qq的线程了
目前我是用

xdotool key --window $(xdotool search --limit 1 --all --pid $(ps -x | grep -E "QQ.exe.+"  | grep -v grep | awk '{print $1}')) "ctrl+alt+z" 

看起来有点难受 不知道还有没有更好的解决方案

@dev-soragoto
Copy link
Author

即使是这样可以成功的把ctrl+alt+z发送到qq的线程上,qq也无法拿到焦点 不过好消息是ctrl+alt+a的组合键截图还是好使的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant