Skip to content

Commit

Permalink
Fix: Fix the windows similarity titles
Browse files Browse the repository at this point in the history
  • Loading branch information
MbarkT3STO committed Apr 10, 2024
1 parent 584e1e6 commit 7842b87
Show file tree
Hide file tree
Showing 126 changed files with 96 additions and 31 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/OfficeDRPC/v17/.suo
Binary file not shown.
31 changes: 24 additions & 7 deletions .vs/OfficeDRPC/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\",
"WorkspaceRootPath": "C:\\Users\\MBARK\\source\\repos\\OfficeDRPC\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|c:\\users\\mbark.azuread\\source\\repos\\mbarkt3sto\\officedrpc\\officedrpccommander\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|c:\\users\\mbark\\source\\repos\\officedrpc\\officedrpccommander\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|solutionrelative:officedrpccommander\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|c:\\users\\mbark\\source\\repos\\officedrpc\\officedrpccommander\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|solutionrelative:officedrpccommander\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
Expand All @@ -14,17 +18,17 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"DocumentIndex": 1,
"Title": "Worker.cs",
"DocumentMoniker": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\Worker.cs",
"DocumentMoniker": "C:\\Users\\MBARK\\source\\repos\\OfficeDRPC\\OfficeDRPCCommander\\Worker.cs",
"RelativeDocumentMoniker": "OfficeDRPCCommander\\Worker.cs",
"ToolTip": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\Worker.cs",
"ToolTip": "C:\\Users\\MBARK\\source\\repos\\OfficeDRPC\\OfficeDRPCCommander\\Worker.cs",
"RelativeToolTip": "OfficeDRPCCommander\\Worker.cs",
"ViewState": "AQIAAA8AAAAAAAAAAAAAABsAAAAAAAAA",
"ViewState": "AQIAAAYAAAAAAAAAAAAAwBgAAABIAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-07T22:48:42.615Z",
"IsPinned": true,
Expand All @@ -37,6 +41,19 @@
{
"$type": "Bookmark",
"Name": "ST:130:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\MBARK\\source\\repos\\OfficeDRPC\\OfficeDRPCCommander\\Program.cs",
"RelativeDocumentMoniker": "OfficeDRPCCommander\\Program.cs",
"ToolTip": "C:\\Users\\MBARK\\source\\repos\\OfficeDRPC\\OfficeDRPCCommander\\Program.cs",
"RelativeToolTip": "OfficeDRPCCommander\\Program.cs",
"ViewState": "AQIAAAcAAAAAAAAAAAAqwBEAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-10T09:25:19.816Z",
"EditorCaption": ""
}
]
}
Expand Down
Binary file modified AccessDRPC/bin/Debug/AccessDRPC.exe
Binary file not shown.
Binary file modified AccessDRPC/bin/Debug/AccessDRPC.pdb
Binary file not shown.
Binary file modified AccessDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified AccessDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified AccessDRPC/obj/Debug/AccessDRPC.csproj.AssemblyReference.cache
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
Binary file modified AccessDRPC/obj/Debug/AccessDRPC.exe
Binary file not shown.
Binary file modified AccessDRPC/obj/Debug/AccessDRPC.pdb
Binary file not shown.
Binary file not shown.
10 changes: 6 additions & 4 deletions ExcelDRPC/PresenceWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,15 @@ private static string GetActiveWindowName()
var windowTitle = new string(' ', nChars);
GetWindowText(foregroundWindow, windowTitle, nChars);

if (!windowTitle.Contains(" - Excel")) return string.Empty;
var trimmedWindowTitle = windowTitle.Trim().Trim("\0".ToCharArray());

// Remove from ' - ' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - ", StringComparison.Ordinal));
if (!trimmedWindowTitle.EndsWith("- Excel", StringComparison.Ordinal))
return string.Empty;

return fileName;
// Remove from ' - Excel' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - Excel", StringComparison.Ordinal));

return fileName;
}


Expand Down
Binary file modified ExcelDRPC/bin/Debug/ExcelDRPC.exe
Binary file not shown.
Binary file modified ExcelDRPC/bin/Debug/ExcelDRPC.pdb
Binary file not shown.
Binary file modified ExcelDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified ExcelDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file modified ExcelDRPC/obj/Debug/ExcelDRPC.csproj.AssemblyReference.cache
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
Binary file modified ExcelDRPC/obj/Debug/ExcelDRPC.exe
Binary file not shown.
Binary file modified ExcelDRPC/obj/Debug/ExcelDRPC.pdb
Binary file not shown.
9 changes: 6 additions & 3 deletions OfficeDRPC/PresenceWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,13 @@ private static string GetActiveWindowName()
var windowTitle = new string(' ', nChars);
GetWindowText(foregroundWindow, windowTitle, nChars);

if (!windowTitle.Contains(" - Word")) return string.Empty;
var trimmedWindowTitle = windowTitle.Trim().Trim("\0".ToCharArray());

// Remove from ' - ' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - ", StringComparison.Ordinal));
if (!trimmedWindowTitle.EndsWith("- Word", StringComparison.Ordinal))
return string.Empty;

// Remove from ' - Word' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - Word", StringComparison.Ordinal));

return fileName;

Expand Down
Binary file modified OfficeDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified OfficeDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPC/bin/Debug/OfficeDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPC/bin/Debug/OfficeDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file modified OfficeDRPC/obj/Debug/OfficeDRPC.csproj.AssemblyReference.cache
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
38f64d8b68f3ae11b273d588493deb56ca8c610e17313f6038a240c679eb6639
38cbf5002e6198a3b54e49e1e71dc352e3309517f34414d4a4125860e7666c8c
Binary file modified OfficeDRPC/obj/Debug/OfficeDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPC/obj/Debug/OfficeDRPC.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion OfficeDRPCCommander/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void Main(string[] args)
// Keep the app running
Thread.Sleep(Timeout.Infinite);
}
catch (Exception ex)
catch (Exception)
{
Environment.Exit(0);
}
Expand Down
Binary file modified OfficeDRPCCommander/bin/Debug/AccessDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/AccessDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/ExcelDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/ExcelDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OfficeDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OfficeDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OfficeDRPCCommander.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OfficeDRPCCommander.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OnedriveDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OnedriveDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OutlookDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/OutlookDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/PowerBiDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/PowerBiDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/PowerPointDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/PowerPointDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/PublisherDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/PublisherDRPC.pdb
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/WhiteboardDRPC.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/bin/Debug/WhiteboardDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5abe98e68a5a5bc3d0d91c75e442663c97b8aad3b04c657cb160cf9c0a3e93ec
c72b1fb25e26cd24ba3413819b6603f697d2e18e010d44323765ae29d485e3d5
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,30 @@ C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\OfficeDRPCCommander\ob
C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\OfficeDRPCCommander\obj\Debug\OfficeDR.0CFD86BA.Up2Date
C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\OfficeDRPCCommander\obj\Debug\OfficeDRPCCommander.exe
C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\OfficeDRPCCommander\obj\Debug\OfficeDRPCCommander.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\AccessDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\ExcelDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OfficeDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OnedriveDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OutlookDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PowerBiDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PowerPointDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PublisherDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\WhiteboardDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\AccessDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\AccessDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\ExcelDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\ExcelDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OfficeDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OfficeDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OnedriveDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OnedriveDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OutlookDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\OutlookDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PowerBiDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PowerBiDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PowerPointDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PowerPointDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PublisherDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\PublisherDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\WhiteboardDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\OfficeDRPCCommander\bin\Debug\WhiteboardDRPC.exe.config
Binary file modified OfficeDRPCCommander/obj/Debug/OfficeDRPCCommander.exe
Binary file not shown.
Binary file modified OfficeDRPCCommander/obj/Debug/OfficeDRPCCommander.pdb
Binary file not shown.
Binary file modified OnedriveDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified OnedriveDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified OnedriveDRPC/bin/Debug/OnedriveDRPC.exe
Binary file not shown.
Binary file modified OnedriveDRPC/bin/Debug/OnedriveDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
Binary file modified OnedriveDRPC/obj/Debug/OnedriveDRPC.exe
Binary file not shown.
Binary file modified OnedriveDRPC/obj/Debug/OnedriveDRPC.pdb
Binary file not shown.
Binary file modified OutlookDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified OutlookDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified OutlookDRPC/bin/Debug/OutlookDRPC.exe
Binary file not shown.
Binary file modified OutlookDRPC/bin/Debug/OutlookDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file modified OutlookDRPC/obj/Debug/OutlookDRPC.csproj.AssemblyReference.cache
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
Binary file modified OutlookDRPC/obj/Debug/OutlookDRPC.exe
Binary file not shown.
Binary file modified OutlookDRPC/obj/Debug/OutlookDRPC.pdb
Binary file not shown.
Binary file modified PowerBiDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified PowerBiDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified PowerBiDRPC/bin/Debug/PowerBiDRPC.exe
Binary file not shown.
Binary file modified PowerBiDRPC/bin/Debug/PowerBiDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file modified PowerBiDRPC/obj/Debug/PowerBiDRPC.csproj.AssemblyReference.cache
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
10 changes: 10 additions & 0 deletions PowerBiDRPC/obj/Debug/PowerBiDRPC.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\PowerBiDRPC\obj\Debug\
C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiD.DFB96028.Up2Date
C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiDRPC.exe
C:\Users\MBARK.AzureAD\source\repos\MbarkT3STO\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\bin\Debug\PowerBiDRPC.exe.config
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\bin\Debug\PowerBiDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\bin\Debug\PowerBiDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\bin\Debug\MBDRPC.dll
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\bin\Debug\MBDRPC.pdb
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiDRPC.csproj.AssemblyReference.cache
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiDRPC.csproj.CoreCompileInputs.cache
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiD.DFB96028.Up2Date
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiDRPC.exe
C:\Users\MBARK\source\repos\OfficeDRPC\PowerBiDRPC\obj\Debug\PowerBiDRPC.pdb
Binary file modified PowerBiDRPC/obj/Debug/PowerBiDRPC.exe
Binary file not shown.
Binary file modified PowerBiDRPC/obj/Debug/PowerBiDRPC.pdb
Binary file not shown.
9 changes: 6 additions & 3 deletions PowerPointDRPC/PresenceWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,13 @@ private static string GetActiveWindowName()
var windowTitle = new string(' ', nChars);
GetWindowText(foregroundWindow, windowTitle, nChars);

if (!windowTitle.Contains(" - PowerPoint")) return string.Empty;
var trimmedWindowTitle = windowTitle.Trim().Trim("\0".ToCharArray());

// Remove from ' - ' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - ", StringComparison.Ordinal));
if (!trimmedWindowTitle.EndsWith("- PowerPoint", StringComparison.Ordinal))
return string.Empty;

// Remove from ' - PowerPoint' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - PowerPoint", StringComparison.Ordinal));

return fileName;

Expand Down
Binary file modified PowerPointDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified PowerPointDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified PowerPointDRPC/bin/Debug/PowerPointDRPC.exe
Binary file not shown.
Binary file modified PowerPointDRPC/bin/Debug/PowerPointDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
Binary file modified PowerPointDRPC/obj/Debug/PowerPointDRPC.exe
Binary file not shown.
Binary file modified PowerPointDRPC/obj/Debug/PowerPointDRPC.pdb
Binary file not shown.
9 changes: 6 additions & 3 deletions PublisherDRPC/PresenceWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,13 @@ private static string GetActiveWindowName()
var windowTitle = new string(' ', nChars);
GetWindowText(foregroundWindow, windowTitle, nChars);

if (!windowTitle.Contains(" - Publisher")) return string.Empty;
var trimmedWindowTitle = windowTitle.Trim().Trim("\0".ToCharArray());

// Remove from ' - ' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - ", StringComparison.Ordinal));
if (!trimmedWindowTitle.EndsWith("- Publisher", StringComparison.Ordinal))
return string.Empty;

// Remove from ' - Publisher' to the end from the window title
var fileName = windowTitle.Substring(0, windowTitle.IndexOf(" - Publisher", StringComparison.Ordinal));

return fileName;

Expand Down
Binary file modified PublisherDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified PublisherDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified PublisherDRPC/bin/Debug/PublisherDRPC.exe
Binary file not shown.
Binary file modified PublisherDRPC/bin/Debug/PublisherDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
Binary file modified PublisherDRPC/obj/Debug/PublisherDRPC.exe
Binary file not shown.
Binary file modified PublisherDRPC/obj/Debug/PublisherDRPC.pdb
Binary file not shown.
Binary file modified WhiteboardDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified WhiteboardDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified WhiteboardDRPC/bin/Debug/WhiteboardDRPC.exe
Binary file not shown.
Binary file modified WhiteboardDRPC/bin/Debug/WhiteboardDRPC.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4a3b25d60ed521ac477465e38d9bb9048c975053ca9db614d3588f90c364ebc1
160627e69bcbb3260e388e684f7487ceddd17969e7ba2c2990a58a6bbc468ad5
Binary file modified WhiteboardDRPC/obj/Debug/WhiteboardDRPC.exe
Binary file not shown.
Binary file modified WhiteboardDRPC/obj/Debug/WhiteboardDRPC.pdb
Binary file not shown.

0 comments on commit 7842b87

Please sign in to comment.