4-5 Macros
4-24
STRUPR(W) Converts a string to upper case
Applicable versions System Version 6.6 or higher
Format
STRUPR(D, S) --- ASCII code
STRUPRW(D, S) --- Unicode
Function Converts a string S from lower case to upper case. Then set it to D.
Return Value None
Example
STRCPY($W0, "abc");
STRUPR($W10, $W0); ‘Set ABC to $W10 to $W11.
WINFIND Finds a window title
Applicable versions System Version 6.6 or higher
Format WINFIND(S1,S2)
Function
Searches whether a window specified with S1 has started or not.
Set the following search conditions for each bit with S2.
The 0 bit to 3rd bit:
0:Window title that completely matches with S1.
1:Window title that matches with the number of characters of S1.
2:Window title that matches with the number of characters of S1 (Except
for a folder).
The 4th bit:
0: The search ends when a target is found.
1: Searches for all the matched windows.
Use Unicode if you use a symbol to specify a string with S1.
Return Value The number of find results (0: None, 1 or more: Found, -1: Parameter error)
Example WINFIND("TEST",0); 'Search whether there is a window titled TEST.