Add current_window_position usage example#752
Conversation
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
222448082Ashen
left a comment
There was a problem hiding this comment.
Description
This PR introduces new usage examples for KeyTyped, MouseClicked, and CurrentWindowPosition (including CurrentWindowX and CurrentWindowY). These examples provide a comprehensive look at handling user interactions and monitoring window states across C++, C#, and Python.
Type of change
- Documentation (update or new)
- Infrastructure (Deletion of legacy JSON registry in favor of dynamic scanning)
How Has This Been Tested?
- Verified file structure in
public/usage-examples/input/andpublic/usage-examples/windows/. - Manually reviewed code logic for all implementations.
- npm run build (Verified logic against the new dynamic scanning system).
Checklist
If involving code
- My code follows the style guidelines of this project
- I have performed a self-review of my own code
- I have commented my code in hard-to-understand areas
- My changes generate no new warnings
If involving Usage Examples
- Example is registered (Verified dynamic scanner will detect these new files)
- Includes examples for C++, C# (Top-level & OOP), and Python
- Image (.png) or GIF (.gif) output is included
- Files are organized correctly according to category
If involving structural / repo-wide changes
- Infrastructure: This PR correctly removes
usage-example-references.json, aligning with the project's transition to a dynamic folder scanner.
himanshigaba22
left a comment
There was a problem hiding this comment.
Good examples overall! Just a few things to sort out before this can merge:
The .txt files should be title only - no description line
This PR has 3 examples bundled together, ideally keep one per PR going forward
Can you confirm if usage-example-references.json still needs updating or if the dynamic scanner has fully replaced it?
The current_window_position GIF is 25MB which is pretty large - worth compressing before merging
Once these are sorted, should be good to go!
Summary
This pull request adds an initial usage example for
current_window_positionin the windows category.Files added
What the example does
This example opens a window and displays the current window position, current window X, and current window Y values in real time.
Testing
Tested by running:
Verified that:
Notes
This is an interactive usage example for the

current_window_position,current_window_x, andcurrent_window_yfunctions in the windows category.