Skip to content

Commit

Permalink
Adds lighthandlers
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-dupdyke committed Jul 26, 2023
1 parent ef945fd commit 1b604b0
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Ghosts.Client/Ghosts.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
<None Include="Sample Timelines\BrowserChromeSharepoint.json" />
<None Include="Sample Timelines\BrowserFirefox.json" />
<None Include="Sample Timelines\Ftp.json" />
<None Include="Sample Timelines\LightHandlers.json" />
<None Include="Sample Timelines\Notepad.json" />
<None Include="Sample Timelines\Clicks.json" />
<None Include="Sample Timelines\command.json" />
Expand Down
2 changes: 1 addition & 1 deletion src/Ghosts.Client/Handlers/LightHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void ExecuteEvents(TimelineHandler handler)

public class LightPowerPointHandler : BaseHandler
{
// TODO
// NPOI Does not support PowerPoint Presentations
}

public class LightExcelHandler : BaseHandler
Expand Down
2 changes: 1 addition & 1 deletion src/Ghosts.Client/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.0.0.0")]
[assembly: AssemblyInformationalVersion("7.0.0.0")]
[assembly: AssemblyFileVersion("7.0.161.0")]
[assembly: AssemblyFileVersion("7.0.166.0")]
35 changes: 35 additions & 0 deletions src/Ghosts.Client/Sample Timelines/LightHandlers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"Status": "Run",
"TimeLineHandlers": [
{
"HandlerType": "LightExcel",
"Initial": "",
"UtcTimeOn": "00:00:00",
"UtcTimeOff": "24:00:00",
"Loop": true,
"TimeLineEvents": [
{
"Command": "create",
"CommandArgs": [ "%HOMEDRIVE%%HOMEPATH%\\Downloads" ],
"DelayAfter": 0,
"DelayBefore": 0
}
]
},
{
"HandlerType": "LightWord",
"Initial": "",
"UtcTimeOn": "00:00:00",
"UtcTimeOff": "24:00:00",
"Loop": true,
"TimeLineEvents": [
{
"Command": "create",
"CommandArgs": [ "%HOMEDRIVE%%HOMEPATH%\\Downloads" ],
"DelayAfter": 0,
"DelayBefore": 0
}
]
}
]
}
13 changes: 13 additions & 0 deletions src/Ghosts.Client/TimelineManager/Orchestrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,19 @@ private void ThreadLaunchEx(Timeline timeline, TimelineHandler handler)
_ = new Print(handler);
});
break;
case HandlerType.LightWord:
t = new Thread(() =>
{
_ = new LightHandlers.LightWordHandler(handler);
});
break;
case HandlerType.LightExcel:
t = new Thread(() =>
{
_ = new LightHandlers.LightExcelHandler(handler);
});
break;
}

if (t == null) return;
Expand Down

0 comments on commit 1b604b0

Please sign in to comment.