Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0054c8b
Merge pull request #66 from Alan-CRL/dev
Alan-CRL May 7, 2025
dbae45e
Merge pull request #69 from Alan-CRL/dev
Alan-CRL May 8, 2025
54fbde8
Merge pull request #70 from Alan-CRL/dev
Alan-CRL May 8, 2025
78532be
Merge pull request #72 from Alan-CRL/dev
Alan-CRL May 12, 2025
477d1f5
Merge pull request #73 from Alan-CRL/dev
Alan-CRL May 20, 2025
c9a7796
Merge pull request #74 from Alan-CRL/dev
Alan-CRL May 20, 2025
6000472
Merge pull request #75 from Alan-CRL/dev
Alan-CRL May 21, 2025
7d14f3f
Merge pull request #76 from Alan-CRL/dev
Alan-CRL May 23, 2025
6a23ede
Merge pull request #78 from Alan-CRL/dev
Alan-CRL May 24, 2025
e612dc0
Merge pull request #79 from Alan-CRL/dev
Alan-CRL May 24, 2025
489f8c1
Merge pull request #80 from Alan-CRL/dev
Alan-CRL May 25, 2025
649fd42
Merge pull request #81 from Alan-CRL/dev
Alan-CRL May 28, 2025
92c50ef
Merge pull request #82 from Alan-CRL/dev
Alan-CRL May 30, 2025
5f38fb5
Merge pull request #88 from Alan-CRL/dev
Alan-CRL Jun 6, 2025
63c204f
[auto]20250606 2334 update
Alan-CRL Jun 6, 2025
dfa563a
[auto]20250606 2335 update
Alan-CRL Jun 6, 2025
1502e7b
[auto]20250607 1424 update
Alan-CRL Jun 7, 2025
0d3cde0
[auto]20250607 1425 update
Alan-CRL Jun 7, 2025
6ed1716
[auto]20250607 1521 update
Alan-CRL Jun 7, 2025
e1e45a4
[auto]20250612 1702 update
Alan-CRL Jun 12, 2025
ac8d9dd
[auto]20250612 1702 update
Alan-CRL Jun 12, 2025
445578d
[auto]20250613 1746 update
Alan-CRL Jun 13, 2025
a26ad94
[auto]20250615 1054 update
Alan-CRL Jun 15, 2025
0c09c6e
Merge pull request #90 from Alan-CRL/dev
Alan-CRL Jun 15, 2025
21e782b
[auto]20250616 1423 update
Alan-CRL Jun 16, 2025
48a57bc
[auto]20250622 1404 update
Alan-CRL Jun 22, 2025
7467856
[auto]20250626 1304 update
Alan-CRL Jun 26, 2025
22ebee8
[auto]20250626 1732 update
Alan-CRL Jun 26, 2025
60eb0cb
[auto]20250701 1356 update
Alan-CRL Jul 1, 2025
d882951
[auto]20250703 1455 update
Alan-CRL Jul 3, 2025
a645c6f
[auto]20250705 1340 update
Alan-CRL Jul 5, 2025
5c40488
[auto]20250707 1249 update
Alan-CRL Jul 7, 2025
5d60718
[auto]20250711 1401 update
Alan-CRL Jul 11, 2025
3b02ead
[auto]20250714 1324 update
Alan-CRL Jul 14, 2025
09d5ed9
[auto]20250715 043 update
Alan-CRL Jul 14, 2025
baeb99f
[auto]20250715 1350 update
Alan-CRL Jul 15, 2025
d5b185e
[auto]20250716 023 update
Alan-CRL Jul 15, 2025
60c107c
Merge pull request #92 from Alan-CRL/dev
Alan-CRL Jul 15, 2025
0f045bf
[auto]20250716 039 update
Alan-CRL Jul 15, 2025
cfdbf8e
Merge pull request #93 from Alan-CRL/dev
Alan-CRL Jul 15, 2025
ff1af8b
[auto]20250719 2102 update
Alan-CRL Jul 19, 2025
78c24b6
Merge pull request #94 from Alan-CRL/dev
Alan-CRL Jul 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ jobs:

- name: 提交给 SignPath 签名
id: signpath
timeout-minutes: 30
uses: signpath/github-action-submit-signing-request@v1.1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
Expand Down Expand Up @@ -409,7 +410,7 @@ jobs:
$size3 = (Get-Item $uploadFile3).Length

$content = @"
"Insider": {
"${{ steps.softwareChannel.outputs.VALUE }}": {
"edition_date": "${{ steps.softwareDate.outputs.VALUE }}",
"edition_code": "",
"hash": {
Expand Down Expand Up @@ -606,6 +607,8 @@ jobs:

- name: Upload to WebDAV with rclone
id: upload_webdav
timeout-minutes: 60
continue-on-error: true
shell: pwsh
run: |
if ("${{ secrets.WEBDAV_API_TOKEN }}" -ne "")
Expand All @@ -618,7 +621,7 @@ jobs:
# 开始上传
Write-Host "开始上传到 WebDAV..."
Write-Host "进度将每 10 秒更新一次"
Write-Host "超时时间: 5 分钟"
Write-Host "超时时间: 15 分钟"
Write-Host "目标路径: /Inkeys/PackageHistory/$Env:GITHUB_REF_NAME"
Write-Host ""

Expand All @@ -629,7 +632,7 @@ jobs:
--progress `
--transfers 1 `
--checkers 1 `
--timeout 5m `
--timeout 30s `
--contimeout 30s `
--retries 3 `
--retries-sleep 5s `
Expand Down
47 changes: 36 additions & 11 deletions PptCOM/PptCOM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class PptCOMServer : IPptCOMServer
private unsafe int* pptTotalPage;
private unsafe int* pptCurrentPage;

private int polling = 0; // 结束界面轮询
private int polling = 0; // 结束界面轮询(0正常页 1/2末页或结束放映页)(2设定为运行一次不被检查的翻页,虽然我也不知道当时写这个是为了特判什么情况Hhh)
private DateTime updateTime; // 更新时间点
private bool bindingEvents;

Expand All @@ -98,7 +98,7 @@ public unsafe bool Initialization(int* TotalPage, int* CurrentPage, bool autoClo
}
public string CheckCOM()
{
string ret = "20250508a";
string ret = "20250714a";

try
{
Expand All @@ -124,23 +124,39 @@ private unsafe void SlideShowChange(Microsoft.Office.Interop.PowerPoint.SlideSho
{
updateTime = DateTime.Now;

if (pptActWindow.View.Slide.SlideIndex >= pptActDoc.Slides.Count) polling = 1;
else polling = 0;
try
{
*pptCurrentPage = pptActWindow.View.Slide.SlideIndex;

*pptCurrentPage = pptActWindow.View.Slide.SlideIndex;
if (pptActWindow.View.Slide.SlideIndex >= pptActDoc.Slides.Count) polling = 1;
else polling = 0;
}
catch
{
*pptCurrentPage = -1;
polling = 1;
}
}

private unsafe void SlideShowBegin(Microsoft.Office.Interop.PowerPoint.SlideShowWindow Wn)
{
updateTime = DateTime.Now;
pptActWindow = Wn;

if (pptActWindow.View.Slide.SlideIndex >= pptActDoc.Slides.Count) polling = 1;
else polling = 0;
try
{
if (pptActWindow.View.Slide.SlideIndex >= pptActDoc.Slides.Count) polling = 1;
else polling = 0;
}
catch
{
// Begin 事件定在结束放映页的小丑情况(虽然不可能有这种情况)
polling = 1;
}

// 获取页数
*pptCurrentPage = pptActWindow.View.Slide.SlideIndex;
*pptTotalPage = pptActDoc.Slides.Count;
*pptCurrentPage = pptActWindow.View.Slide.SlideIndex;
}

private unsafe void SlideShowShowEnd(Microsoft.Office.Interop.PowerPoint.Presentation Wn)
Expand Down Expand Up @@ -407,7 +423,10 @@ public unsafe void NextSlideShow(int check)
// 下一页
if (polling != 0)
{
if (polling == 2) pptActWindow.View.Next();
if (polling == 2)
{
pptActWindow.View.Next();
}
else if (polling == 1)
{
int currentPageTemp = -1;
Expand All @@ -419,11 +438,17 @@ public unsafe void NextSlideShow(int check)
{
currentPageTemp = -1;
}
if (currentPageTemp != -1) pptActWindow.View.Next();
if (currentPageTemp != -1)
{
pptActWindow.View.Next();
}
}
polling = 1;
}
else pptActWindow.View.Next();
else
{
pptActWindow.View.Next();
}
}
catch
{
Expand Down
5 changes: 1 addition & 4 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<div align="center">

We are sorry to inform you that the internationalization language of the program itself is not yet complete and has not been added to the program.
**We will complete it as soon as possible!**

**Copyright(©) 2023-2025 AlanCRL(Chen YunLam) Studio**

Expand All @@ -15,7 +12,7 @@ The backup repository is located at [GitCode](https://gitcode.com/alan16356/Inke
# 智绘教Inkeys
[简体中文](README.md) | **English**

[Download from Github Release Assets](https://github.com/Alan-CRL/IDT/releases) | **[Official Website(Chinese)](https://www.inkeys.top)** | FAQ
[Download from Github Release Assets](https://github.com/Alan-CRL/IDT/releases) | **[Official Website](https://en.inkeys.top)** | FAQ

[![Communication Group](https://img.shields.io/badge/-QQ%20Group%20618720802-blue?style=flat&logo=TencentQQ)](https://qm.qq.com/cgi-bin/qm/qr?k=9V2l83dc0yP4UYeDF-NkTX0o7_TcYqlh&jump_from=webapi&authKey=LsLLUhb1KSzHYbc8k5nCQDqTtRcRUCEE3j+DdR9IgHaF/7JF7LLpY191hsiYEBz6) ![GitHub issues](https://img.shields.io/github/issues/Alan-CRL/IDT?logo=github&color=green) ![GitHub stars](https://img.shields.io/github/stars/Alan-CRL/IDT)

Expand Down
10 changes: 5 additions & 5 deletions 智绘教/IdtConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ bool ReadSetting()
setlist.configurationSetting.enable = setlistVal["ConfigurationSetting"]["Enable"].asBool();
}

if (setlistVal.isMember("SelectLanguage") && setlistVal["SelectLanguage"].isBool())
setlist.selectLanguage = setlistVal["SelectLanguage"].asBool();
if (setlistVal.isMember("SelectLanguage") && setlistVal["SelectLanguage"].isInt())
setlist.selectLanguage = setlistVal["SelectLanguage"].asInt();
if (setlistVal.isMember("StartUp") && setlistVal["StartUp"].isBool())
setlist.startUp = setlistVal["StartUp"].asBool();
if (setlistVal.isMember("SettingGlobalScale") && setlistVal["SettingGlobalScale"].isDouble())
Expand Down Expand Up @@ -184,8 +184,8 @@ bool ReadSetting()
if (setlistVal["Performance"].isMember("PreparationQuantity") && setlistVal["Performance"]["PreparationQuantity"].isInt())
setlist.performanceSetting.preparationQuantity = setlistVal["Performance"]["PreparationQuantity"].asInt();

if (setlistVal["Performance"].isMember("SuperDrawBeta") && setlistVal["Performance"]["SuperDrawBeta"].isBool())
setlist.performanceSetting.superDraw = setlistVal["Performance"]["SuperDrawBeta"].asBool();
if (setlistVal["Performance"].isMember("SuperDrawBeta2") && setlistVal["Performance"]["SuperDrawBeta2"].isBool())
setlist.performanceSetting.superDraw = setlistVal["Performance"]["SuperDrawBeta2"].asBool();
}
if (setlistVal.isMember("Preset") && setlistVal["Preset"].isObject())
{
Expand Down Expand Up @@ -421,7 +421,7 @@ bool WriteSetting()
{
setlistVal["Performance"]["PreparationQuantity"] = Json::Value(setlist.performanceSetting.preparationQuantity);

setlistVal["Performance"]["SuperDrawBeta"] = Json::Value(setlist.performanceSetting.superDraw);
setlistVal["Performance"]["SuperDrawBeta2"] = Json::Value(setlist.performanceSetting.superDraw);
}
{
setlistVal["Preset"]["MemoryWidth"] = Json::Value(setlist.presetSetting.memoryWidth);
Expand Down
3 changes: 3 additions & 0 deletions 智绘教/IdtConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ struct SetListStruct

#pragma region 常规
int selectLanguage;
// en-US 0
// zh-CN 1
// zh-TW 2

bool startUp;

Expand Down
2 changes: 1 addition & 1 deletion 智绘教/IdtD2DPreparation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void D2DStarup()
// 创建 D2D 工厂
D2D1CreateFactory(D2D1_FACTORY_TYPE_MULTI_THREADED, &D2DFactory);

// 创建 DC Render 并指定软件加速(因为比硬件加速快,不知道为啥)
// 创建 DC Render 并指定软件加速(因为比硬件加速快,不知道为啥,现在知道了qaq
D2DProperty = D2D1::RenderTargetProperties(D2D1_RENDER_TARGET_TYPE::D2D1_RENDER_TARGET_TYPE_SOFTWARE,
D2D1::PixelFormat(
DXGI_FORMAT_B8G8R8A8_UNORM,
Expand Down
Loading
Loading