1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HELP issue: ON command

Discussion in 'Support' started by Steve Fabian, Apr 29, 2011.

  1. Steve Fabian

    May 20, 2008
    Likes Received:
    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.
  2. David Marcus

    Jun 4, 2008
    Likes Received:
    See http://jpsoft.com/forums/showthread.php?t=2671

    I think the Help should also explain that various internal commands will trigger ON ERRORLEVEL, even when they aren't producing an error.
  3. rconn

    rconn Administrator
    Staff Member

    May 14, 2008
    Likes Received:
    Not unless Windows process security has utterly failed.

    The documentation is correct. (It's worked that way for 20 years.)

    Only one, like the others.

Share This Page