-
Notifications
You must be signed in to change notification settings - Fork 187
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
问题反馈 #81
Comments
按照以下三种情况修改后,跟之前相比没有变化,填空问题依旧存在,希望有时间可以修复
后依旧没有变化,显示徐特立
…------------------ 原始邮件 ------------------
发件人: "lolisaikou"<[email protected]>;
发送时间: 2020年6月22日(星期一) 晚上7:24
收件人: "ivanwhaf/xxqg-helper"<[email protected]>;
抄送: "╰⌒丶繁花落尽╭ァ曲终散"<[email protected]>;"Author"<[email protected]>;
主题: Re: [ivanwhaf/xxqg-helper] 问题反馈 (#81)
只有填空有问题吧
错误效果
可以暂时把getFitbQuestion()函数里的blankCount += 1换成(其实可以写成blankCount++)
blankCount = (className("EditText").findOnce().parent().childCount() - 1);
(不过这样碰到双填空会报错,不过试了好几天都没碰到)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
/**
* @description: 获取填空题题目数组
* @param: null
* @return: questionArray
*/
function getFitbQuestion() {
var questionCollections = className("EditText").findOnce().parent().parent();
var questionArray = [];
var findBlank = false;
var blankCount = 0;
var blankNumStr = "";
var i = 0;
questionCollections.children().forEach(item => {
if (item.className() != "android.widget.EditText") {
if (item.text() != "") {//题目段
if (findBlank) {
blankNumStr = "|" + blankCount.toString();
questionArray.push(blankNumStr);
findBlank = false;
}
questionArray.push(item.text());
}
else {
findBlank = true;
blankCount = (className("EditText").findOnce(i).parent().childCount() - 1);
i++;
}
}
});
return questionArray;
} |
现在没问题了,谢谢!
…------------------ 原始邮件 ------------------
发件人: "lolisaikou"<[email protected]>;
发送时间: 2020年6月22日(星期一) 晚上10:16
收件人: "ivanwhaf/xxqg-helper"<[email protected]>;
抄送: "╰⌒丶繁花落尽╭ァ曲终散"<[email protected]>;"Author"<[email protected]>;
主题: Re: [ivanwhaf/xxqg-helper] 问题反馈 (#81)
/** * @description: 获取填空题题目数组 * @param: null * @return: questionArray */ function getFitbQuestion() { var questionCollections = className("EditText").findOnce().parent().parent(); var questionArray = []; var findBlank = false; var blankCount = 0; var blankNumStr = ""; questionCollections.children().forEach(item => { if (item.className() != "android.widget.EditText") { if (item.text() != "") {//题目段 if (findBlank) { blankNumStr = "|" + blankCount.toString(); questionArray.push(blankNumStr); findBlank = false; } questionArray.push(item.text()); } else { findBlank = true; // blankCount += 1; blankCount = (className("EditText").findOnce().parent().childCount() - 1); } } }); return questionArray; }
直接把getFitbQuestion()函数换成我这个
我这里是没有问题的(图里是这个脚本改的功能分离版)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
改了之后出错,reference error “activity” is not defined,请问怎么解决 |
@lolisaikou 脚本点卡“查看提示”后不能提取答案,一直卡在“查看提示”这里,是不是和这个问题类似?大佬有代码吗? |
@ba4met 没遇到,你可以看我主页,我用这个脚本做了个功能分离的版本,一直在维护 |
大佬,千万别弃坑啊,支持你! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
每日答题中的有提示的,无法提取出来答案,显示“徐特立”
The text was updated successfully, but these errors were encountered: