Jump to content




Numeric PIN Pad


  • You cannot reply to this topic
27 replies to this topic

#1 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 07 December 2012 - 11:00 AM

Just a little fun program, to bolster the forums' endless stock of computer locks. This however, has a twist.
I have created a system for using a PIN pad, to identify the user. The program is configurable for use as OS protection, as well as for use as a door lock.

Configuration is done by editing the first part of the program. By default, it will be used as an OS lock.
The program will immediately ask you to create a 4 digit Personal Identifying Number. The only one you cannot use is '0, 0, 0, 0', as that is the default code.

This is a program for use with mouse control ONLY.
Let me know what you think of the program, as well as suggestions below.

Screenshot:
Posted Image

Download: http://pastebin.com/fF5DnUQj

Edited by Cranium, 15 December 2012 - 12:44 PM.


#2 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 07 December 2012 - 11:09 AM

This is really cool, haha.

EDIT: Hope you don't mind, I made an alternate scanning animation: http://pastebin.com/GNZT79Nt

The math took a bit of figuring out :lol:

#3 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 08 December 2012 - 09:51 AM

View PostKingdaro, on 07 December 2012 - 11:09 AM, said:

This is really cool, haha.

EDIT: Hope you don't mind, I made an alternate scanning animation: http://pastebin.com/GNZT79Nt

The math took a bit of figuring out :lol:
Ooooh, I really like that. It looks really nice.
How would you make that scan vertically?

#4 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 08 December 2012 - 10:03 AM

You would probably have to do some backwards logic. Instead of starting at 1 and going to width + height, go the other way around.
for i=width + height, 1, -1 do


#5 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 08 December 2012 - 10:13 AM

Eh, tried it. Just goes right to left. Oh well...

#6 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 08 December 2012 - 10:33 AM

Just figured it out. New animation function:
local function scanAnim(color)
	local offsetx, offsety = 24, 5
	local width, height = #scanner[1], #scanner
	
	for i=width + height, 1, -1 do
		for y=i, 1, -1 do
			x = width - (i - y) + 1
			if x >= 1
			and y <= height then
				term.setCursorPos(x + offsetx ,y + offsety)
				term.setBackgroundColor(color)
				term.setTextColor(colors.gray)
				write(scanner[y]:sub(x,x))
			end
		end
		sleep(0.05)
	end
end


#7 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 15 December 2012 - 12:45 PM

Updated OP with screenshot and corrected error with door locks opening too early.

#8 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 15 December 2012 - 01:21 PM

I actually never thought of this style of lock. Pretty cool.

#9 jb567

  • New Members
  • 6 posts

Posted 23 December 2012 - 05:17 PM

This will be awesome with touch screen monitors :P

#10 lieudusty

  • Members
  • 419 posts

Posted 26 December 2012 - 05:54 PM

This looks awesome!

#11 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 27 December 2012 - 04:50 AM

Random but cool :D

#12 Togira

  • New Members
  • 2 posts

Posted 29 December 2012 - 09:43 AM

it dont use with advenced monitors. it chose always 3 numbers as one.
sorry for my bad english im german

#13 HotGirlEAN

  • Banned
  • 101 posts

Posted 29 December 2012 - 10:08 AM

This is awesome! Keep up the good work Cranium!

#14 todry

  • Members
  • 25 posts
  • LocationCanada, Eh!

Posted 05 January 2013 - 05:27 PM

Can you make one without colour please.

#15 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 05 January 2013 - 06:55 PM

View Posttodry, on 05 January 2013 - 05:27 PM, said:

Can you make one without colour please.
Wouldn't that be pretty useless since non-color computers don't have touch screens?

#16 Fizzgigg

  • New Members
  • 2 posts

Posted 05 January 2013 - 07:18 PM

That looks epic!
I will be looking at this

#17 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 06 January 2013 - 07:42 AM

View Posttodry, on 05 January 2013 - 05:27 PM, said:

Can you make one without colour please.
Why would I make one without color? Like 1Lann said, non color computers can't use this.

#18 todry

  • Members
  • 25 posts
  • LocationCanada, Eh!

Posted 13 January 2013 - 05:49 PM

View PostCranium, on 06 January 2013 - 07:42 AM, said:

Why would I make one without color? Like 1Lann said, non color computers can't use this.
for people that like you pin pad style but just want a simple door/OS lock.

#19 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 13 January 2013 - 08:07 PM

View Posttodry, on 13 January 2013 - 05:49 PM, said:

for people that like you pin pad style but just want a simple door/OS lock.
The problem with that is non advanced computers do not have mouse support. You would only be able to use your keypad. I don't feel like changing the whole program just to cater to them.

#20 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 January 2013 - 08:17 PM

View PostCranium, on 13 January 2013 - 08:07 PM, said:

View Posttodry, on 13 January 2013 - 05:49 PM, said:

for people that like you pin pad style but just want a simple door/OS lock.
The problem with that is non advanced computers do not have mouse support. You would only be able to use your keypad. I don't feel like changing the whole program just to cater to them.
just have an optional runtime arg that runs it in ascii mode... but still only on an advanced computer...

EDIT: Btw I really like this! :D Should expand it to use the touchscreen :)

Edited by TheOriginalBIT, 13 January 2013 - 08:18 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users