425 Commits

Author SHA1 Message Date
Timothy Carambat acbd6ceef4 Arm64 support build 2025-01-03 20:06:05 -08:00
Simon Hofmann 6bbe5825f1 (NT-77) If window to focus is already the foreground window, return true 2024-03-19 20:42:55 +01:00
Simon Hofmann e2d7a16918 (NT-77) Increase timeout 2024-03-18 21:55:06 +01:00
Simon Hofmann 19b46655ef (NT-77) Improve focus window implementation on Windows to deal with f… (#178)
* (NT-77) Improve focus window implementation on Windows to deal with focus stealing countermeasures on Windows

* (NT-77) Adjust focus test
2024-03-18 21:48:49 +01:00
Simon Hofmann d376d4f634 Added test for focusWindow (#177)
* Added test for focusWindow

* Added test for focusWindow

* Refined focus test

* Refined test for focusWindow
2024-03-11 22:58:11 +01:00
Simon Hofmann 3a02763bbd Update release pipelines 2024-02-19 23:18:14 +01:00
Simon Hofmann 339df4e1bd Version bump to v2.7.1 2024-02-19 23:08:06 +01:00
Simon Hofmann 0cc2e171ec Release/v2.7.0 (#175)
* Updated changelog

* Version bump to v2.7.0
2024-02-19 00:34:43 +01:00
Simon Hofmann 4e49a1eedd Updated workflow versions 2024-02-19 00:07:26 +01:00
Simon Hofmann 8783270437 Update workflow dispatch trigger to monorepo 2024-02-18 23:59:25 +01:00
Simon Hofmann 3c2439bdd5 Fix setting of fn modifier flag 2024-01-29 23:34:41 +01:00
Simon Hofmann 2d98dddf87 Refine key definitions 2024-01-29 23:29:40 +01:00
Simon Hofmann 363d35dd32 Refine key definitions 2024-01-29 23:26:58 +01:00
Kyle Smith 61e748da24 adds support for fn as a modifier key (#169) 2024-01-29 22:31:19 +01:00
Kyle Smith ebf8343bbd adds support for numpad Enter key on macos, differentiates between return/enter keys, and removes duplicate lines closes #167 (#168) 2024-01-29 22:30:55 +01:00
Simon Hofmann fe7b5841b6 Release v2.6.0 (#174)
* Cleanup

* Fix keyboard test since Linux now also implements numpad keys

* Improve flaky test by waiting for dom content

* Updated changelog
2023-10-09 22:55:44 +02:00
Simon Hofmann 94fe5712eb Version pinning, cleanup 2023-10-09 21:42:00 +02:00
Simon Hofmann b4ef2bc67c Feature/18/focus window (#173)
* (#18) Refactored moving/resizing of windows into two dedicated functions

* Fixed Windows implementation

* (#18) Updated Linux implementation

* (#18) Code cleanup on Linux

* (#18) Updated tests to use new functions for resizing and moving of windows

* (#18) Adapt tests which require accessibility permissions to not execute on macOS. Verified locally during development

* (#18) Migrating window tests to playwright, WIP

* (#18) Fixed error in moveWindow on macOS caused by not passing a CGPoint, updated window tests
2023-10-09 13:54:13 +02:00
Ean Krenzin 901f5aa065 add focus & resize window functions (#164)
* add focus & resize window functions

* fix windows rect

* rect object param

* fix focus window implementation on macos

* update focus window method

* "working" implementation of resize on mac

* individual window focusing

* fix windows build

* focus app on macos first for consistency

* add documentation and clean code

* throw errors and return resize result properly

* update resizeWindow rect documentation
2023-07-14 15:34:59 +02:00
Kyle Smith fa2b880a77 adding support for numpad 'clear' key (#166)
* adding support for numpad 'clear' key

* adding CLEAR keycode for x11 per https://github.com/nut-tree/libnut-core/pull/166/files/85993173f6034226603ca1ae0b77d26c439426e0\#r1243154171
2023-06-28 22:18:38 +02:00
Simon Hofmann 124d71e900 Release/v2.5.2 (#163)
* Updated changelog

* Version bump to v2.5.2
2023-06-06 13:26:40 +02:00
Simon Hofmann 20ae39430e (nut-tree/nut.js#490) Enable new modifier keys (#162) 2023-06-05 19:44:45 +00:00
Simon Hofmann c1a124c6a8 (nut-tree/nut.js#505) Adapt changes from bolt to libnut screengrab implementation (#161) 2023-06-05 18:46:22 +00:00
Simon Hofmann 907f028a7b (nut-tree/nut.js#469) Adapt changes from bolt to libnut screengrab implementation (#160) 2023-06-05 18:19:42 +00:00
Simon Hofmann 23493fb0f4 Version bump to v2.5.1 (#158) 2023-03-06 01:00:17 +01:00
Simon Hofmann fdac738991 (#126) Floating point cast to fix mouse drift 2023-03-06 00:27:25 +01:00
Simon Hofmann 5031a36849 Merge branch 'release/v2.5.0' into develop 2023-03-05 23:11:01 +01:00
Simon Hofmann 7622f16f7e Version bump to v2.5.0 2023-03-05 23:09:23 +01:00
Simon Hofmann 2d0a527bb6 Release/v2.5.0 (#157)
* Updated changelog

* Version bump to v2.5.0
2023-03-05 22:54:34 +01:00
Simon Hofmann cf9ef4451c Version bump to v2.5.0 2023-03-05 22:43:44 +01:00
Simon Hofmann 85c4ad0d7f Updated changelog 2023-03-05 22:43:03 +01:00
Simon Hofmann 747e257514 (#126) Add rounding to fix mouse drift (#156) 2023-03-05 21:53:33 +01:00
Simon Hofmann b7dc37b915 Disable window tests on all platforms except Windows 2023-03-05 16:39:55 +01:00
Simon Hofmann 4a0ed50caf Additional keys (#155)
* (nut-tree/nut.js#457) Add and expose additional keys

cmd, right_cmd
win, right_win
alt, right_alt
control, right_control
menu
fn

* (nut-tree/nut.js#457) Missing comma
2023-03-02 21:15:44 +00:00
Simon Hofmann 71be53f8ae Disabled window tests on macOS due to unstable runners 2023-02-17 20:29:41 +01:00
Simon Hofmann c395c622e9 Added workflow_dispatch trigger to snapshot release workflow 2023-02-17 20:14:43 +01:00
Simon Hofmann 4b371573fd Bugfix/(nut tree/nut.js#477)/remove permission check for delay setters (#153)
* (nut-tree/nut.js#477) Removed both setMouseDelay and setKeyboardDelay from permissionCheck.js since these setters do not required any permissions

* (nut-tree/nut.js#477) Update permissionCheck.js to cache permission check results and only ask for permissions on actual function call by wrapping it in a HOF

* (nut-tree/nut.js#477) Re-require native bindings on error
2023-02-16 22:19:59 +00:00
Simon Hofmann 5858fc995b Create FUNDING.yml 2023-01-23 22:47:54 +01:00
Simon Hofmann 84dfdc5138 Release/v2.4.1 (#152)
* Updated changelog

* Version bump to 2.4.1
2023-01-23 11:52:34 +01:00
Simon Hofmann 9763807c38 (nut-tree/nut.js#469) Added captureScreen to methods requiring screencapture permissions (#151) 2023-01-23 01:38:46 +00:00
Simon Hofmann 2903c414aa Release/v2.4.0 (#150)
* Updated gitignore

* Updated changelog for v2.4.0

* Version bump to 2.4.0

* Version bump to 2.4.0
2023-01-14 02:52:01 +01:00
Simon Hofmann fa87d3930a Adjusted conditionals to pinned runner versions 2023-01-12 23:13:06 +01:00
Simon Hofmann 47a0c29e25 Pinned CI runner versions 2023-01-12 23:11:53 +01:00
Dimava cfa9a1c315 Fix ReferenceError: b is not defined (#148) 2023-01-12 23:11:50 +01:00
Simon Hofmann f1cc3855d5 Feature/141/permission handling (#145)
* (#141) Switch to using @nut-tree/node-mac-permissions for universal binaries to support both x64 and Apple Silicon

* (#141) Change package import for @nut-tree/node-mac-permissions, adjust message for screen capture
2023-01-12 23:11:47 +01:00
Simon Hofmann 8c9ef36282 Feature/141/permission handling (#143)
* (#141) Switch to more fine-grained permission checks on macOS via node-mac-permissions

* (#141) Refined output in failed permission check setup

* (#141) Moved node-mac-permissions back to dependencies array

* (#141) Revert last commit
2023-01-12 23:11:44 +01:00
Snyk bot 1c610e4916 fix: upgrade node-addon-api from 3.0.0 to 3.2.1 (#138)
Snyk has created this PR to upgrade node-addon-api from 3.0.0 to 3.2.1.

See this package in npm:
https://www.npmjs.com/package/node-addon-api

See this project in Snyk:
https://app.snyk.io/org/s1hofmann/project/98eb4978-62bc-46c1-afaf-4383d0239aff?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-01-12 23:11:40 +01:00
Simon Hofmann 198382317d (#136) Limit calls to SetThreadDpiAwarenessContext to Windows 10 clients (#137) 2023-01-12 23:11:35 +01:00
Simon Hofmann 52d9097b5d Version bump to v2.3.0 2022-09-22 10:55:21 +02:00
Simon Hofmann 20268ea4e4 Updated changelog for release v2.3.0 2022-09-22 10:54:26 +02:00