https://github.com/lexz-08/sharphandle
A library for retrieving the handle of either a specific window, or just the currently focused window.
https://github.com/lexz-08/sharphandle
csharp hwnd user32 windows
Last synced: 19 days ago
JSON representation
A library for retrieving the handle of either a specific window, or just the currently focused window.
- Host: GitHub
- URL: https://github.com/lexz-08/sharphandle
- Owner: Lexz-08
- Created: 2021-02-24T21:22:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T00:32:22.000Z (about 5 years ago)
- Last Synced: 2025-01-07T14:25:11.797Z (over 1 year ago)
- Topics: csharp, hwnd, user32, windows
- Language: C#
- Homepage: https://github.com/Lexz-08/SharpHandle/
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SharpHandle
### Description
A library for retrieving the handle of either a specific window, or just the currently focused window.
### How To Use
```csharp
// If you're getting the currently selected window handle.
IntPtr ForegroundWindow_Handle = HandleGetter.GetFocusedWindowHandle();
// If you're getting a specifiic window based on its title.
// Replace '' with the title of the window you're trying to get the handle of/from.
IntPtr SpecificWindow_Handle = HandleGetter.GetWindowHandle("");
```
### Download
[SharpHandle.dll](https://github.com/Lexz-08/SharpHandle/releases/download/sharphandle/SharpHandle.dll)