• Dumb Mecca / Xtrn question

    From Shawn Highfield@1:229/452 to All on Thu Jun 21 16:15:18 2007
    Hello,

    What I want to do is use a mecca file to launch Icechat, and if no one answers have the mecca script ask to leave a comment... I'm doing something wrong here, I think with the calling of the door.

    Anyone have a cool script they could share? ;)

    [XTERN_DOS]c:\max\doors\ichat\icechat.bat_%k
    Leave a message?
    [Gray Menu]YN|
    [Choice]N[Quit]
    [Leave_Comment]

    Thanks,
    Shawn

    ... If you think education is expensive, try ignorance.

    ---
    * Origin: Tiny's BBS t1ny.kicks-ass.org Back/2! (1:229/452)
  • From Mvan Le@1:343/41 to Shawn Highfield on Sat Jun 23 13:51:10 2007
    What I want to do is use a mecca file to launch
    Icechat, and if no one answers have the mecca script
    ask to leave a comment... I'm doing something wrong
    here, I think with the calling of the door.

    Anyone have a cool script they could share? ;)

    [XTERN_DOS]c:\max\doors\ichat\icechat.bat_%k
    Leave a message?
    [Gray Menu]YN|
    [Choice]N[Quit]
    [Leave_Comment]

    IceChat only works with JAM/Hudson, so you have to adapt using errorlevels.

    icechat.bat:
    =========================================================
    @echo off
    ICECHAT.EXE <parameters>

    rem ; User paged, but not answered. Create a flag file.
    if errorlevel 10 cd .> leavemsg.flg =========================================================

    yellreq.mec:
    ========================================================= [XTERN_DOS]c:\max\doors\ichat\icechat.bat_%k [filenew]c:\max\doors\ichat\leavemsg.flg [goto leave_msg]
    [quit]

    [/leave_msg]
    Leave a message? [Gray Menu]Yn|
    [Choice]Y[Leave_Comment]
    [delete]c:\max\doors\ichat\leavemsg.flg =========================================================


    --- Maximus/2 3.01
    * Origin: Top Hat 2 BBS (1:343/41)
  • From Shawn Highfield@1:229/452 to Mvan Le on Sat Jun 23 19:55:18 2007
    Mvan Le wrote in a message to Shawn Highfield:

    yellreq.mec:

    Beautiful works great and thank-you!


    Shawn 'Tiny' Highfield - http://t1ny.kicks-ass.org:9080

    ... A closed mouth gathers no foot.
    ---
    * Origin: Tiny's BBS - telnet://t1ny.kicks-ass.org - Back/2! (1:229/452)
  • From Mvan Le@1:343/41 to Shawn Highfield on Sat Jun 23 18:12:18 2007
    Mvan Le wrote in a message to Shawn Highfield:

    yellreq.mec:

    Beautiful works great and thank-you!

    Watch your batch file flow control. There's an omission in my example that causes the flag file to be created eventhough the page was answered.

    So you need to put a "goto end" line at the end of the "if errorlevel"'s:

    icechat.bat:
    ==============================
    ...
    ...
    ...
    if errorlevel 10 goto leavemsg
    goto end

    ...
    ...
    ...

    :end
    ==============================

    The [filenew] and [delete] tokens don't support external translation characters
    (eg. %k) so multinode conflicts are possible eg. if there's any flag file deletion delay between multiple and/or consecutive chat requests.

    A workaround could involve subsituting yellreq.mec with yellreq<node>.mec, or convoluted batch file interaction(s) but I'm too lazy.

    This problem is easily solved with MEX, and is a non issue on single line systems.


    --- Maximus/2 3.01
    * Origin: Top Hat 2 BBS (1:343/41)
  • From Shawn Highfield@1:229/452 to Mvan Le on Sun Jun 24 10:38:12 2007
    Mvan Le wrote in a message to Shawn Highfield:

    So you need to put a "goto end" line at the end of the "if
    errorlevel"'s:
    if errorlevel 10 goto leavemsg
    goto end

    Right-o! Will add that in and give it a shot.

    A workaround could involve subsituting yellreq.mec with
    yellreq<node>.mec, or convoluted batch file interaction(s) but I'm
    too lazy.

    It's not really an issue anymore though. If I'm getting paged on more
    then one node at a time, something is really wrong. :)

    This problem is easily solved with MEX, and is a non issue on single
    line systems.

    Might as well be a single line system here now, I do have 3 nodes setup but I
    don't think node 2 or 3 has ever received a call. :)


    Shawn 'Tiny' Highfield - http://t1ny.kicks-ass.org:9080

    ... Young gorillas are friendly but they soon learn.
    ---
    * Origin: Tiny's BBS - telnet://t1ny.kicks-ass.org - Back/2! (1:229/452)
  • From Sean Dennis@1:18/200 to Shawn Highfield on Wed Jun 27 08:21:08 2007
    Shawn Highfield wrote in a message to All:

    [XTERN_DOS]c:\max\doors\ichat\icechat.bat_%k

    I think it's in the way you're calling the door...I dunno but I'll double-check.

    Later,
    Sean

    --- timEd/2 1.10.y2k+
    * Origin: Outpost BBS - Douglasville, GA - 770-489-1561 (1:18/200)
  • From Shawn Highfield@1:229/452 to Sean Dennis on Wed Jun 27 10:27:50 2007
    Sean Dennis wrote in a message to Shawn Highfield:

    [XTERN_DOS]c:\max\doors\ichat\icechat.bat_%k
    I think it's in the way you're calling the door...I dunno but I'll double-check.

    It's space %k not _ %k it was a typo.


    Shawn 'Tiny' Highfield - http://t1ny.kicks-ass.org:9080

    ... Spring---an experience in immoratality.
    ---
    * Origin: Tiny's BBS - telnet://t1ny.kicks-ass.org - Back/2! (1:229/452)
  • From Sean Dennis@1:18/200 to Shawn Highfield on Wed Jun 27 17:12:06 2007
    Shawn Highfield wrote in a message to Sean Dennis:

    It's space %k not _ %k it was a typo.

    And there you go.

    Later,
    Sean

    --- timEd/2 1.10.y2k+
    * Origin: Outpost BBS - Douglasville, GA - 770-489-1561 (1:18/200)
  • From Mvan Le@1:343/41 to Shawn Highfield on Sun Jul 1 04:12:00 2007
    =========================================================
    ...
    ...
    ...
    [/leave_msg]
    Leave a message? [Gray Menu]Yn|
    [Choice]Y[Leave_Comment]
    [delete]c:\max\doors\ichat\leavemsg.flg =========================================================

    If you move the [delete] line directly underneath [/leave_msg] then any simultaneous user paging conflicts are virtually eliminated eg:

    ==============================================================
    ...
    ...
    ...
    [/leave_msg]
    [delete]c:\max\doors\ichat\leavemsg.flg
    ...
    ...
    ...
    ==============================================================


    --- Maximus/2 3.01
    * Origin: Top Hat 2 BBS (1:343/41)
  • From Shawn Highfield@1:229/452.1 to Mvan Le on Sun Jul 1 11:03:35 2007
    On 2007-07-01 04:12:00 -0400, "Mvan Le -> Shawn Highfield" <1:343/41> said:

    If you move the [delete] line directly underneath [/leave_msg] then any simultaneous user paging conflicts are virtually eliminated eg:

    Done. Thanks. :) Now I've got maximus where I want it.

    --
    Shawn Highfield.
    http://t1ny.kicks-ass.org:9080

    --- Unison/1.7.9
    * Origin: Tiny's BBS - http://t1ny.kicks-ass.org:9080 - Back/2! (1:229/452.1)