![background image](http://html1.mh-extra.com/html/omron/ns-runtime-software/ns-runtime-software_user-manual_744233081.webp)
4-5 Macros
4-25
N
N
N
o
o
o
t
t
t
e
e
e
With the argument S1, specify a string that will be displayed on the title bar of a window you want to
search for.
Example:
To find a window below, set as follows.
WINFIND(“CX-Designer – DEMO – [0000:Screen Page0000]”,0);
If the ‘1:Window title that matches the number of characters of S1’ is specified with the argument S2,
the window title that matches the number of the characters specified with S1 will be searched for. In
this case the first string displayed on the title bar will be searched for.
In above case, set WINFIND(“CX-Designer”,1);
This window will be searched for when the macro is executed.
Note:
WINFIND(“DEMO”,1);
By making the above setting, the window title will not searched for. Because the DEMO is not in the
first string, although the title bar includes this string.
The above information also applies to WINMAX, WINMIN, WINNORMAL, WINTERM, and WINTOP.
WINMAX
Maximizes a specified window
Applicable versions
System Version 6.6 or higher
Format WINMAX(S1,
S2)
Function
Maximizes a window specified with S1.
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).
Use Unicode if you use a symbol to specify a string with S1.
Return Value
0: Completed normally
-1: No specified window
Example WINMAX(”TEST”,0)
;
'Maximize a window titled TEST.
Содержание NS-RUNTIME - SOFTWARE
Страница 1: ...NS Runtime Software USER S MANUAL Cat No V093 E1 04...
Страница 2: ......
Страница 28: ...1 4 Comparison between the NS Series and the NS Runtime 1 14...
Страница 38: ...2 6 User Interface 2 10...
Страница 56: ...3 5 Converting Projects 3 18...
Страница 84: ...4 5 Macros 4 28...
Страница 136: ...5 11 Window Size 5 52...
Страница 154: ...7 3 Error Messages and Countermeasures 7 6...
Страница 156: ......
Страница 157: ......