Posted 06 April 2013 - 07:35 PM
I Couldn't think of a good topic title to associate this topic and define it's, well, topic…
Anyways.
I am attempting to make a password program equipped with: a full GUI; two input fields(User and Password); and Dialogue that appears before the GUI. However, the dialogue is my issue. Now your probably saying "Why?, it's simple just type (print ("text")) or (print "text" ) or (print 'text')". Well yes I know this but that is not quite exactly my issue about it, you see I'm a code NEAT FREAK, and I like to make my scripts as small in length as possible. That way it is easier to fix problems too. Anyways let me show you my issue then elaborate on how it's an issue.
(Edit: Yep By Far The Worst Topic I have Ever Typed Then Posted. For Sure.)
Anyways.
I am attempting to make a password program equipped with: a full GUI; two input fields(User and Password); and Dialogue that appears before the GUI. However, the dialogue is my issue. Now your probably saying "Why?, it's simple just type (print ("text")) or (print "text" ) or (print 'text')". Well yes I know this but that is not quite exactly my issue about it, you see I'm a code NEAT FREAK, and I like to make my scripts as small in length as possible. That way it is easier to fix problems too. Anyways let me show you my issue then elaborate on how it's an issue.
print("[SYSTEM]")
term.setCursorPos(9,Y) -- Y is yet to be determined
textutils.slowPrint("Diagnosing ASE Error")
sleep(2)
print("[SYSTEM]")
term.setCursorPos(9,Y+1)
textutils.slowPrint("Checking For Other Problems")
sleep(2)
Now, my issue is with theprint("[SYSTEM]")
term.setCursorPos(9,Y+1)
textutils.slowPrint("text")
Why? Well,I have close to around 15 more lines of dialogue to type out and I don't want to have to type those same three lines followed by 'sleep(#)' 17 consecutive times then have to go through and make sure everything is typed correctly, that and I personaly think that by doing that 17 repeated times just looks unprofessional. Of Course your probably thinking that this is just a personal problem and I'll admit it kind does sound like one now that I've read this through, but however, if you think you could help me out that would just be flat out amazing and thank you.(Edit: Yep By Far The Worst Topic I have Ever Typed Then Posted. For Sure.)