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

Lines changed: 9 additions & 6 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 8 additions & 4 deletions
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

Lines changed: 4 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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">

0 commit comments

Comments
 (0)