Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › how do i make a password prompt in QBASIC?
New Posts  All Forums:Forum Nav:

how do i make a password prompt in QBASIC?

post #1 of 13
Thread Starter 
im in a programming class in school and we are using qbasic. we are making a program that uses data and loops to make a teachers grade book. I'm done with that part but i want to make it so before you can run the program it asks for a password from the user. when typing the password i would like it to show up like this: ********

it is ok if it itsnt possible to make it show as ******

so the question is: how do i make a password prompt in QBASIC?
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #2 of 13
No hablo QBASIC. But here is a bump
    
CPUMotherboardGraphicsRAM
T6400 @ 2.00ghz ATI Mobility Radeon HD 4530 4gb 
Hard DriveOptical Drive
297gb? DVD/CD Writer 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
T6400 @ 2.00ghz ATI Mobility Radeon HD 4530 4gb 
Hard DriveOptical Drive
297gb? DVD/CD Writer 
  hide details  
Reply
post #3 of 13
Thread Starter 
thanks for the bump
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #4 of 13
Ahhh... good ol' QBASIC. That was the first language I learned.

To answer your question, I have no idea. A quick google search came up with this though, take a look at it.
http://www.ericphelps.com/batch/samp...ssword.bat.txt
Minecraft Server
(21 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 950 Gigabyte X58-USB3 8400GS 24GB DDR3 G.Skill Ripjaws 
Hard DriveHard DriveHard DriveHard Drive
60GB Mushkin Callisto Deluxe SSD 60GB OCZ Vertex SSD 120GB Mushkin Callisto Deluxe SSD 1TB Western Digital Caviar Green 
Hard DriveOptical DriveCoolingOS
1TB Samsung Spinpoint F3 Samsung DVD-Rom Zalman 9500 Windows Server 2008 
MonitorKeyboardPowerCase
17" CRT Compaq 650w Corsair Lian Li 
MouseMouse PadAudioOther
Old Logitech Allsop None - audio drivers not installed. CyberPower 810w UPS 
Other
Intel Server-class PCI-e Gigabit Network Card 
  hide details  
Reply
Minecraft Server
(21 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 950 Gigabyte X58-USB3 8400GS 24GB DDR3 G.Skill Ripjaws 
Hard DriveHard DriveHard DriveHard Drive
60GB Mushkin Callisto Deluxe SSD 60GB OCZ Vertex SSD 120GB Mushkin Callisto Deluxe SSD 1TB Western Digital Caviar Green 
Hard DriveOptical DriveCoolingOS
1TB Samsung Spinpoint F3 Samsung DVD-Rom Zalman 9500 Windows Server 2008 
MonitorKeyboardPowerCase
17" CRT Compaq 650w Corsair Lian Li 
MouseMouse PadAudioOther
Old Logitech Allsop None - audio drivers not installed. CyberPower 810w UPS 
Other
Intel Server-class PCI-e Gigabit Network Card 
  hide details  
Reply
post #5 of 13
Thread Starter 
thanks does anyone else know of any other way to do it. just curious!

IN THAT CODE ABOVE I CANT FIND WHERE YOU CHANGE THE PASSWORD
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #6 of 13
Code:
 CLS
 SCREEN 12

PRINT "PASSWORD: "
COLOR 0
INPUT PS$
I don't remember what the color number is for black, but basicaly just make it so the background and text are the same color.

Edit: That was just something I remember doing back in high school when I was learning qbasic and was a noob as everything programming.
BlackMesa
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte EVGA 9800GT 8gb G.Skill 
Hard DriveOSKeyboard
60gb SSD + 3 2gb WD Archlinux + MINIX 3 Filco w/ blue cherries 
  hide details  
Reply
BlackMesa
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte EVGA 9800GT 8gb G.Skill 
Hard DriveOSKeyboard
60gb SSD + 3 2gb WD Archlinux + MINIX 3 Filco w/ blue cherries 
  hide details  
Reply
post #7 of 13
Thread Starter 
yea but i want it so if the password is wrong it will just end the program
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #8 of 13
Thread Starter 
can you tell me where in the code that sgtspike posted i can change the password
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #9 of 13
Thread Starter 
help
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
post #10 of 13
Thread Starter 
anyone
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
P8700 - 2.53Ghz GeForce Gt220M 1GB 4 GB DDR2 320GB + WD mybook 320GB 
Optical DriveOSMonitor
DVD RW Win 7 Ultimate 64bit 16 inch 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › how do i make a password prompt in QBASIC?