Jump to content




Login To Use Computer Startup

utility

  • This topic is locked This topic is locked
10 replies to this topic

#1 odd_kid

  • New Members
  • 35 posts
  • LocationProfessional Bug Finder, In San Antonio

Posted 04 August 2012 - 01:43 PM

Hello! Im fairly new to the forums, and pretty new to coding (2 days) but i have made from scratch a simple "Login to use computer" Startup program. I will be posting version 1.0 - 1.4.5 . I am working on 1.5 but i am having a few problems and will be done soon.

As the program goes on, it will get more complex as i learn.

If you have ANY suggestions, or want certain features added, just ask! I REALLY want to learn more coding.

Features:
Disabled "CTRL + T"
Password Protected
Realistic Startup
Emergency (Bypass) Mode

Scroll to bottom for planned features and help.

Version 1.4.5
Spoiler

Version 1.4

Spoiler

1.3 (Huge Update For Me)

Spoiler

Version 1.2 (Lost on Server)

Version 1.1

Spoiler

Version 1.0

Spoiler

Remove "Bypass Mode" and Change Password and Username

Spoiler

Future Plans:
Options Mode (in progress)
Database to hold passwords and username
Must verify Username AND password
Installer

#2 Xhisor

  • New Members
  • 37 posts
  • LocationSweden

Posted 04 August 2012 - 03:10 PM

If you want it to be more realistic try the term.clear(), term.setCursorPos() and textutils.slowWrite()!
EDIT:
Here's how i would have done the layout!
Spoiler


#3 odd_kid

  • New Members
  • 35 posts
  • LocationProfessional Bug Finder, In San Antonio

Posted 04 August 2012 - 11:59 PM

Thankyou! Ive been wondering how to do this!

#4 Xhisor

  • New Members
  • 37 posts
  • LocationSweden

Posted 05 August 2012 - 10:08 AM

Do you want to know how to automaticly run this program on every computer you place?

#5 TundraFish

  • New Members
  • 15 posts

Posted 05 August 2012 - 02:20 PM

View PostXhisor, on 05 August 2012 - 10:08 AM, said:

Do you want to know how to automaticly run this program on every computer you place?
You would have to modify the rom.

Just make a floppy disk with a installer

#6 tbyoran

  • Members
  • 16 posts

Posted 05 August 2012 - 03:00 PM

Hey, I've just received a free Minecraft Giftcode!
You can get one too!

>> Removed, banned for 3 days, enjoy <<

#7 Xhisor

  • New Members
  • 37 posts
  • LocationSweden

Posted 05 August 2012 - 03:39 PM

View PostLeonardoas111, on 05 August 2012 - 02:20 PM, said:

Just make a floppy disk with a installer
But what if he wants to use it as an autostarting program on every computer?
Every time I script something I use Notepad++ and just save the file in
Spoiler
, in that way it gets harder to bypass and you wont have to run aroud with disk drives and floppys.

#8 odd_kid

  • New Members
  • 35 posts
  • LocationProfessional Bug Finder, In San Antonio

Posted 05 August 2012 - 03:54 PM

Well I do most of my programming on a friends tekkit server so i just install it with floppys when someone wants it. But if you know how to mak a installer file, please do share. i would love to know.

#9 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 05 August 2012 - 04:02 PM

os.pullEvent = os.pullEventRaw
local w, h = term.getSize()
--Variables
local user = "Human"
local pass = "password"
local uAllow = false
local pAllow = false
version = "1.0.0"
--Functions
function clear()
  term.clear()
  term.setCursorPos(1,1)
end
function printCentered(msg, h)
  term.setCursorPos(w/2 - #msg/2, h)
  write(msg)
end
local function printHeader()
  printCentered("Login System V"..version, 1)
  printCentered("Coded by: Human", 2)
end
local function uCheck()
  write("Username: ")
  uInput = read()
  if uInput == user then
    uAllow = true
  else
    print("Incorrect Username!")
    sleep(2)
    os.reboot()
  end
end
local function pCheck()
  write("Password: ")
  pInput = read("*")
  if pInput == pass then
    pAllow = true
  else
    print("Incorrect Password!")
    sleep(2)
    os.reboot()
  end
end
--Main Program
clear()
printHeader()
term.setCursorPos(1,4)
uCheck()
if uAllow == true then
  term.setCursorPos(1,5)
  pCheck()
end
if uAllow == true and pAllow == true then
  textutils.slowPrint("Loging in...")
  sleep(2)
  clear()
  print("Logged in")
end

That's just something that I wrote in 5 minutes I thought it was I bit more advanced.

#10 Xhisor

  • New Members
  • 37 posts
  • LocationSweden

Posted 05 August 2012 - 04:03 PM

View Postodd_kid, on 05 August 2012 - 03:54 PM, said:

Well I do most of my programming on a friends tekkit server so i just install it with floppys when someone wants it. But if you know how to mak a installer file, please do share. i would love to know.
You'll need a disk drive, a computer and a floppy disk.
Place the computer you have the program on and the disk drive beside each other and place the floppy disk in the disk drive. Write
cp startup disk/startup
and there you go! Now use the disk drive and the floppy to copy the program to any computer you want using
cp disk/startup startup
.

#11 odd_kid

  • New Members
  • 35 posts
  • LocationProfessional Bug Finder, In San Antonio

Posted 05 August 2012 - 04:07 PM

Thankyou Xhisor! Ill get on that, and Human0303, thankyou for the code but no need to brag/rub it in my face that you can code better. Like i said im new and im just looking for improvement





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users