Compare commits

...

8 Commits

Author SHA1 Message Date
MistEO
38bff9a43a Merge branch 'master' of https://github.com/MistEO/MeoAssistance 2021-07-15 00:04:25 +08:00
MistEO
f2e73a586d update config 2021-07-15 00:04:10 +08:00
MistEO
694dbcc02b Update README.md 2021-07-14 23:44:21 +08:00
MistEO
bbdb1ce349 update readme 2021-07-14 23:37:57 +08:00
MistEO
e684a1339a update release project 2021-07-14 23:32:05 +08:00
MistEO
d17078e7b8 update UsePtrs 2021-07-14 22:33:57 +08:00
MistEO
db65d51e37 update MoveWindow 2021-07-14 22:29:06 +08:00
MistEO
43848c1e89 support to click UsePrts 2021-07-14 22:28:54 +08:00
5 changed files with 23 additions and 9 deletions

View File

@@ -100,7 +100,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<IncludePath>$(ProjectDir)include;$(SolutionDir)meojson\include;$(OPENCV_PATH)\include;$(IncludePath)</IncludePath>
<LibraryPath>$(TargetDir);$(OPENCV_PATH)\x64\vc15\lib;$(LibraryPath)</LibraryPath>
<LibraryPath>$(TargetDir);$(OPENCV_NEW_BUILD)lib\Release;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
@@ -175,7 +175,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>opencv_world452.lib;libmeojson.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>opencv_core452.lib;opencv_imgcodecs452.lib;opencv_imgproc452.lib;libmeojson.lib;%(AdditionalDependencies)</AdditionalDependencies>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
<AdditionalLibraryDirectories>$(TargetDir)</AdditionalLibraryDirectories>
</Link>

View File

@@ -96,7 +96,10 @@ bool WinMacro::resizeWindow(int width, int height)
return false;
}
return ::MoveWindow(m_handle, 0, 0, width / getScreenScale(), height / getScreenScale(), true);
RECT rect;
bool ret = ::GetWindowRect(m_handle, &rect);
return ret && ::MoveWindow(m_handle, rect.left, rect.top, width / getScreenScale(), height / getScreenScale(), true);
}
bool WinMacro::resizeWindow()

View File

@@ -14,6 +14,7 @@ A game assistance for Arknights
- 模拟器窗口可以被遮挡,即使全屏看视频、玩游戏,也完全不影响辅助运行
~~(但是模拟器还是不能最小化)~~
- 支持多款主流模拟器
- 自适应分辨率及屏幕缩放
- 未来更多功能见[Todo](#Todo)
### 模拟器支持
@@ -44,7 +45,7 @@ A game assistance for Arknights
## 使用说明
1. 使用蓝叠模拟器打开明日方舟,进入有**蓝色的开始行动按钮**的界面,勾上代理指挥
1. 使用支持的模拟器打开明日方舟,进入有**蓝色的开始行动按钮**的界面
2. 解压压缩包,**使用管理员权限**,打开"Sanity.exe"
3. 目前只有最基本的功能,刷完体力+体力药就会自动停了……
@@ -56,12 +57,13 @@ A game assistance for Arknights
- [ ] 图形化界面
- [ ] 刷理智
- [x] 支持剿灭
- [ ] 支持刷指定次数
- [x] 支持使模拟器窗口不可见
- [x] 自动吃体力药
- [ ] 自动吃石头(根据设置,指定数量)
- [x] 代理失败的情况
- [x] 支持等级提升
- [x] 支持自动勾选代理指挥
- [ ] 支持刷指定次数
- [ ] 自动吃石头(根据设置,指定数量)
- [ ] 支持凌晨4点更新数据
- [ ] 结束界面自动截图,可用于上传企鹅物流
- [ ] 持续监视理智,一有就自动刷掉
@@ -73,8 +75,8 @@ A game assistance for Arknights
- [x] 更换算法为模板匹配找图,而不是当前的区域相似度对比
- [x] 优化算法效率,添加缓存功能
- [x] 优化任务队列,减少不必要的计算
- [ ] 其他
- [ ] 尝试减小程序体积
- [x] 其他
- [x] 尝试减小程序体积
## 致谢

BIN
resource/UsePrts.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -155,6 +155,7 @@
"threshold": 0,
"type": "doNothing",
"next": [
"UsePrts",
"StartButton1",
"StartButton2",
"PRTS",
@@ -164,9 +165,17 @@
"Random"
]
},
"UsePrts": {
"filename": "UsePrts.png",
"threshold": 0.97,
"type": "clickSelf",
"next": [
"StartButton1"
]
},
"StartButton1": {
"filename": "StartButton1.png",
"threshold": 0.99,
"threshold": 0.94,
"type": "clickSelf",
"next": [
"StartButton2",