Is there a way to use the "write" command in js without it using a pause. All I want to do is display a one line comment momentarly without the user having to hit enter. Thanks in advance.
Is there a way to use the "write" command in js without it using a pause. All I want to do is display a one line comment momentarly without the user having to hit enter. Thanks in advance.
I'm not clear what you're asking.
Re: Write
By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm
Is there a way to use the "write" command in js without it using a
pause. All I want to do is display a one line comment momentarly
without the user having to hit enter. Thanks in advance.
I'm not clear what you're asking. Is the screen clearing immediately after or something happening to the text ("comment") your displaying to the user with write()?
Re: Write
By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm
Is there a way to use the "write" command in js without it using a
pause. All I want to do is display a one line comment momentarly
without the user having to hit enter. Thanks in advance.
If you want to have it wait momentarily without user input, you can call mswait and give it a number of milliseconds to pause.
Re: Write
By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm
Re: Write
By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm
Is there a way to use the "write" command in js without it using a
pause. All I want to do is display a one line comment momentarly
without the user having to hit enter. Thanks in advance.
I'm not clear what you're asking. Is the screen clearing immediately after or something happening to the text ("comment") your displaying to the user with write()?
Everytime I call write, it will display the line, then the pause prompt will follow.
I want it so no user activity is required, just show the message. I
might us mswait to make it stay there on the screen for a few seconds.
write("\r\n\1h\1rNumber Pad Required!\r\n\r\n");
Re: Write
By: Nightfox to DesotoFireflite on Sat Mar 26 2022 11:58 am
Re: Write
By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm
Is there a way to use the "write" command in js without it using a
pause. All I want to do is display a one line comment momentarly
without the user having to hit enter. Thanks in advance.
If you want to have it wait momentarily without user input, you can call mswait and give it a number of milliseconds to pause.
so just adding the mswait command with the milliseconds will suppress the pause prompt.
Is there a way to use the "write" command in js without it using a
pause. All I want to do is display a one line comment momentarly
without the user having to hit enter. Thanks in advance.
If you want to have it wait momentarily without user input, you can
call mswait and give it a number of milliseconds to pause.
so just adding the mswait command with the milliseconds will suppress the pause prompt. I'll give it a shot. I've only used mswait one other time, so I wasn't aware. Thanks
Re: Write
By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm
Re: Write
By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm
Is there a way to use the "write" command in js without it using a
pause. All I want to do is display a one line comment momentarly
without the user having to hit enter. Thanks in advance.
I'm not clear what you're asking. Is the screen clearing
immediately after or something happening to the text ("comment")
your displaying to the user with write()?
Everytime I call write, it will display the line, then the pause
prompt will follow.
Most likely, that pause prompt is *not* because of the write() call but rather because your script has stopped executing and the user is returning to a menu that is displaying a menu with a clear-screen sequence or you script has a clear-screen sequence in (e.g. console.clear()) or is displaying a file that has a clear-screen sequence in it. The write() isn't the issue here.
I want it so no user activity is required, just show the message. I
might us mswait to make it stay there on the screen for a few seconds.
write("\r\n\1h\1rNumber Pad Required!\r\n\r\n");
And then what happens after that? It's *that* that is causing the screen pause.
Re: Write
By: DesotoFireflite to Nightfox on Sat Mar 26 2022 05:37 pm
so just adding the mswait command with the milliseconds will
suppress the pause prompt. I'll give it a shot. I've only used
mswait one other time, so I wasn't aware. Thanks
mswait() won't suppress any pause prompts; mswait() simply delays for a moment and then lets the script continue on.
I might be a little confused. What pause are you seeing that you need to suppress?
I've used write() before and hadn't necessarily seen it cause any pause prompts where the user had to input anything. If you're seeing such a pause prompt, I'm wondering if it might be because it's automatically pausing for input after a screenful of information, perhaps?
And then what happens after that? It's *that* that is causing the screen pause.
OK, cool deal, I fully undersatnd. I just got into programing with js, and I'm still learning. It's a big learning curve to me after doing it all with baja. Thanks for the assist.
Re: Write
By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm
DM> Re: Write
DM> By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm
>> Is there a way to use the "write" command in js without it using a
>> pause. All I want to do is display a one line comment momentarly
>> without the user having to hit enter. Thanks in advance.
DM> I'm not clear what you're asking. Is the screen clearing immediately after
DM> or something happening to the text ("comment") your displaying to the user
DM> with write()?
Everytime I call write, it will display the line, then the pause prompt will follow. I want it so no user activity is required, just show the message. I might us mswait to make it stay there on the screen for a few seconds.
write("\r\n\1h\1rNumber Pad Required!\r\n\r\n");
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 102:01:18 |
Calls: | 373 |
Files: | 2 |
Messages: | 38,870 |