- May
- 3,515
- 5
Several minor issues were created when ON was expanded from its two original modes (BREAK, ERROR[MSG]). Below I refer to each section of the HELP page which has a subtitle as a "subtopic".
1/ "Usage" subtopic
Needs to be expanded to indicate that each mode creates an independent watch.
2/ Cancellation
This issue should now be its own subtopic. It is currently addressed in the Scope subtopic, but only for the above listed original modes. Presumably each mode behaves like the original ones: to cancel ON for that mode for the remainder of the batch file one inserts the command "ON mode" into the batch file. It is not clear whether or not canceling ON ERRORMSG also cancels ON ERROR and vice versa. Alternately, like the DO command, cancellation forms should be in the
3/ All mouse button modes
Unclear whether or not these are focus-dependent, i.e., if the relevant mouse button is activated when another window has focus, will the command in the ON be executed?
4/ "ON ERRORLEVEL" subtopic
The default test for ERRORLEVEL in conditional expressions is GE. Is this command different, defaulting to EQ as the text states, or is that an error, the actual default is GE, and the example's implication that one must specify EQ explicitly if that is desired correct?
5/ "Format" subtopic
5.1/ "ON DBLCLICK [test command]" is presumably wrong, the word "test" should not be present.
5.2/ test field should be described, or at least referred to here to be consistent with other commands in HELP
6/ "Activation of ON CONDITION"
It is unclear whether or not multiple ON CONDITION watches with different conditions can be activated at the same time, or only a single condition can be monitored.
--
Steve
1/ "Usage" subtopic
Needs to be expanded to indicate that each mode creates an independent watch.
2/ Cancellation
This issue should now be its own subtopic. It is currently addressed in the Scope subtopic, but only for the above listed original modes. Presumably each mode behaves like the original ones: to cancel ON for that mode for the remainder of the batch file one inserts the command "ON mode" into the batch file. It is not clear whether or not canceling ON ERRORMSG also cancels ON ERROR and vice versa. Alternately, like the DO command, cancellation forms should be in the
3/ All mouse button modes
Unclear whether or not these are focus-dependent, i.e., if the relevant mouse button is activated when another window has focus, will the command in the ON be executed?
4/ "ON ERRORLEVEL" subtopic
The default test for ERRORLEVEL in conditional expressions is GE. Is this command different, defaulting to EQ as the text states, or is that an error, the actual default is GE, and the example's implication that one must specify EQ explicitly if that is desired correct?
5/ "Format" subtopic
5.1/ "ON DBLCLICK [test command]" is presumably wrong, the word "test" should not be present.
5.2/ test field should be described, or at least referred to here to be consistent with other commands in HELP
6/ "Activation of ON CONDITION"
It is unclear whether or not multiple ON CONDITION watches with different conditions can be activated at the same time, or only a single condition can be monitored.
--
Steve