425 Commits

Author SHA1 Message Date
Simon Hofmann 5e3022d1b4 Bugfix/377/window title segfault (#134)
* (#377) Moved inline functions from header to source file

* (#377) Avoid segfaulting on nil values when fetching window title

* (#377) Add checks and requests for both accessibility and screen sharing (for window titles)

* (#377) Enable arm64 debug builds

* (377) Release references after usage

* (#377) Removed unguarded, macOS specific include since it is not required
2022-09-20 21:29:54 +02:00
Simon Hofmann db126b9426 Version bump to 2.2.0 2022-08-22 21:08:35 +02:00
Simon Hofmann 6593bfa66d Updated changelog for 2.2.0 2022-08-22 21:07:01 +02:00
Simon Hofmann e5a4f09d13 (nut-tree/nut.js#405) Fix wrong keycode for CapsLock (#132) 2022-08-19 14:01:12 +02:00
David Martos d7238a6cd1 Fix capture region x,y offset when DPI scaling on Windows (#131) 2022-08-17 06:56:32 +02:00
Simon Hofmann dcb1871261 Windows runtime files (#130)
* Added Windows runtime redistributable files

* Added post build step to copy redistributable libs

* Refined npmignore regarding Windows build output

* Excluded dependencies and config folders from npm package

* Explicitly list 3rd party files for Windows build since it fails on wildcard
2022-08-15 23:23:59 +00:00
Simon Hofmann 9f366a9f55 Release v2.1.8 2022-05-25 21:03:41 +02:00
Simon Hofmann ce6bc8feb3 Bugfix/nut.js#273/modifier clicks (#125)
* (nut-tree/nut.js#273) Introduce modifier buffer to store key states and avoid input latency

* (nut-tree/nut.js#273) Properly detect modifier keys and update keystate accordingly so the correct modifiers are set on the event
2022-05-20 23:06:33 +00:00
Simon Hofmann b0335472f6 Release v2.1.7 2022-05-17 10:24:03 +02:00
Simon Hofmann b864bc5802 Bugfix/120/macos doubleclick fix (#122)
* (#120) Only set kCGMouseEventClickState = 2 on second click to fire a single doubleclick event after two clicks

* (#120) Extend toggleMouse such that it manually handles double clicks by tracking intervals between different click events

* (#120) Added explanatory comment on custom doubleclick implementation
2022-05-13 21:29:13 +00:00
Simon Hofmann b21b07cb49 (#120) Only set kCGMouseEventClickState = 2 on second click to fire a single doubleclick event after two clicks (#121) 2022-05-10 19:31:52 +00:00
Simon Hofmann 5376573e9c (#71) Cast to int64_t as used by MMPoint internally instead of size_t (#119) 2022-04-28 20:43:54 +02:00
Simon Hofmann b11c608839 (#116) Respect configured double click time on Windows (#117) 2022-04-25 08:20:48 +00:00
Simon Hofmann 6fca0a1f9f (nut-tree/nut-js#373) Updated doubleClick implementation to fire two up/down cycles (#115) 2022-04-17 17:55:30 +00:00
dependabot[bot] 0f55b08a3f Bump ansi-regex from 5.0.0 to 5.0.1 in /test/window-integration-tests (#85)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 20:10:02 +01:00
dependabot[bot] 9de5339b52 Bump tmpl from 1.0.4 to 1.0.5 in /test/window-integration-tests (#81)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 20:09:54 +01:00
dependabot[bot] 700191203c Bump path-parse from 1.0.6 to 1.0.7 in /test/window-integration-tests (#79)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 20:09:46 +01:00
dependabot[bot] a5808261fa Bump path-parse from 1.0.6 to 1.0.7 in /test (#78)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 20:09:35 +01:00
dependabot[bot] 02296c6222 Bump minimist from 1.2.5 to 1.2.6 (#110)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 20:07:31 +01:00
dependabot[bot] 0b41539c0e Bump ajv from 6.12.2 to 6.12.6 in /test (#106)
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.12.2...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 20:07:23 +01:00
dependabot[bot] 93cf5a234b Bump ajv from 6.10.0 to 6.12.6 (#105)
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.0 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.0...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 20:07:13 +01:00
Simon Hofmann a497e0d91e (#101) Disable microsleep between keypresses (#108) 2022-03-13 13:17:15 +01:00
Simon Hofmann 39471f8af8 Reverted keyboardInput to use scancodes again, but not toggle betweek make and brake codes (#107) 2022-03-13 13:17:05 +01:00
Simon Hofmann 2eda180396 Feature/102/missing numpad keys (#104)
* Added missing mappings

* (#102) Added missing K_NUMPAD_DECIMAL mapping
2022-02-01 21:34:31 +01:00
Simon Hofmann dfab15bb1d Added missing mappings (#103) 2022-02-01 21:07:24 +01:00
Simon Hofmann f8dd1b75ce Release v2.1.6 (#100)
* Release v2.1.6
2022-01-21 20:59:16 +01:00
Simon Hofmann 5cbaedee08 (nut-tree/nut.js#152) Switched to using a private event source and kCGHIDEventTap consistently to not lose input (#99) 2022-01-21 16:18:58 +01:00
Simon Hofmann 0486048c44 (nut-tree/nut.js#360) Added keypad keys to Linux keymap (#97)
* (nut-tree/nut.js#360) Added keypad keys to Linux keymap

* (nut-tree/nut.js#360) Reverted accidental changes to Windows keymap
2022-01-17 23:40:30 +01:00
Simon Hofmann e0f0f94299 Release v2.1.5 2022-01-01 13:49:39 +01:00
Simon Hofmann 0e3aff095a (#91) Revert Linux startup check 2021-12-31 13:09:06 +01:00
Simon Hofmann 36298808be Feature/91/check requirements (#96)
* (#91) Added start checks for requirements on macOS and Linux

* (#91) Forgot to wrap the Linux startup code in a proper function

* (#91) Fixed unused variable

* (#91) Fixed include

* (#91) Use XOpenDisplay directly for startup checks

* (#91) Added missing parameter to XOpenDisplay

* (#91) Adjusted test constant to new execution environment on macOS where the default menu bar height increased to 25
2021-12-31 12:56:21 +01:00
Simon Hofmann 8bd093e548 Bugfix/94/lost keypresses (#95)
* Switch to using virtual keycodes instead of scancodes, rework ordering of key presses / releases

* Use similar scheme as for Windows key presses / releases
2021-12-29 22:46:40 +01:00
Simon Hofmann bc61583040 Release v2.1.4 2021-12-28 03:22:38 +01:00
Simon Hofmann 9aaaa1cfb7 (#92) Fix application of scale factor when calculating actual image s… (#93)
* (#92) Fix application of scale factor when calculating actual image sizes for screen grabs

* (#92) Adjusted test to new macOS env by increasing default menu bar height to 25 px
2021-12-28 02:32:27 +01:00
Simon Hofmann 4452a8d8a8 Release/v2.1.3 (#88)
* Update changelog for v2.1.3

* Release v2.1.3
2021-12-11 14:55:15 +01:00
Simon Hofmann 2855678fb6 Merge pull request #87 from Reiss-Cashmore/develop
Remove scan code KEYUP block
2021-12-08 23:36:59 +01:00
Reiss Cashmore fa2bef0dae Remove scan code block 2021-11-23 08:39:13 +00:00
Simon Hofmann 5e4dc1f05a (nut-tree/nut.js#306) Specify supported os and cpu in package.json to enable Apple Silicon 2021-11-17 00:07:30 +01:00
Simon Hofmann 45376b1aab Merge pull request #86 from nut-tree/bugfix/249/scaling_issues
(nut-tree/nut.js#249) Enable DPI awareness when fetching screen conte…
2021-11-09 22:24:46 +01:00
Simon Hofmann e93d1f0688 (nut-tree/nut.js#249) Refactor scale calculation to work correctly with custom regions 2021-11-09 22:13:14 +01:00
Simon Hofmann fce19db563 (nut-tree/nut.js#249) Enable DPI awareness when fetching screen content to always capture the full screen content even with scaling applied 2021-11-09 21:56:23 +01:00
Simon Hofmann b166997d1c Merge pull request #84 from Reiss-Cashmore/develop
Bugfix for lost co-ordinate precision
2021-10-21 14:26:18 +02:00
Reiss Cashmore 470a765cd4 Bugfix for lost co-ordinate precision 2021-10-20 04:39:09 +01:00
Simon Hofmann 9298b83331 Merge pull request #60 from nut-tree/feature/47/remove_bufferfinalizer
Feature/47/remove bufferfinalizer
2021-10-11 20:19:37 +02:00
Simon Hofmann dd463e7f6b Merge pull request #82 from Reiss-Cashmore/develop
moveMouse refactor to use sendInput on Windows (#26)
2021-10-11 00:02:39 +02:00
Reiss Cashmore ea13e1195f Import for getMainDisplaySize 2021-10-10 22:52:09 +01:00
Reiss Cashmore 4ebf808b2a Correct Types and Return values 2021-10-10 22:46:06 +01:00
Reiss Cashmore 097c254918 Call coord calculator with MMPoint 2021-10-10 22:32:41 +01:00
Reiss Cashmore e4a8b4fd6d Squash x and y coord methods
Make Absolute coord calculation return MMPoint
2021-10-10 22:32:18 +01:00
Reiss Cashmore b3e18e4fbf Add Coord constant 2021-10-10 22:31:41 +01:00