Congratulations on creating your first WindowSill extension! This template provides you with everything you need to start building powerful extensions for WindowSill.
For comprehensive documentation on WindowSill extension development, visit: https://getwindowsill.app/doc/articles/introduction.html
This template creates a basic WindowSill extension with:
- MySill.cs - A sample Sill that activates when
Notepadgets focus - NotepadProcessActivator.cs - A class that detects when
Notepadhas the focus.
The default extension demonstrates a simple but powerful concept:
-
Process Activation: The
MySillclass implementsISillActivatedByProcess, which means it will automatically activate when a specific process gets focus on Windows. -
Notepad Integration: By default, this extension activates when Notepad.exe gets focus. When Notepad is in the foreground, your Sill will appear in the WindowSill interface.
-
Command Button: The Sill provides a button in a list view. When clicked, it simulates pressing
Ctrl+Nin Notepad to create a new document.
To debug and test your extension:
- Press F5 in Visual Studio to start debugging
- Open Notepad (notepad.exe) on Windows
- Give focus to Notepad by clicking on it
- Your Sill will appear in the WindowSill interface
- Click the command button to trigger the action (sends Ctrl+N to Notepad)
For detailed debugging instructions, see: Debug an Extension
- .NET 9.0 SDK
- Windows 10.0.22621 or later
- Visual Studio 2022 or later (recommended)
- WindowSill application installed
Happy coding! 🚀