turtlepopupmaster
v1.0.3
Published
eaisily create popups!
Readme
TurtlePopupMaster
Easily Create Popups with TurtlePopupMaster!
TurtlePopupMaster is a simple npm package that allows you to create and execute VBScript message boxes directly from Node.js. This is useful for creating interactive scripts or tools on Windows systems. Installation
To use TurtlePopupMaster, install it via npm:
npm install turtlepopupmaster
Usage
Here's how you can create a message box using TurtlePopupMaster:
const { createAndRunVBS } = require('turtlepopupmaster');
// Create and execute a message box with custom input createAndRunVBS("Hello World!", "Greeting", 64); // Information Message icon
Parameters
message: The text to display in the message box.
title: The title of the message box.
type: The type of message box (e.g., button styles and icons). Common types include:
0: OK button only.
16: Critical icon.
32: Question icon.
48: Warning icon.
64: Information icon.
256: Yes/No buttons.
512: Yes/No/Cancel buttons.
768: Abort/Retry/Ignore buttons.Example Usage
Here are a few examples of different message box types:
// Critical Message createAndRunVBS("Something went wrong!", "Error", 16);
// Question Message createAndRunVBS("Are you sure?", "Confirmation", 32);
// Warning Message createAndRunVBS("Be careful!", "Warning", 48);
(this description was written by ai)
