Skip to content

Simply calls MessageBox on Windows and returns the result.

License

Notifications You must be signed in to change notification settings

ChrisBlueStone/messagebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

messagebox

Simply calls MessageBox using the Windows API and returns the result.

This is very useful if you want to set reminders through Task Scheduler, so much so that I don't understand why this isn't a standard app.

Example usage

The syntax is "messagebox content title type" where type is an integer representing various properties of the message box. The full list of message box types and return codes are available in the Microsoft documentation for MessageBox here.

messagebox "This is the content of the message" "Title" 0

Since the result of the messagebox is returned, its value is stored in the errorlevel variable.

start /wait messagebox Continue? Confirm 4
echo %errorlevel%

About

Simply calls MessageBox on Windows and returns the result.

Resources

License

Stars

Watchers

Forks

Packages

No packages published