• waitenter.mps

    From paulie420@21:2/150 to All on Sun Apr 16 20:09:32 2023
    I have a waitenter.mps file:
    -----
    Begin
    purgeInput;
    write('!CR!15/// !05pRESS !15[!13eNTER!15] !05tO cONTINUE!13... !15///')
    oneKey(#13, True)
    End
    -----
    It works great for pausing at Mystic broadcast messages; I call it in the broadcast theme editor...

    Anyway, it the 'oneKey' holds there forever... in MPL can I add some !OR command to have it hold forever, like it does now, OR move forward after... 120 seconds???

    ... right now, if I'm idling and come back I get many Mystic broadcasts... I'd like to hold it there for 120seconds, or a keypress - as opposed to only a keypress...



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From xqtr@21:1/111 to paulie420 on Mon Apr 17 20:53:58 2023
    Anyway, it the 'oneKey' holds there forever... in MPL can I add some !OR command to have it hold forever, like it does now, OR move forward after.. 120 seconds???

    Not just with the onekey function. You should use a while loop, with keypressed and store/compare the time, with a tick count function and read the pressed key with readkey. If you want the code, i can write it for you, but i am leaving it to you, for now, to have the enjoyment of finding it your self :)

    .
    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From paulie420@21:2/150 to xqtr on Sat Apr 22 21:55:12 2023
    Anyway, it the 'oneKey' holds there forever... in MPL can I add some command to have it hold forever, like it does now, OR move forward af 120 seconds???

    Not just with the onekey function. You should use a while loop, with keypressed and store/compare the time, with a tick count function and
    read the pressed key with readkey. If you want the code, i can write it for you, but i am leaving it to you, for now, to have the enjoyment of finding it your self :)

    Nope - I understand what yer saying - thanks for the outline. :P



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)