-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// 挖图脚本 | ||
auto(); | ||
|
||
const {findTextAndClick,loopFunction,isHasImageTemplate,isFighting,randomClick,clickImageTemplate,hasText,findTextRect} = require('util.js') | ||
toastLog('挖图脚本执行中...') | ||
|
||
while(true){ | ||
if(isFighting()){ | ||
log('战斗中...') | ||
sleep(5000) | ||
} | ||
sleep(500) | ||
var res = loopFunction(function(){ | ||
sleep(1000) | ||
return findTextAndClick('使用',{region:'rightBottomHalf'}) | ||
},55) | ||
if(!res){ | ||
// 由于加图片得更新包,后续再更新用图片找使用功能 | ||
// var res3 = loopFunction(function(){ | ||
// return clickImageTemplate('shiYong.jpg',{region:'rightBottomHalf'}) | ||
// },12) | ||
// if(!res3){ | ||
// } | ||
break | ||
} | ||
} | ||
toastLog('挖图脚本执行结束') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<template> | ||
<div class="container"> | ||
<h3>使用前置:</h3> | ||
<p>1、进入本页面,点击【开始执行】(确定要运行的脚本)</p> | ||
<p>2、启动梦幻西游手游app</p> | ||
<p>3、进入游戏点击普通宝图,等到弹出【使用】</p> | ||
<img src="@/assets/img/waTu.jpg"/> | ||
<p>4、点击悬浮窗口【开始】按钮即可</p> | ||
<van-button round block @click="startNow" type="primary" native-type="submit"> | ||
开始执行 | ||
</van-button> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
data () { | ||
return { | ||
model: { | ||
}, | ||
} | ||
}, | ||
mounted () { }, | ||
unmounted () { | ||
}, | ||
methods: { | ||
startNow () { | ||
auto.invoke( | ||
'runRobot', | ||
[{ robot: require('@/auto/robot/robot.waTu') }], | ||
() => { | ||
// log('ajFun1 回调:', typeof r, r) | ||
}, | ||
) | ||
}, | ||
stop () { | ||
auto.invoke('robotStop', [], () => { }) | ||
}, | ||
}, | ||
} | ||
</script> | ||
<style lang="less" scoped> | ||
.container{ | ||
:deep(.van-radio-group){ | ||
margin: 10px; | ||
.van-radio{ | ||
margin-bottom: 10px; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters