One of the easiest ways to get some simple dialogs and some related code running on Windows is AutoHotKey . It's free, like in beer, too.
This is a macro script where you can write small programs in the form of scripts (and bind them to keys so that where they get their name and original purpose).
AHK - , BASIC, . , .
/
Windows; Delphi, Java. : , . / . , .
Delphi, , ... , . 10 , , 5 .
, , , . , , "".
, script, , , , .
:
script, MsgBox. , IfMsgBox - , .
SetTimer, ChangeButtonNames, 50
MsgBox, 4, Add or Delete, Choose a button:
IfMsgBox, YES
MsgBox, You chose Add.
else
MsgBox, You chose Delete.
return
ChangeButtonNames:
IfWinNotExist, Add or Delete
return ; Keep waiting.
SetTimer, ChangeButtonNames, off
WinActivate
ControlSetText, Button1, &Add
ControlSetText, Button2, &Delete
return
, ; . , AHK, , , .
, , AHK :
http://www.autohotkey.com/docs/Tutorial.htm
, , . AHK, ( ) Windows. .
script Notepad, :
RunWait Notepad
MsgBox The user has finished (Notepad has been closed).
:
MsgBox, 4, , Would you like to continue?
IfMsgBox, No
return
; Otherwise, the user picked yes.
MsgBox You pressed YES.