Skip to content
This repository was archived by the owner on Apr 21, 2021. It is now read-only.

Commit 9874d0c

Browse files
committed
Merge branch 'master' into stable
2 parents 260c058 + 30cec30 commit 9874d0c

11 files changed

+39
-13
lines changed

.build/build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Task Document -depends Build {
109109
git config --global credential.helper store
110110
Add-Content "$HOME\.git-credentials" "https://$($env:github_access_token):[email protected]`n"
111111
git config --global user.email $env:github_email
112-
git config --global user.name "buildbot121"
112+
git config --global user.name "buildbot171"
113113
git add . -A
114114
git commit -m "API documentation update by build server"
115115
git push origin master

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Windows User Action Hook
22

3+
### Note: This Project is no longer maintained.
4+
35
A one stop library for global windows user actions such mouse, keyboard, clipboard, & print events
46

57
<a href="https://ci.appveyor.com/project/justcoding121/windows-user-action-hook">![Build Status](https://ci.appveyor.com/api/projects/status/htea647ukrgg4qcl?svg=true)</a>

appveyor.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test: on
4040
skip_tags: true
4141

4242
skip_commits:
43-
author: buildbot121
43+
author: buildbot171
4444
files:
4545
- docs/*
4646
- README.md
@@ -57,11 +57,11 @@ artifacts:
5757

5858
environment:
5959
github_access_token:
60-
secure: BGdKiI7FwHGkFt+/OmgZDkE1hzLqLrTxcc9c+joVqGyO4LvesHb1sR6hzisVwVPm
60+
secure: mZLeq0GTB9kb5b6+HnVpJB6hhiYMJIQ2+Zf/DwZ/LEIyxJaYB1nx36aGHXE9q1cN
6161
github_email:
62-
secure: wvYod3JLufbIBkavRXlCP724wJkhqR2RRuLLaPnqfps=
62+
secure: iBJZGqxyiHVNeYI0uIW+MdGd3I3pg8brJtETNRkKe/A=
6363
nuget_access_token:
64-
secure: ZbRmjOcp+TDllRV1wxqLZjdRV7hld388rXlWVJuGGiQleomP9Ku+Nsy3a75E7/9k
64+
secure: 65rklofkoUWJzPPja621kXlxrruHemmbREnIX7QgXK0cydW412yYMZJQsN42Js27
6565
deploy:
6666
- provider: GitHub
6767
auth_token: $(github_access_token)

docs/api/EventHook.Hooks.POINT.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ <h5 class="fieldValue">Field Value</h5>
134134
</thead>
135135
<tbody>
136136
<tr>
137-
<td><span class="xref">System.Int32</span></td>
137+
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
138138
<td></td>
139139
</tr>
140140
</tbody>
@@ -158,7 +158,7 @@ <h5 class="fieldValue">Field Value</h5>
158158
</thead>
159159
<tbody>
160160
<tr>
161-
<td><span class="xref">System.Int32</span></td>
161+
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
162162
<td></td>
163163
</tr>
164164
</tbody>

docs/api/EventHook.PrintEventData.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ <h5 class="propertyValue">Property Value</h5>
193193
</thead>
194194
<tbody>
195195
<tr>
196-
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<span class="xref">System.Int32</span>&gt;</td>
196+
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
197197
<td></td>
198198
</tr>
199199
</tbody>
@@ -218,7 +218,7 @@ <h5 class="propertyValue">Property Value</h5>
218218
</thead>
219219
<tbody>
220220
<tr>
221-
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<span class="xref">System.Int32</span>&gt;</td>
221+
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
222222
<td></td>
223223
</tr>
224224
</tbody>

docs/api/EventHook.WindowData.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h5 class="fieldValue">Field Value</h5>
142142
</thead>
143143
<tbody>
144144
<tr>
145-
<td><span class="xref">System.Int32</span></td>
145+
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
146146
<td></td>
147147
</tr>
148148
</tbody>

docs/index.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"api/EventHook.Hooks.Point.html": {
4848
"href": "api/EventHook.Hooks.Point.html",
4949
"title": "Struct Point | EventHook",
50-
"keywords": "Struct Point The point co-ordinate. Inherited Members ValueType.Equals(Object) ValueType.GetHashCode() ValueType.ToString() Object.Equals(Object, Object) Object.ReferenceEquals(Object, Object) Object.GetType() Namespace : EventHook.Hooks Assembly : EventHook.dll Syntax public struct Point Fields x Declaration public readonly int x Field Value Type Description System.Int32 y Declaration public readonly int y Field Value Type Description System.Int32"
50+
"keywords": "Struct Point The point co-ordinate. Inherited Members ValueType.Equals(Object) ValueType.GetHashCode() ValueType.ToString() Object.Equals(Object, Object) Object.ReferenceEquals(Object, Object) Object.GetType() Namespace : EventHook.Hooks Assembly : EventHook.dll Syntax public struct Point Fields x Declaration public readonly int x Field Value Type Description Int32 y Declaration public readonly int y Field Value Type Description Int32"
5151
},
5252
"api/EventHook.html": {
5353
"href": "api/EventHook.html",
@@ -92,7 +92,7 @@
9292
"api/EventHook.PrintEventData.html": {
9393
"href": "api/EventHook.PrintEventData.html",
9494
"title": "Class PrintEventData | EventHook",
95-
"keywords": "Class PrintEventData An object holding key information on a particular print event. Inheritance Object PrintEventData Inherited Members Object.ToString() Object.Equals(Object) Object.Equals(Object, Object) Object.ReferenceEquals(Object, Object) Object.GetHashCode() Object.GetType() Object.MemberwiseClone() Namespace : EventHook Assembly : EventHook.dll Syntax public class PrintEventData Properties EventDateTime Declaration public DateTime EventDateTime { get; set; } Property Value Type Description DateTime JobName Declaration public string JobName { get; set; } Property Value Type Description String JobSize Declaration public int? JobSize { get; set; } Property Value Type Description Nullable < System.Int32 > Pages Declaration public int? Pages { get; set; } Property Value Type Description Nullable < System.Int32 > PrinterName Declaration public string PrinterName { get; set; } Property Value Type Description String"
95+
"keywords": "Class PrintEventData An object holding key information on a particular print event. Inheritance Object PrintEventData Inherited Members Object.ToString() Object.Equals(Object) Object.Equals(Object, Object) Object.ReferenceEquals(Object, Object) Object.GetHashCode() Object.GetType() Object.MemberwiseClone() Namespace : EventHook Assembly : EventHook.dll Syntax public class PrintEventData Properties EventDateTime Declaration public DateTime EventDateTime { get; set; } Property Value Type Description DateTime JobName Declaration public string JobName { get; set; } Property Value Type Description String JobSize Declaration public int? JobSize { get; set; } Property Value Type Description Nullable < Int32 > Pages Declaration public int? Pages { get; set; } Property Value Type Description Nullable < Int32 > PrinterName Declaration public string PrinterName { get; set; } Property Value Type Description String"
9696
},
9797
"api/EventHook.PrintWatcher.html": {
9898
"href": "api/EventHook.PrintWatcher.html",
@@ -102,6 +102,6 @@
102102
"api/EventHook.WindowData.html": {
103103
"href": "api/EventHook.WindowData.html",
104104
"title": "Class WindowData | EventHook",
105-
"keywords": "Class WindowData An object that holds information on application event. Inheritance Object WindowData Inherited Members Object.ToString() Object.Equals(Object) Object.Equals(Object, Object) Object.ReferenceEquals(Object, Object) Object.GetHashCode() Object.GetType() Object.MemberwiseClone() Namespace : EventHook Assembly : EventHook.dll Syntax public class WindowData Fields EventType Declaration public int EventType Field Value Type Description System.Int32 HWnd Declaration public IntPtr HWnd Field Value Type Description IntPtr Properties AppName Declaration public string AppName { get; set; } Property Value Type Description String AppPath Declaration public string AppPath { get; set; } Property Value Type Description String AppTitle Declaration public string AppTitle { get; set; } Property Value Type Description String"
105+
"keywords": "Class WindowData An object that holds information on application event. Inheritance Object WindowData Inherited Members Object.ToString() Object.Equals(Object) Object.Equals(Object, Object) Object.ReferenceEquals(Object, Object) Object.GetHashCode() Object.GetType() Object.MemberwiseClone() Namespace : EventHook Assembly : EventHook.dll Syntax public class WindowData Fields EventType Declaration public int EventType Field Value Type Description Int32 HWnd Declaration public IntPtr HWnd Field Value Type Description IntPtr Properties AppName Declaration public string AppName { get; set; } Property Value Type Description String AppPath Declaration public string AppPath { get; set; } Property Value Type Description String AppTitle Declaration public string AppTitle { get; set; } Property Value Type Description String"
106106
}
107107
}

src/EventHook/ApplicationWatcher.cs

+6
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ private async Task AppConsumer()
185185
{
186186
//blocking here until a key is added to the queue
187187
var item = await appQueue.DequeueAsync();
188+
189+
if(item is null)
190+
{
191+
continue;
192+
}
193+
188194
if (item is bool)
189195
{
190196
break;

src/EventHook/ClipboardWatcher.cs

+6
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ private async Task ClipConsumerAsync()
132132
while (isRunning)
133133
{
134134
var item = await clipQueue.DequeueAsync();
135+
136+
if (item is null)
137+
{
138+
continue;
139+
}
140+
135141
if (item is bool)
136142
{
137143
break;

src/EventHook/KeyboardWatcher.cs

+6
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ private async Task ConsumeKeyAsync()
144144
{
145145
//blocking here until a key is added to the queue
146146
var item = await keyQueue.DequeueAsync();
147+
148+
if (item is null)
149+
{
150+
continue;
151+
}
152+
147153
if (item is bool)
148154
{
149155
break;

src/EventHook/MouseWatcher.cs

+6
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ private async Task ConsumeKeyAsync()
120120
{
121121
//blocking here until a key is added to the queue
122122
var item = await mouseQueue.DequeueAsync();
123+
124+
if (item is null)
125+
{
126+
continue;
127+
}
128+
123129
if (item is bool)
124130
{
125131
break;

0 commit comments

Comments
 (0)