![background image](http://html1.mh-extra.com/html/omron/ns-runtime-software/ns-runtime-software_user-manual_744233083.webp)
4-5 Macros
4-27
WINTERM
Exits a specified window
Applicable versions
System Version 6.6 or higher
Format WINTERM(S1,
S2)
Function
Exits 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).
The 4th bit:
0:Sends a WM_CLOSE message to a specified window.
1: Sends a WM_DESTORY message to a specified window.
Example: Microsoft Word
When the 4th bit is 0,
Displays a message saying Do you want to save the document 1?
After confirming, Microsoft Word ends.
When the forth bit is 1,
Exits a window without displaying a confirmation message even when there
is a change.
Use Unicode if you use a symbol to specify a string with S1.
Return Value
0: Completed normally
-1:No specified window
Example
WINTERM("TEST",0); ‘Exit a window titled
TEST.
WINTOP
Brings a specified window to the front
Applicable versions
System Version 6.6 or higher
Format
WINTOP(S1 ,S2)
Function
Brings a window specified with S1 to the front.
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
WINTOP("TEST",0) ;
‘Bring a window titled TEST to the front.
Содержание 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: ......