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

Commit 260c058

Browse files
Merge pull request #21 from justcoding121/master
Extended mouse event data & AsyncQueue fix
2 parents 73f2416 + 768621b commit 260c058

File tree

87 files changed

+235
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+235
-156
lines changed

.build/build.ps1

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ $PSake.use_exit_on_error = $true
22

33
$Here = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
44

5-
$SolutionRoot = (Split-Path -parent $Here)
5+
$RepoRoot = $(Split-Path -parent $Here)
6+
$SolutionRoot = "$RepoRoot\src"
67

78
$ProjectName = "EventHook"
89
$GitHubProjectName = "Windows-User-Action-Hook"
@@ -26,7 +27,7 @@ if(!$Branch) { $Branch = "local" }
2627

2728
if($Branch -eq "beta" ) { $Version = "$Version-beta" }
2829

29-
$NuGet = Join-Path $SolutionRoot ".nuget\nuget.exe"
30+
$NuGet = Join-Path $RepoRoot ".nuget\nuget.exe"
3031

3132
$MSBuild = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe"
3233
$MSBuild -replace ' ', '` '
@@ -65,12 +66,13 @@ Task Document -depends Build {
6566

6667
if($Branch -eq "master")
6768
{
69+
6870
#use docfx to generate API documentation from source metadata
6971
docfx docfx.json
7072

7173
#patch index.json so that it is always sorted
7274
#otherwise git will think file was changed
73-
$IndexJsonFile = "$SolutionRoot\docs\index.json"
75+
$IndexJsonFile = "$RepoRoot\docs\index.json"
7476
$unsorted = Get-Content $IndexJsonFile | Out-String
7577
[Reflection.Assembly]::LoadFile("$Here\lib\Newtonsoft.Json.dll")
7678
[System.Reflection.Assembly]::LoadWithPartialName("System")
@@ -79,7 +81,7 @@ Task Document -depends Build {
7981
Set-Content -Path $IndexJsonFile -Value $obj
8082

8183
#setup clone directory
82-
$TEMP_REPO_DIR =(Split-Path -parent $SolutionRoot) + "\temp-repo-clone"
84+
$TEMP_REPO_DIR =(Split-Path -parent $RepoRoot) + "\temp-repo-clone"
8385

8486
If(test-path $TEMP_REPO_DIR)
8587
{
@@ -101,7 +103,7 @@ Task Document -depends Build {
101103
cd "$TEMP_REPO_DIR\docs"
102104

103105
#copy docs to clone directory\docs
104-
Copy-Item -Path "$SolutionRoot\docs\*" -Destination "$TEMP_REPO_DIR\docs" -Recurse -Force
106+
Copy-Item -Path "$RepoRoot\docs\*" -Destination "$TEMP_REPO_DIR\docs" -Recurse -Force
105107

106108
#push changes to master
107109
git config --global credential.helper store
@@ -119,5 +121,6 @@ Task Document -depends Build {
119121

120122
#package nuget files
121123
Task Package -depends Document {
122-
exec { . $NuGet pack "$SolutionRoot\$ProjectName\$ProjectName.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot" -Version "$Version" }
124+
exec { . $NuGet pack "$SolutionRoot\$ProjectName\$ProjectName.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$RepoRoot" -Version "$Version" }
123125
}
126+

.build/docfx.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"src": [
55
{
66
"files": [ "EventHook.Docs.sln"],
7-
"src": "../"
7+
"src": "../src/"
88
}
99
],
1010
"dest": "obj/api"

.build/setup.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ param (
66

77
function Install-Chocolatey()
88
{
9-
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall"))
9+
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall\*"))
1010
{
1111
Write-Output "Chocolatey Not Found, Installing..."
1212
iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))
@@ -36,7 +36,7 @@ function Install-DocFx()
3636
{
3737
if(!(Test-Path $env:ChocolateyInstall\lib\docfx\tools*))
3838
{
39-
choco install docfx
39+
choco install docfx --version 2.40.1
4040
}
4141
$env:Path += ";$env:ChocolateyInstall\lib\docfx\tools"
4242
}

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,25 @@ Kindly report only issues/bugs here . For programming help or questions use [Sta
88

99
* [API Documentation](https://justcoding121.github.io/Windows-User-Action-Hook/api/EventHook.html)
1010

11-
## Supported Events
11+
### Supported Events
1212

1313
* Keyboard events
1414
* Mouse events
1515
* clipboard events
1616
* application events
1717
* print events
1818

19-
## Usage
19+
### Development enviroment
20+
21+
* Visual Studio 2017
22+
23+
### Usage
2024

2125
Install by [nuget](https://www.nuget.org/packages/EventHook)
2226

2327
Install-Package EventHook
2428

25-
## Sample Code:
29+
### Sample Code:
2630

2731
```csharp
2832
using (var eventHookFactory = new EventHookFactory())
@@ -75,4 +79,4 @@ using (var eventHookFactory = new EventHookFactory())
7579
}
7680
```
7781

78-
![alt tag](https://raw.githubusercontent.com/justcoding121/Windows-User-Action-Hook/stable/EventHook.Examples/EventHook.ConsoleApp.Example/Capture.PNG)
82+
![alt tag](https://raw.githubusercontent.com/justcoding121/Windows-User-Action-Hook/master/examples/EventHook.ConsoleApp.Example/Capture.PNG)

appveyor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ skip_tags: true
4141

4242
skip_commits:
4343
author: buildbot121
44-
44+
files:
45+
- docs/*
46+
- README.md
47+
- LICENSE
4548
#---------------------------------#
4649
# artifacts configuration #
4750
#---------------------------------#

docs/api/EventHook.ApplicationEventArgs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class ApplicationEventArgs
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.ApplicationEvents.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Enum ApplicationEvents
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.ApplicationWatcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class ApplicationWatcher
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.ClipboardContentTypes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Enum ClipboardContentTypes
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.ClipboardEventArgs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class ClipboardEventArgs
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.ClipboardWatcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class ClipboardWatcher
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.EventHookFactory.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class EventHookFactory
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.Hooks.MouseMessages.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Enum MouseMessages
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">
@@ -134,6 +134,14 @@ <h3 id="fields">Fields
134134
<td id="EventHook_Hooks_MouseMessages_WM_WHEELBUTTONUP">WM_WHEELBUTTONUP</td>
135135
<td></td>
136136
</tr>
137+
<tr>
138+
<td id="EventHook_Hooks_MouseMessages_WM_XBUTTONDOWN">WM_XBUTTONDOWN</td>
139+
<td></td>
140+
</tr>
141+
<tr>
142+
<td id="EventHook_Hooks_MouseMessages_WM_XBUTTONUP">WM_XBUTTONUP</td>
143+
<td></td>
144+
</tr>
137145
</tbody>
138146
</thead></thead></table>
139147
</article>

docs/api/EventHook.Hooks.POINT.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Struct Point
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">
@@ -134,7 +134,7 @@ <h5 class="fieldValue">Field Value</h5>
134134
</thead>
135135
<tbody>
136136
<tr>
137-
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
137+
<td><span class="xref">System.Int32</span></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><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
161+
<td><span class="xref">System.Int32</span></td>
162162
<td></td>
163163
</tr>
164164
</tbody>

docs/api/EventHook.Hooks.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Namespace EventHook.Hooks
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.KeyData.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class KeyData
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.KeyEvent.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Enum KeyEvent
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.KeyInputEventArgs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class KeyInputEventArgs
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.KeyboardWatcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class KeyboardWatcher
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.MouseEventArgs.html

+26-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class MouseEventArgs
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">
@@ -154,6 +154,31 @@ <h5 class="propertyValue">Property Value</h5>
154154
</table>
155155

156156

157+
<a id="EventHook_MouseEventArgs_MouseData_" data-uid="EventHook.MouseEventArgs.MouseData*"></a>
158+
<h4 id="EventHook_MouseEventArgs_MouseData" data-uid="EventHook.MouseEventArgs.MouseData">MouseData</h4>
159+
<div class="markdown level1 summary"></div>
160+
<div class="markdown level1 conceptual"></div>
161+
<h5 class="decalaration">Declaration</h5>
162+
<div class="codewrapper">
163+
<pre><code class="lang-csharp hljs">public uint MouseData { get; set; }</code></pre>
164+
</div>
165+
<h5 class="propertyValue">Property Value</h5>
166+
<table class="table table-bordered table-striped table-condensed">
167+
<thead>
168+
<tr>
169+
<th>Type</th>
170+
<th>Description</th>
171+
</tr>
172+
</thead>
173+
<tbody>
174+
<tr>
175+
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.uint32">UInt32</a></td>
176+
<td></td>
177+
</tr>
178+
</tbody>
179+
</table>
180+
181+
157182
<a id="EventHook_MouseEventArgs_Point_" data-uid="EventHook.MouseEventArgs.Point*"></a>
158183
<h4 id="EventHook_MouseEventArgs_Point" data-uid="EventHook.MouseEventArgs.Point">Point</h4>
159184
<div class="markdown level1 summary"></div>

docs/api/EventHook.MouseWatcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class MouseWatcher
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.PrintEventArgs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class PrintEventArgs
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

docs/api/EventHook.PrintEventData.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class PrintEventData
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">
@@ -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;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
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>
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;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
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>
222222
<td></td>
223223
</tr>
224224
</tbody>

docs/api/EventHook.PrintWatcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="viewport" content="width=device-width">
1111
<meta name="title" content="Class PrintWatcher
1212
| EventHook ">
13-
<meta name="generator" content="docfx 2.37.2.0">
13+
<meta name="generator" content="docfx 2.40.1.0">
1414

1515
<link rel="shortcut icon" href="../favicon.ico">
1616
<link rel="stylesheet" href="../styles/docfx.vendor.css">

0 commit comments

Comments
 (0)