TIP: Click on subject to list as thread! ANSI
echo: telix
to: BEN CARPENTER
from: LANCE REYNOLDS
date: 1997-06-01 07:50:00
subject: Re: Tracks

Hyya Ben!
 -=> Quoting Ben Carpenter to Lance Reynolds <=-
 BC> Sorry my reader and editor undid your indent format on the following.
Not to worry.  Long as you don't step on my blue swe...  wait, some
body already said that.  Appreciate the time and effort.
 BC> comments may not be any better than what you have done but may give
 BC> you some ideas.
Yes, they did.  And is _way_ better than getting yelled at by our
illustrious moderator for being impatient.  Thank you.
 
 
 BC> I would suggest that the above line be placed just above the
 BC> "delay(30);".  This way if the filefind does not find "SHAKEY.REP"
 BC> there is no need to send the "U" and you would not need to send
 BC> "cputs("^x^x^x^x^x^x^x^x^x^x^x^x");".  Then in the "else" statement
 BC> set your counter to "2" so as the down load will take place.
 
Or just go ahead and tell it to download...  Hmmm...  good one.  But
I'd still have to have the "dld" track active, so it will download
when there _is_ an reply.  But then that would cause two downloads...
 BC> Without seeing all of your choices for the different menus I am
 BC> guessing a little but the 3rd hit on the qwk track takes you back to
 BC> the message menu according to what you stated above.  Then you want
Correct.
 BC> to log off with (track_hit(t9)).  This seems to be the part that is
Not exactly.  T9 is there because there is one more choice to make
before the download starts or aborts.  When I select "D" from the QWK
menu, (after upld is done), there is either no packet to download,
(which is why I need t3 active), or it asks if I want the packet.
Answering "Y"es sends me the packet and goes back to the QWK menu;
answering "G" would send me the packet and log off.  I don't want to
log off.  (gotta see how my lord chara is doing!) 
 BC> not working I think.
Nope.  The script never sends the "D" on the second hit of the QWK
track, so the download never starts.
 BC> Question which menu is the string that
 BC> "(track_hit(t9))"  is looking for in?  What I am trying to say is are
 BC> you in the wrong place when you want (track_hit(t9)) to work.
At least, I don't think I am.   You got me looking in the right area
tho, I think.  (see "I think I found it" below.)
 BC> Another way to logg off after a down load that works with some doors
 
Yup.  Or I could send a "G" when t9 is hit, but I want to stick
around, so once I get the QWK menu after the download is done, I need
to go back to the Message menu, and then back to the Main menu.
 BC> I think you mentioned something in the part I deleted about the
 BC> counter not working.  I changed one of my scripts the other day when I
I think I found it...
 if (track_hit(t8))
 {
 n3 = n3 - 1;
 if (n3 == 3)
 {
 cputs("U");
 .... some packet upload stuff deleted.......
 cputs("^x^x^x^x^x^x^x^x^x^x^x^x");
 }
 }              // I think this gizmo is in the wrong place.  Looks 
 if (n3 == 2)   // like it puts the last two ifs outside the n3
 cputs("D");    // counter sub-routine.  Should be...
 if (n2 == 1)
 cputs("q");      
 track_free(t8);  
Like so:
 if (track_hit(t8))
 {
 n3 = n3 - 1;
 if (n3 == 3)
 {
 cputs("U");
 .... some packet upload stuff deleted.......
 cputs("^x^x^x^x^x^x^x^x^x^x^x^x");
 }
 if (n3 == 2)   
 cputs("D");    
 if (n2 == 1)
 cputs("q");      
 track_free(t8);  
 }
We'll see.
 BC> One other thing I am wondering about.  You have a function "main()"
 BC> and a string "str main[] = "Main Menu Command >>";".  Are they getting
 BC> mixed up with each other?
I doubt it, but I changed it a little bit, just in case.  Thanks.
 BC> The last comment I have is about the track_free statements you use. 
 BC> I only use one at the end of the script that frees all the tracks at
 BC> once.
I've heard people say that it speeds up scripts and cuts down on
errors if the tracks are cleared as soon as you don't need them any
more, 'cause it doesn't have to check each (un-needed) track for a
match.   As simple as this script is probably doesn't matter...
Thanks a lot for your help.  I let you know how it works out.
                              
                              -)~(o
                               _+_
___ Blue Wave/DOS v2.30
--- Platinum Xpress/Win/Wildcat5! v2.0
---------------
* Origin: Shakey Jake's *All Free BBS!* Santee, Ca (1:202/1324)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.