import os
import time
import winsound
# Directory to check for new netmail
NETMAIL_DIR = "C:\\MYSTIC\\MSGS\\NETMAIL\\"
# Path to the ANSI file
ANSI_FILE = "C:\\MYSTIC\\DATA\\mis_stats.ans"
# Coordinates for the mail indicator
X = 51
Y = 10
# Mail indicator message
MAIL_INDICATOR = "\x1B[5;33mMAIL\x1B[0m" # Blinking yellow MAIL
# Path to the chirping sound file (replace with your sound file path) SOUND_FILE = "C:\\MYSTIC\\scripts\\chirp.wav"
def check_new_netmail():
I found myself thinking of the good old days,
w / the systems that I used
torun.
How I found my self running RA,
because I was told that everyone
"aroundhere " runs RA
(Remote Access) indeed
they were all running w/ the sameconf
iguration files too that was literately shared on a USB
thumb drive, asthis
thumb drive was copied from system to new system.
They had different bbs file s,
but it was the same hum drum cookie cutter out of the box
BBS with no customization.Wh
ich is why I did not stay with the plain jane,
I decided to get commercialsoftware.
I pic ked up Wildcat 4.20
loved it and so did the users, but it
didnot play nice with F idonet
or any other type of like message base. It was not
until Platinum Xpress Sotware from
Santronics came along to wherethis frontend
somewhat handled the issues with integrating fidonet
intoWil dcat, but sometimes
Andrea and more so w/
Hector were a bit too abrasive.If
y ou knew them, then you know exactly what I
mean . I used a few
others systems afte r wildcat to what I am using
now and formore then a few years of which is
Mystic. Love it , in
just about every way dueto it having a frontend
, telnet, BinkD and a BBS
all built in. Really Nice -
But What about the blinking yellow MAIL
w / the chirp indicating new
netmail?That was in frontdoor
from back in the day. The
MAIL indicator should be located perilously at the
following location Idiscovered
this would be optimum at x 51 y10
from looking at the ans filewit hin
c:\mystic\data\mis_st
ats.ansThis my First
atte mpt - but I know nothing of writing
a script with in mysticto get Mystic
to do this. I do not even know if this is
even possible? Sooooo,
I wanted to share with you all the scrip t
that Chat GPT under mydirection came up wi
th. I wanted to see of this would work or if it is
j ustgibberish and nonsense and if it was a
possibility that t his could be includedin
the next version if there is one ?
Thanks in advance,
Gregoryimport osimport time
import winsound# Directory to check for
n ew netmailNETMAIL_DIR
= "C:\\
MYSTIC\\MSGS\\NETMAIL\\"#
Path to the ANSI
fileANSI_FILE =
"C:\\MYSTIC\\DATA\\mis
_stats.ans"#
Coordinat es for the mail indicatorX
= 51Y
= 10# Mail indicator message
MAIL_INDICATOR = "\x1B[5
;33mMAIL\x1B[00
m " # Blinking yellow MAIL#
P ath to the chirping sound file (replace
with your soun d file
path)SOUND_FILE = "C
:\\MYSTIC\\scripts\\chirp.0
w av"def
check_new_ne
tmail():"""Check for new netmail in
the specified directory."""return
len(
os.listdir(NETMAIL_DIR)) >
0def
update_ansi_file
():"""Update the ANSI file to
di splay the mail indicator at X51,
Y10."" "with
open(ANSI_FILE, ' r+')
as file:lines =
file.readlines() if
Y - 1 <
len(lines):
lines[Y - 1] =
lines[ Y - 1][:X]
+ MAIL_INDICATOR +
lines[Y -1][X
+len(MAIL_INDICATOR):]
file.seek(0)file
.writelines(lines)0
d ef play
... Still waitng for that Coffee :)
--- Mystic BBS v1.12 A48 (Windows/64)
* Origin: Capital Station BBS * Telnet://csbbs.dyndns.org * (21:1/127)
Sysop: | smooth0401 |
---|---|
Location: | New Providence, NJ |
Users: | 6 |
Nodes: | 4 (0 / 4) |
Uptime: | 100:22:20 |
Calls: | 86 |
Calls today: | 2 |
Files: | 288 |
D/L today: |
2 files (3,083K bytes) |
Messages: | 41,239 |