{"id":26932434,"url":"https://github.com/foundata/chocolatey-sendkeys.extension","last_synced_at":"2025-08-24T16:46:42.151Z","repository":{"id":172038505,"uuid":"648762675","full_name":"foundata/chocolatey-sendkeys.extension","owner":"foundata","description":"A Chocolatey extension providing helper functions to send keystrokes to the active application window. These functions may be used in Chocolatey install and uninstall scripts.","archived":false,"fork":false,"pushed_at":"2025-02-17T15:15:28.000Z","size":32,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T17:55:29.730Z","etag":null,"topics":["automation","chocolatey","chocolatey-community-repository","keystrokes","powershell","send-keys","user32dll"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foundata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSES/Apache-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-02T18:46:10.000Z","updated_at":"2025-07-09T06:17:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fde23be-b80d-419f-8fda-7d8b45cf1e94","html_url":"https://github.com/foundata/chocolatey-sendkeys.extension","commit_stats":null,"previous_names":["foundata/chocolatey-sendkeys.extension"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/foundata/chocolatey-sendkeys.extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundata%2Fchocolatey-sendkeys.extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundata%2Fchocolatey-sendkeys.extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundata%2Fchocolatey-sendkeys.extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundata%2Fchocolatey-sendkeys.extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foundata","download_url":"https://codeload.github.com/foundata/chocolatey-sendkeys.extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundata%2Fchocolatey-sendkeys.extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271907393,"owners_count":24842068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","chocolatey","chocolatey-community-repository","keystrokes","powershell","send-keys","user32dll"],"created_at":"2025-04-02T08:19:51.501Z","updated_at":"2025-08-24T16:46:42.079Z","avatar_url":"https://github.com/foundata.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Send-Keys extension for Chocolatey (helper to send keystrokes to a window) (`sendkeys.extension`)\n\n**This project is *not* associated with the official [Chocolatey](https://chocolatey.org/) product or team, nor with [Chocolatey Software, Inc.](https://chocolatey.org/contact/).**\n\nA [Chocolatey extension](https://docs.chocolatey.org/en-us/features/extensions) providing helper functions to send keystrokes to the active application window. These functions may be used in Chocolatey install and uninstall scripts by declaring this package a dependency in your package's `.nuspec`.\n\n\n## Installation\n\nAs the package is an extension, it gets usually installed automatically as a dependency. However, you can still install it manually:\n\n```console\nchoco install sendkeys.extension\n```\n\n\n## Usage\n\nTo create a package with the ability to use a function from this extension, add the following to your `.nuspec` specification:\n\n```xml\n\u003cdependencies\u003e\n  \u003cdependency id=\"sendkeys.extension\" version=\"REPLACE_WITH_MINIMUM_VERSION_USUALLY_CURRENT_LATEST\" /\u003e\n\u003c/dependencies\u003e\n```\n\nIt is possible to import the module directly in your `PS \u003e`, so you can try out the main functionality directly:\n\n```powershell\n# import the modules\nImport-Module \"${env:ChocolateyInstall}\\helpers\\chocolateyInstaller.psm1\"\nImport-Module \"${env:ChocolateyInstall}\\extensions\\sendkeys\\*.psm1\"\n\n# get a list of all functions\nGet-Command -Module 'sendkeys.extension'\n\n# get help and examples for a specific function\nGet-Help Send-Keys -Detailed\n\n# See https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send\n# for a list of codes to specify characters that aren't displayed or represent\n# actions rather than characters (like ENTER, DOWN or TAB).\n\n# Send the keystrokes \"ABC\" to the currently active window; wait 2 seconds\n# afterwards\nSend-Keys -Keys 'ABC'\n\n# Bring the first window that contains the name 'foo' to the front, focus it\n# and send different keystrokes to it. By default, the functions waits two\n# seconds after each keystroke.\nSend-Keys -Keys 'a' -Query 'foo' # send a; wait 2 seconds\nSend-Keys -Keys '{TAB}' -Query 'foo' # send tab; wait 2 seconds\nSend-Keys -Keys ' ' -Query 'foo' # sends space bar; wait 2 seconds\nSend-Keys -Keys '{ENTER}' -Query 'foo' -Delay @(0, 5) # send enter; wait 5 seconds\nSend-Keys -Keys '%A' -Query 'foo' # send ALT + A; wait 2 seconds\nSend-Keys -Keys '%w' -Query 'foo' # send ALT + w; wait 2 seconds\nSend-Keys -Keys 'abC{TAB}D' -Query 'foo' # send a, b, C, tab, D; wait 2 seconds\n\n\n# Bring the first window that starts with the name 'bar' to the front, focus it\n# and send different keystrokes to it. By default, the functions waits two\n# seconds after each keystroke.\nSend-Keys -Keys 'a' -Query '^bar.+$' # send a; wait 2 seconds\nSend-Keys -Keys '{DOWN}' -Query '^bar.+$' # send down; wait 2 seconds\n```\n\nBut keep in mind that functions of Chocolatey extension may only work correctly in the context of Chocolatey install and uninstall scripts.\n\n\n## Licensing, copyright\n\n\u003c!--REUSE-IgnoreStart--\u003e\nCopyright (c) 2023, 2024 foundata GmbH (https://foundata.com)\n\nThis project is licensed under the Apache License 2.0 (SPDX-License-Identifier: `Apache-2.0`), see [`LICENSES/Apache-2.0.txt`](LICENSES/Apache-2.0.txt) for the full text.\n\nThe [`REUSE.toml`](REUSE.toml) file provides detailed licensing and copyright information in a human- and machine-readable format. This includes parts that may be subject to different licensing or usage terms, such as third-party components. The repository conforms to the [REUSE specification](https://reuse.software/spec/). You can use [`reuse spdx`](https://reuse.readthedocs.io/en/latest/readme.html#cli) to create a [SPDX software bill of materials (SBOM)](https://en.wikipedia.org/wiki/Software_Package_Data_Exchange).\n\u003c!--REUSE-IgnoreEnd--\u003e\n\n[![REUSE status](https://api.reuse.software/badge/github.com/foundata/chocolatey-sendkeys.extension)](https://api.reuse.software/info/github.com/foundata/chocolatey-sendkeys.extension)\n\n\n## Author information\n\nThis Chocolatey extension was created and is maintained by [foundata](https://foundata.com/). If you like it, you might [buy them a coffee](https://buy-me-a.coffee/chocolatey-sendkeys.extension/). This is a community project and *not* associated with the official [Chocolatey](https://chocolatey.org/) product or team, nor with [Chocolatey Software, Inc.](https://chocolatey.org/contact/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundata%2Fchocolatey-sendkeys.extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoundata%2Fchocolatey-sendkeys.extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundata%2Fchocolatey-sendkeys.extension/lists"}