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

Commit

Permalink
Merge pull request #21 from justcoding121/master
Browse files Browse the repository at this point in the history
Extended mouse event data & AsyncQueue fix
  • Loading branch information
justcoding121 authored Nov 21, 2018
2 parents 73f2416 + 768621b commit 260c058
Show file tree
Hide file tree
Showing 87 changed files with 235 additions and 156 deletions.
15 changes: 9 additions & 6 deletions .build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ $PSake.use_exit_on_error = $true

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

$SolutionRoot = (Split-Path -parent $Here)
$RepoRoot = $(Split-Path -parent $Here)
$SolutionRoot = "$RepoRoot\src"

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

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

$NuGet = Join-Path $SolutionRoot ".nuget\nuget.exe"
$NuGet = Join-Path $RepoRoot ".nuget\nuget.exe"

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

if($Branch -eq "master")
{

#use docfx to generate API documentation from source metadata
docfx docfx.json

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

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

If(test-path $TEMP_REPO_DIR)
{
Expand All @@ -101,7 +103,7 @@ Task Document -depends Build {
cd "$TEMP_REPO_DIR\docs"

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

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

#package nuget files
Task Package -depends Document {
exec { . $NuGet pack "$SolutionRoot\$ProjectName\$ProjectName.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot" -Version "$Version" }
exec { . $NuGet pack "$SolutionRoot\$ProjectName\$ProjectName.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$RepoRoot" -Version "$Version" }
}

2 changes: 1 addition & 1 deletion .build/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"src": [
{
"files": [ "EventHook.Docs.sln"],
"src": "../"
"src": "../src/"
}
],
"dest": "obj/api"
Expand Down
4 changes: 2 additions & 2 deletions .build/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ param (

function Install-Chocolatey()
{
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall"))
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall\*"))
{
Write-Output "Chocolatey Not Found, Installing..."
iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))
Expand Down Expand Up @@ -36,7 +36,7 @@ function Install-DocFx()
{
if(!(Test-Path $env:ChocolateyInstall\lib\docfx\tools*))
{
choco install docfx
choco install docfx --version 2.40.1
}
$env:Path += ";$env:ChocolateyInstall\lib\docfx\tools"
}
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@ Kindly report only issues/bugs here . For programming help or questions use [Sta

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

## Supported Events
### Supported Events

* Keyboard events
* Mouse events
* clipboard events
* application events
* print events

## Usage
### Development enviroment

* Visual Studio 2017

### Usage

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

Install-Package EventHook

## Sample Code:
### Sample Code:

```csharp
using (var eventHookFactory = new EventHookFactory())
Expand Down Expand Up @@ -75,4 +79,4 @@ using (var eventHookFactory = new EventHookFactory())
}
```

![alt tag](https://raw.githubusercontent.com/justcoding121/Windows-User-Action-Hook/stable/EventHook.Examples/EventHook.ConsoleApp.Example/Capture.PNG)
![alt tag](https://raw.githubusercontent.com/justcoding121/Windows-User-Action-Hook/master/examples/EventHook.ConsoleApp.Example/Capture.PNG)
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ skip_tags: true

skip_commits:
author: buildbot121

files:
- docs/*
- README.md
- LICENSE
#---------------------------------#
# artifacts configuration #
#---------------------------------#
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.ApplicationEventArgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ApplicationEventArgs
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.ApplicationEvents.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum ApplicationEvents
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.ApplicationWatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ApplicationWatcher
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.ClipboardContentTypes.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum ClipboardContentTypes
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.ClipboardEventArgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ClipboardEventArgs
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.ClipboardWatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ClipboardWatcher
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.EventHookFactory.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class EventHookFactory
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
10 changes: 9 additions & 1 deletion docs/api/EventHook.Hooks.MouseMessages.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum MouseMessages
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down Expand Up @@ -134,6 +134,14 @@ <h3 id="fields">Fields
<td id="EventHook_Hooks_MouseMessages_WM_WHEELBUTTONUP">WM_WHEELBUTTONUP</td>
<td></td>
</tr>
<tr>
<td id="EventHook_Hooks_MouseMessages_WM_XBUTTONDOWN">WM_XBUTTONDOWN</td>
<td></td>
</tr>
<tr>
<td id="EventHook_Hooks_MouseMessages_WM_XBUTTONUP">WM_XBUTTONUP</td>
<td></td>
</tr>
</tbody>
</thead></thead></table>
</article>
Expand Down
6 changes: 3 additions & 3 deletions docs/api/EventHook.Hooks.POINT.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Struct Point
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down Expand Up @@ -134,7 +134,7 @@ <h5 class="fieldValue">Field Value</h5>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
Expand All @@ -158,7 +158,7 @@ <h5 class="fieldValue">Field Value</h5>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.int32">Int32</a></td>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.Hooks.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace EventHook.Hooks
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.KeyData.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class KeyData
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.KeyEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum KeyEvent
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.KeyInputEventArgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class KeyInputEventArgs
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.KeyboardWatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class KeyboardWatcher
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
27 changes: 26 additions & 1 deletion docs/api/EventHook.MouseEventArgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class MouseEventArgs
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

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


<a id="EventHook_MouseEventArgs_MouseData_" data-uid="EventHook.MouseEventArgs.MouseData*"></a>
<h4 id="EventHook_MouseEventArgs_MouseData" data-uid="EventHook.MouseEventArgs.MouseData">MouseData</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public uint MouseData { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.uint32">UInt32</a></td>
<td></td>
</tr>
</tbody>
</table>


<a id="EventHook_MouseEventArgs_Point_" data-uid="EventHook.MouseEventArgs.Point*"></a>
<h4 id="EventHook_MouseEventArgs_Point" data-uid="EventHook.MouseEventArgs.Point">Point</h4>
<div class="markdown level1 summary"></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.MouseWatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class MouseWatcher
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.PrintEventArgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class PrintEventArgs
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
6 changes: 3 additions & 3 deletions docs/api/EventHook.PrintEventData.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class PrintEventData
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down Expand Up @@ -193,7 +193,7 @@ <h5 class="propertyValue">Property Value</h5>
</thead>
<tbody>
<tr>
<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>
<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>
<td></td>
</tr>
</tbody>
Expand All @@ -218,7 +218,7 @@ <h5 class="propertyValue">Property Value</h5>
</thead>
<tbody>
<tr>
<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>
<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>
<td></td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/EventHook.PrintWatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class PrintWatcher
| EventHook ">
<meta name="generator" content="docfx 2.37.2.0">
<meta name="generator" content="docfx 2.40.1.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
Expand Down
Loading

0 comments on commit 260c058

Please sign in to comment.