⚡ WinScript is a lightweight scripting language for Windows automation.
Inspired by AppleScript, written in Go, and designed to be simple, readable, and powerful.
- 🖥 Launch and control Windows applications
- 🎯 Simulate mouse movement and clicks
- ⌨️ Simulate keystrokes and text input
- ⏱ Simple
wait
and delay functionality - 📜 Human-readable
.ws
syntax - 🔧 Cross-compatible CLI with Cobra
- 🧩 Easy to extend with Go
open "notepad.exe"
wait 2s
type "Hello from WinScript!"
move_mouse 400 300
click "left"
📁 Save your scripts as
.ws
files.
git clone https://github.com/1strewave/winscript.git
cd winscript
go build -o winscript
✅ Optionally, add the built binary folder to your system
PATH
for global access.
To install the path permanently via script, you can use install.bat
.
WinScript provides a command-line interface using Cobra.
winscript [file] # Run a script file directly
winscript run script.ws # Explicit 'run' command
winscript help # Show available commands
winscript docs # Show documentation keywords
winscript version # Print current version
winscript hello.ws
winscript run scripts/boot.ws
winscript docs
Keyword | Description | Example |
---|---|---|
open |
Launch an application | open "notepad.exe" |
type |
Type a string | type "Hello, world!" |
press |
Press a single key | press "enter" |
hotkey |
Key combination | hotkey "ctrl+s" |
move_mouse |
Move mouse cursor | move_mouse 500 300 |
click |
Mouse click | click "left" |
wait |
Wait for time | wait 2s |
log |
Output text to console | log "Starting script..." |
📘 More details coming soon in docs/commands.md
- CLI interface with Cobra
- Script parser and interpreter
- Core automation commands
- Variables (
set name = "Alice"
) - Conditional logic (
if
,else
) - Loops (
repeat
,while
) - User-defined functions
- REPL / interactive mode
- RayLib dependency
- GUI interface
- Windows Installer (
.msi
) - WS IDE (for winscript)
Pull requests, issues, ideas, and feedback are welcome.
If you’d like to help shape the future of WinScript — let’s build it together!
WinScript is a hobby project created by @1strewave to explore language design and automation on Windows using Go.
Made with ❤️ for code, simplicity, and creativity.