quote:
Originally posted by billboy1001
is there any way to display an alert\message box in a script?
Forum search "msgbox" or "message box" or "alert":
Alert(MsgBox in VB) Help?
MessageBox parameters/flags
etc.
(aka: always try to search the forums first
)
quote:
Originally posted by billboy1001
i was trying to use MessageBox instead of MessageBoxW what is the difference?
Windows APIs come often in two versions: an ANSI version and a UNICODE version.
The ANSI versions are suffixed with the letter A.
The UNICODE versions are suffixed with the letter W.
eg: MessageBoxA, MessageBoxW
In case there are two different APIs, you must explicitly use one of the two. Just using "MessageBox" for example will not work as that API with that name doesn't exist.
Ansi is the character set with normal characters (from ascii code 0 to 255). But some languages use other characters or have far more characters than the 26 you're used to. eg: Japanese, Hebrew, etc. For these there is the Unicode set.
So functions which exist as a Unicode version can handle all possible characters. It is preffered that you use the Unicode version of APIs when scripting (unless you have a specific reason not to).