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

选取 DrRacket 窗口中的内容时 Snipaste 无响应 #116

Closed
Jack-Works opened this issue Sep 11, 2016 · 5 comments
Closed

选取 DrRacket 窗口中的内容时 Snipaste 无响应 #116

Jack-Works opened this issue Sep 11, 2016 · 5 comments
Milestone

Comments

@Jack-Works
Copy link

重现步骤

  1. 当 DrRacket 在前台显示时激活 Snipaste 截图
  2. Snipaste 无响应

运行环境

操作系统:Windows 10 64位(1607)

Snipaste 版本: 1.6(2016.08.10)

DrRacket 版本:6.6

@liulex
Copy link
Member

liulex commented Sep 11, 2016

问题确认,感谢反馈!

@liulex liulex added the bug label Sep 11, 2016
@liulex
Copy link
Member

liulex commented Sep 11, 2016

我仔细调试了下,这是因为这个程序对 accHitTest() 这个接口的实现有问题,迟迟不返回结果,所以导致程序卡住。

没有很好的处理办法,只能把这个 exe 加入黑名单了,只检测它的窗口,不自动检测界面元素……

@Jack-Works
Copy link
Author

能不能检测一下, 为 accHitTest() 设置一个等待超时的时间,如果超过了,就不检测界面元素?

@liulex
Copy link
Member

liulex commented Sep 12, 2016

它是类似死循环那种,一直不返回的,也没有其他方法能标识这种窗口。
如果是把检测函数放在另一个线程,超时强制结束,代价就太大了。

不过对于黑名单中的窗口,我刚刚用了另一个方法来检测其元素了,大部分界面元素也是可以检测出来的。

@liulex liulex closed this as completed Sep 14, 2016
@septs septs added this to the 1.7 milestone Sep 20, 2016
@liulex liulex added the done label Sep 20, 2016
@liulex
Copy link
Member

liulex commented Nov 28, 2016

@Jack-Works
1.10.2 已开放名单机制,不再在程序里内置列表。
你将需要手动将 drracket.exe 加进名单里,如:

[snip]
crashes=drracket.exe 

具体请参考 高级设置

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

No branches or pull requests

3 participants