Password


+ Reply to Thread
Results 1 to 7 of 7

Thread: Password4153 days old

  1. #1
    Senior Member chuckieboy's Avatar
    Join Date
    Mar 2003
    Posts
    992
    Thumbs Up
    Received: 8
    Given: 17
    Total Downloaded
    520.81 MB

    0 Not allowed!

    Default Password

    This one is for Tim or any one that can help
    Tim this is your password program you wrote some time ago on the users site, At the moment it checks for 6 numbers to turn it on I've been trying to alter it so you can enter 4 or 6 numbers would this be possible ?
    I know that it is something to do with this
    Dim MAX_NO_NOS As 6 but If I store only 4 numbers in edata 4,5,6,7 nothing happens has it's looking for 6 numbers

    How could I set it up so that it knows if a 4 digit code or 6 digit code is entered


    Code:
    '-----------------------------------------------
    '    PASSWORD.BAS
    '    
    '    AUTHOR TIM BOX
    '    NOV 03
    '    
    '    FOR THE PROTON+ COMPILER (BY LES JOHNSON)
    '
    '    COMMENTS: 
    '    SET THE DEFAULT PASSOWORDS AT THE BOTTOM
    '    IN THE EDATA STATEMENTS
    '    AND THE NUMBER OF KEY PRESSES REQUIRED
    '    IN MAX_NO_NOS 
    '
    '    COPYRIGHT? WOULD YOU TAKE ANY NOTICE 
    '    IF I CLAIMED ANY?
    '    THOUGHT NOT. HAVE FUN!
    '-----------------------------------------------
    
        
        Device 16F628A
        ALL_DIGITAL = TRUE
        
           
        Dim TRUE As 1                               ' DECLARE MY STANDARD MODIFIERS
        Dim FALSE As 0
        Dim On As 1
        Dim OFF As 0
    
    '---- TIMER RELATED DIMS --------    
        Dim INPUT_TMR As Word                       ' KEY INPUT TIMER
        Dim INPUT_TMR_RUNNING As Bit                ' KEY INPUT TIMER CONTROL FLAG
        Dim LED_TMR As Byte                         ' LED TIMER
        Dim LED_TOGGLE_STATE As Bit                 ' TOGGLE STATE FLAG
        Dim LED_FORCED_OFF As Bit                   ' USED TO FORCE OF THE LED
        Dim LED_ON As Byte                          ' RELOAD STORES FOR LED TMRS
        Dim LED_OFF As Byte 
    
    '---- LED FLASH TIMER VALUES ----               ' PASSWORD ENTRY LED FLASH RATE
        Dim P_ENTRY_ON_TIME As 60                   ' 100'S SECOND THAT LED IS ON FOR
        Dim P_ENTRY_OFF_TIME As 60                  ' 100'S SECOND THAT LED IS OFF FOR
        
                                                    ' NEW PASSWORD ENTRY LED FLASH RATE
        Dim N_P_ENTRY_ON_TIME As 10                 ' 100'S SECOND THAT LED IS ON FOR
        Dim N_P_ENTRY_OFF_TIME As 10                ' 100'S SECOND THAT LED IS OFF FOR
    
        
        Dim INPUT_TMR_VALUE As 300                  ' 100'S OF A SECOND BETWEEN NUMBER ENTRYS
    
    '---- KEYBOARD RELATED DIMS -----    
        Dim KEY As Byte                             ' HOLDS THE CURRENT KEY PRESS
        Dim LAST_KEY As Byte                        ' KEY VALUE FROM LAST SCAN
        Dim KEY_STATUS As Bit                       ' SET WHEN KEY CHECK IS TRUE
        Dim NEW_KEY As Bit                          ' SET WHEN A NEW KEY IS READ 
        Dim NO_KEY As 255                           ' VALUE TO INDICATE NO KEY
        
    '---- EEPROM READ/WRITE DIMS -----    
        Dim EEPASSWORD_ADDRESS As Byte              ' EEPROM ADDRESS          
        Dim EEPASSWORD_DATA As Byte                 ' TRANSFER BYTE
        Dim OFFSET As Byte                          ' OFFSET 
        
    '---- PASSWORD, MODE DIMS AND ALIAS'S --    
        Dim MODE As Byte                            ' CURRENT MODE
        
        Dim NO_PASSWORDS As 2
        Dim MAX_NO_NOS As 6                         ' NUMBER OF CHRS IN PASSWORD 
        Dim PASSWORD_POINTER As Byte                ' POINTER TO NEXT CHR IN PASSWORD
        Dim PASSWORD As Byte                        ' PASSWORD STATUS RETURNED IN THIS
        Dim PASSWORD_STR[MAX_NO_NOS] As Byte        ' PASSWORD COLLECTOR STRING
        Dim PASSWORD_OK As Bit                      ' FLAG TO INDICATE IF PASSWORD MATCHED
        Dim PASSWORD_ENTERED As Bit                 ' INDICATES WHEN THE FULL PASSWORD HAS BEEB ENTERED
        Dim STANDARD_PASSWORD_ADDRESS As MAX_NO_NOS ' THE START ADDRESS OF THE STANDARD PASSWORD
        
    
        Dim STANDBY As 255                          ' STANDBY MODE
        Dim PASSWORD_ENTRY As 254                   ' PASSWORD ENTRY MODE
        Dim NEW_PASSWORD_ENTRY As 0                 ' NEW PASSWORD ENTRY MODE
        Dim NORMAL_ENTRY As 1                       ' PASSWORD VALUE RETURNED IF MATCH IS MADE WITH NORMAL PASSWORD
        Dim MASTER_PASSWORD As 0                    ' PASSWORD VALUE RETURNED IF MATCH IS MADE WITH MASTER PASSWORD
    
    '---- HARDWARE PORT ALIAS'S --------------    
        Dim LED As PORTA.0
        Dim RELAY As PORTA.1 
        Dim RELAY_ON_TIME As 10000    
        
    '---- INTERRUPT CONTROL DIMS -------------    
        Dim GIE As INTCON.7
        Dim TIMER1REG As TMR1L.Word
        Symbol FUDGE_FACTOR = 7
        Symbol TMR1_VAL =((65536)-(XTAL*2500))+FUDGE_FACTOR ' CALCULATE OSC OFFSET VALUES FOR 100HZ INTERRUPT
        
        ON_INTERRUPT INTERRUPT_ROUTINE              ' WHERE TO GO ON AN INTERRUPT
    
        GoTo START                                  ' JUMP OVER ALL SUBS
    
    '-----------------------------------------------
    ' INTERRUPT ROUTINE TO SERVICE THE TIMERS AND 
    ' LED FLASHES
    '
    '-----------------------------------------------
        
    INTERRUPT_ROUTINE:
    
        Clear T1CON.0                               ' STOP TMR1
        TIMER1REG = TIMER1REG + TMR1_VAL            ' LOAD TMR1
        Set T1CON.0                                 ' START TMR1
       
        If INPUT_TMR_RUNNING = TRUE Then            ' IS THIS TIMER RUNNING
         	Dec INPUT_TMR 			                ' DEC THE TIMER
         	If INPUT_TMR = 0 Then INPUT_TMR_RUNNING = FALSE ' IF WE ARE AT ZERO INDICATE SO
        EndIf
        
        Dec LED_TMR                                 ' DEC THE TIMER
        If LED_TMR = 0 Then                         ' IF ZERO
            If LED_TOGGLE_STATE = TRUE Then ' TOGGLE THE STATE
                If LED_FORCED_OFF = FALSE Then LED = On
                LED_TMR = LED_ON                    ' LOAD THE TIMER 
                LED_TOGGLE_STATE = FALSE            ' TOGGLE STATE
            Else 
                LED = OFF
                LED_TMR = LED_OFF                   ' LOAD THE TIMER 
                LED_TOGGLE_STATE = TRUE             ' TOGGLE STATE
            EndIf
        EndIf
    
        Clear PIR1.0				                ' CLEAR TMR1 INTERRUPT FLAG
    
        Context Restore	                            ' END OF INTERRUPT ROUTINE
    
    
    '-----------------------------------------------
    ' SCAN THE KEYBOARD AND CHECK FOR SET KEY PRESSES 
    '
    '-----------------------------------------------
    
    KEY_SCAN:
        KEY = InKey			                        ' SCAN THE KEYPAD 
        KEY = LookUp KEY, [1,2,3,255,4,5,6,NO_KEY,7,8,9,NO_KEY,"*",0,"#",NO_KEY,NO_KEY]     
        If KEY = NO_KEY Then 
            NEW_KEY = TRUE
            GoTo KEY_EXIT		                    ' NEW KEY IS ONLY CLEARED BY A NO_KEY BEING SEEN
        EndIf
        If NEW_KEY = TRUE Then	                    ' IF THIS IS THE FIRST TIME WE HAVE SEEN 
            If KEY <> LAST_KEY Then DelayMS 50      ' THIS KEY, DE-BOUNCE 
            EndIf                             
    KEY_EXIT:  
        LAST_KEY = KEY		' SAVE THE KEY VALUE
        Return
    
        
    CHK_KEY_0_9:
        KEY_STATUS = FALSE		' PRECONDITION THE RESULT
        If NEW_KEY = TRUE Then		' IF THIS PRESS IS NEW TO US
            If KEY >= 0 Then		' IF WE ARE IN THE RANGE 0 - 9
                If KEY <= 9 Then
                   KEY_STATUS = TRUE	' RESULT IS TRUE
                   NEW_KEY = FALSE	' LATCH THE KEY AS BEING READ
                   Return
                EndIf
            EndIf
        EndIf
        Return
         
    CHK_KEY_CANCEL:
        KEY_STATUS = FALSE		    ' PRECONDITION THE RESULT
        If NEW_KEY = TRUE Then		' IF THIS PRESS IS NEW TO US
            If KEY = "#" Then		' IF WE SEE THE "#" KEY
                KEY_STATUS = TRUE	' RESULT IS TRUE
                NEW_KEY = FALSE	    ' LATCH THE KEY AS BEING READ
                Return
            EndIf
        EndIf
        Return 
    
    '-----------------------------------------------
    ' LOAD THE PASSWORD ARRAY AND RESET WHEN INKEY TIMER
    ' TIMES OUT
    ' ALSO RE-LOADS INKEY TIMER ON EVERY VALID KEY PRESS
    '-----------------------------------------------
    
    PASSWORD_ACCUMULATOR:
    
        GoSub CHK_KEY_0_9                           ' CHECK FOR KEYS 0 - 9
        If KEY_STATUS = TRUE Then                   ' DID WE SEE ONE?     
            GoSub LOAD_INPUT_TIMER                  ' YES SO RELOAD INPUT TIMER
            PASSWORD_STR[PASSWORD_POINTER] = KEY    ' SAVE THE ENTERED NUMBER IN THE ARRAY
            Inc PASSWORD_POINTER                    ' UP THE POINTER
            If PASSWORD_POINTER > MAX_NO_NOS-1 Then ' HAVE WE EXCEEDED THE MAXIMUM NUMBER OF CHARS
                PASSWORD_ENTERED = TRUE             ' YES SO THATS A WHOLE PASSWORD
            EndIf
        EndIf                                       ' NO SO BACK TO STANDBY MODE
           
        Return                                      ' ALL DONE SO RETURN
    
    '-----------------------------------------------
    ' COMPARES THE ENTERED PASSWORD WITH THAT IN EEPROM
    ' INDICATES RESULT WITH FLAG AND IF A MATCH IS FOUND
    ' GENERATES A VALUE TO INDICATE WHICH PASSWORD
    '-----------------------------------------------
    PASSWORD_COMPARE:
        EEPASSWORD_ADDRESS = 0
        Repeat                                      ' CHECK ALL THE PASSWORDS STORED
           PASSWORD_OK = TRUE                       ' WE NEED TO PRE LOAD THIS FLAG FOR THE ROUTINE TO WORK    
           Clear OFFSET
           Repeat                                                  ' LOOP THROUGH ALL THE CHARS OF THE NUMBER
               EEPASSWORD_DATA = ERead EEPASSWORD_ADDRESS + OFFSET  ' FIRST READ IN THE EEPROM STORE PASSWORD
               If PASSWORD_STR[OFFSET] <> EEPASSWORD_DATA Then     ' THEN COMPARE IT AGAINST THE ONE ON OFFER
                   PASSWORD_OK = FALSE                             ' THIS CHAR DOES NOT MATCH SO CHECK AGAINST NEXT ONE
               EndIf
               Inc OFFSET
           Until OFFSET = MAX_NO_NOS
           If PASSWORD_OK = TRUE Then                              ' A MATCH HAS BEEN FOUND! 
              PASSWORD = EEPASSWORD_ADDRESS / MAX_NO_NOS           ' WORK OUT A NUMBER VALUE FOR WHICH PASSWORD PASSED I.E. MASTER OR USER 
              Return    
           EndIf                    
           EEPASSWORD_ADDRESS = EEPASSWORD_ADDRESS + MAX_NO_NOS  
        Until EEPASSWORD_ADDRESS = MAX_NO_NOS * NO_PASSWORDS
        Return                                                     ' IF WE GET TO HERE THERE WAS NO MATCH MATCHED
                      
    
        
    '-----------------------------------------------
    ' PERFORMS AN UPDATE ON TIMERS FLAGS ETC REQUIRED
    ' WHEN EVER A MODE CHANGE IS REQUIRED
    '
    '-----------------------------------------------
    MODE_CONTROL:
       
       GIE = 0 					                    ' TURN OFF GLOBAL INTERRUPTS 
       While GIE = 1 : GIE = 0 : Wend 	            ' AND MAKE SURE THEY ARE OFF    
       
       If MODE = PASSWORD_ENTRY Then
           LED_FORCED_OFF = FALSE                   ' ENABLE THE LED TO LIGHT
           LED_ON = P_ENTRY_ON_TIME                 ' LOAD THE RELOAD VARS WITH THE                
           LED_OFF = P_ENTRY_OFF_TIME               ' PASSWORD ENTRY LED FLASH TIMES
           LED_TMR = 1                              ' FORCE A RELOAD NEXT INTERRUPT 
           LED_TOGGLE_STATE = 1                     
       EndIf
    
       If MODE = NEW_PASSWORD_ENTRY Then
           LED_ON = N_P_ENTRY_ON_TIME               ' LOAD THE RELOAD VARS WITH THE             
           LED_OFF = N_P_ENTRY_OFF_TIME             ' NEW PASSWORD ENTRY LED FLASH TIMES 
           LED_TMR = 1                              ' FORCE A RELOAD NEXT INTERRUPT   
           LED_TOGGLE_STATE = 1                     ' FORCE THE LED ON STRAIGHT AWAY  
       EndIf   
    
       If MODE = STANDBY Then
           LED_FORCED_OFF = TRUE
           LED_ON = 1                               ' LOAD THE RELOAD VARS WITH THE 
           LED_OFF = 1                              ' STANDBY LED FLASH TIMES
           LED_TMR = 1                              ' FORCE A RELOAD NEXT INTERRUPT
           INPUT_TMR_RUNNING = FALSE
       EndIf        
       GIE = 1 					                    ' TURN ON GLOBAL INTERRUPTS AGAIN
       GoSub CLEAR_PASSWORD_BUFFER                  ' ALWAYS SEEMS TO BE NEEDED    
       Return
    
    '-----------------------------------------------
    ' SUB TO RESET TO STANDBY AS USED MOST OFTEN
    '
    '
    '-----------------------------------------------
    SETMODE_STANDBY:
        MODE = STANDBY                        
        GoSub MODE_CONTROL
        Return
    
    '-----------------------------------------------
    ' LOAD THE INPUT TIMER WITH IT'S TIME OUT VALUE
    ' 
    '
    '-----------------------------------------------
    LOAD_INPUT_TIMER:
        GIE = 0 					                    'TURN OFF GLOBAL INTERRUPTS 
        While GIE = 1 : GIE = 0 : Wend 	                ' AND MAKE SURE THEY ARE OFF 
        INPUT_TMR = INPUT_TMR_VALUE                     ' RELOAD THE INPUT TIMER
        INPUT_TMR_RUNNING = TRUE                        ' MAKE SURE IT IS RUNNING
        GIE = 1                                         ' TURN THE INTERRUPTS BACK ON 
        Return
    
       
    '-----------------------------------------------
    ' CLEAR THE PASSWORD BUFFER AND RESET POINTER
    '
    '
    '-----------------------------------------------
    CLEAR_PASSWORD_BUFFER:
       For PASSWORD_POINTER = 0 To MAX_NO_NOS       ' ROUTINE TO CLEAR THE PASSWORD ARRAY
            Clear PASSWORD_STR[PASSWORD_POINTER]    ' CLEAR THE PASSWORD BUFFER
       Next     
            Clear PASSWORD_POINTER                  ' RESET THE POINTER   
       Return
           
    '-----------------------------------------------
    ' THIS ROUTINE IS JUMPED TO WHEN A NORMAL PASSWORD
    ' IS ENTERED. CONTROL LOCK OR WHAT EVER YOU WANTED 
    ' THE UNIT FOR IN HERE
    '-----------------------------------------------
    
    NORMAL_ENTRY_ROUTINE:
        GoSub SETMODE_STANDBY                       ' WE WILL USE STANDBY MODE
        RELAY = On                                  ' AS THAT LEAVES THE LED OFF
        DelayMS RELAY_ON_TIME                       ' OPEN THE DOOR LOCK OR WHATEVER FOR THIS LONG
        RELAY = OFF
        PASSWORD_OK = FALSE  
        GoTo MAIN_LOOP
    
    '-----------------------------------------------
    ' WHEN MASTER MODE PASSWORD IS ENTERED YOU ENABLE
    ' THE NORMAL PASSWORD TO BE CHANGED
    '
    '-----------------------------------------------
    
    NEW_PASSWORD_ENTRY_ROUTINE:
        MODE = NEW_PASSWORD_ENTRY                   ' INDICATE YOU ARE IN THIS MODE BY THE
        GoSub MODE_CONTROL                          ' LED FLASH RATE
        GoSub LOAD_INPUT_TIMER                      ' HAVE TO LOAD THE INPUT TIMER
            
    NEW_PASSWORD_ENTRY_LOOP:
       
        GoSub KEY_SCAN                              ' IMPORTANT TO SCAN THE KEYBOARD
        
        GoSub PASSWORD_ACCUMULATOR                  ' GET THE PASSWORD
    
        If INPUT_TMR_RUNNING = FALSE Then           ' HAS THE INPUT TIMER TIMED OUT
            GoSub SETMODE_STANDBY                   ' YES SO RETURN TO STANDBY MODE
            GoTo MAIN_LOOP                          ' AND BACK TO NORMAL RUNNING
        EndIf
        
        If PASSWORD_ENTERED = TRUE Then             ' HAS ALL THE NUMBERS BEEN ENTERED
            GoSub  PASSWORD_COMPARE                 ' YES SO COMPARE THE PASSWORD
            PASSWORD_ENTERED = FALSE                ' CLEAR THE FLAG
            If PASSWORD_OK = FALSE  Then            ' ONLY PROCCED IF ITS A NEW PASSWORD
               Clear OFFSET
               Repeat                               ' WRITE THE NEW PASSWORD IN
                   EWrite STANDARD_PASSWORD_ADDRESS + OFFSET,[PASSWORD_STR[OFFSET]]
                   Inc OFFSET
               Until OFFSET = MAX_NO_NOS
            EndIf
            GoSub SETMODE_STANDBY                   ' WHAT EVER HAPPENS BACK TO STANDBY MODE
            GoTo  MAIN_LOOP                         ' AND RUN AS NORMAL
        EndIf
    
        GoTo NEW_PASSWORD_ENTRY_LOOP                ' ROUND THE LOOP AGAIN
    
    
    '-----------------------------------------------
    ' INITALISATION COMMANDS
    '-----------------------------------------------     
    START:
    	T1CON = %00000000                           ' Set up Tmr1 to have 1:1 prescaler and act as a timer
    	PIR1.0 = 0                                  ' Clear Tmr1 interrupt flag
    	INTCON = %11000000                          ' Global and Peripheral interrupts on
    	PIE1.0 = 1                                  ' Enable Tmr1 as peripheral interrupt source
    	T1CON.0 = 1
        Clear
        TRISA = %11111100
        GoSub SETMODE_STANDBY
    
        
    '----------------------------------------------- 
    ' MAIN LOOP
    ' CALLS THE KEYBOARD TO BE SCANNED 
    ' WAITS FOR A KEY PRESS BEFORE INITIATING 
    ' THE PASSWORD TO BE COLLECTED
    ' WHEN THE WHOLE PASSWORD IS ENTERED
    ' CHECKS FOR CORRECT RESULT AND DECIDES WHAT TO DO
    ' ALSO ENABLES THE CANCELATION OF THE PASSWORD
    ' CURRENTLY BEING ENTERED 
    '----------------------------------------------- 
    
    MAIN_LOOP:
    
        GoSub KEY_SCAN
     
        If MODE = STANDBY Then                      ' IF WE ARE IN STANDBY MODE
            GoSub CHK_KEY_0_9                       ' HAS A KEY BEEN PRESSED
            If KEY_STATUS = TRUE Then               ' YES SO WE ENTER PASSWORD ENTRY MODE
                MODE = PASSWORD_ENTRY               ' 
                GoSub MODE_CONTROL
                NEW_KEY = TRUE                      ' SET THE NEW KEY FLAG SO THE
                GoSub LOAD_INPUT_TIMER              ' HAVE TO LOAD THE INPUT TIMER TO START WITH
                GoSub PASSWORD_ACCUMULATOR          ' PASSWORD ACCUMULATOR ADDS KEY PRESS'S STRAIGHT AWAY
            EndIf       
        Else                                        ' WE ARE NOT IN STANDBY SO ADD SOME KEY PRESSES
            If INPUT_TMR_RUNNING = FALSE Then       ' HAS THE INPUT TIMER TIMED OUT
                GoSub SETMODE_STANDBY               ' YES SO RETURN TO STANDBY MODE
                GoTo MAIN_LOOP                      ' AND BACK TO NORMAL RUNNING
            EndIf    
            GoSub PASSWORD_ACCUMULATOR      
        EndIf
        
        If PASSWORD_ENTERED = TRUE Then             ' HAVE ALL THE NUMBERS BEEN ENTERED
            GoSub  PASSWORD_COMPARE                 ' YES SO COMPARE PASSWORD
            PASSWORD_ENTERED = FALSE                ' CLEAR THE FLAG
            If PASSWORD_OK = TRUE  Then             ' DID IT MATCH?
                GoSub MODE_CONTROL                  ' YES SO CONFIGURE SYSTEM TO THIS NEW PASSWORD LEVEL
                GoSub CLEAR_PASSWORD_BUFFER         ' THEN JUMP TO APPROPRIATE ROUTINE
                If PASSWORD = NORMAL_ENTRY Then GoTo NORMAL_ENTRY_ROUTINE   ' NORMAL ENTRY ROUTINE
                If PASSWORD = NEW_PASSWORD_ENTRY Then GoTo NEW_PASSWORD_ENTRY_ROUTINE
            Else       
                GoSub SETMODE_STANDBY               ' PASSWORD FAILED SO BACK TO STANDBY MODE
            EndIf
        EndIf
         
         
        GoSub CHK_KEY_CANCEL
        If KEY_STATUS = TRUE Then                   ' IF THE CANCEL KEY IS PRESSED 
            GoSub SETMODE_STANDBY                   ' RESET MODE TO STANDBY       
        EndIf 
    
        GoTo MAIN_LOOP                              ' ROUND AND ROUND WE GO
        
        End
        
    '---------------------------------------------------
    ' PROGRAM TIME PASSWORD SETTINGS
    '
    '---------------------------------------------------  
    EData 1,2,3,4,5,6                               ' DEFAULT MASTER PASSWORD
    EData 2,3,4,5,6,7                               ' DEFAULT NORMAL PASSWORD
    Steve

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    As it stands with out using an enter key it is not possible
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Senior Member chuckieboy's Avatar
    Join Date
    Mar 2003
    Posts
    992
    Thumbs Up
    Received: 8
    Given: 17
    Total Downloaded
    520.81 MB

    0 Not allowed!

    Default

    I can add the enter key part so how could i do it I've tried lots of ways and i know it just might be simple do but it's got me stumped
    Steve

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    You would have to change so much your better of stating from scratch
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Senior Member chuckieboy's Avatar
    Join Date
    Mar 2003
    Posts
    992
    Thumbs Up
    Received: 8
    Given: 17
    Total Downloaded
    520.81 MB

    0 Not allowed!

    Default

    I see, I thought you said with out a enter is could not be done know your saying start from stratch, Em if you did not want to help then just say so.

    I'll have another look, I've that that code you sent me before I'll see if I can find that out and see how that works, If I remember rightly that worked on the same idea but you had to press the # key first then the number to turn it on. I'll have to dig it out if I can remember where it is.
    Steve

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,676
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default

    You asked if you could enter either 4 or 6 numbers I answered that with out using an enter key its not possible

    Really its a pretty simple answer to get your head around

    You want the unit to figure out if if you entered 1234 it could differentiate it from you entering 123456. How is it to know if 1234 was a password and you were actually going to write 123456!

    Unless you use an enter key to say I have entered all the numbers I intend to and it can count them and say 4 keys were enter and look in the 4 char list as opposed to the 6 char list.

    Its not hard to figure that out.

    So having pointed out you need an enter key I then pointed out that the code as it stands will not work with out a lot of work and as you never wrote the code in the first place and its very wordy you would have a lot of problems. Far better you do it your self and understand what happening.

    As for not wanting to help you!!!! Perhaps you think I should be saying to my family sorry I can't take you shopping or to the pictures because some bloke from the forum is expecting me to spend half the day writing code for him?
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    Senior Member chuckieboy's Avatar
    Join Date
    Mar 2003
    Posts
    992
    Thumbs Up
    Received: 8
    Given: 17
    Total Downloaded
    520.81 MB

    0 Not allowed!

    Default

    Tim
    I never asked you to write the code for me. I would never exspect that from anybody, Just some pointers would of helped, In your third reply you gave a bit more detial, Why could of you not just said this in your first post, that would of helped I then could of gone away and tried your suggestions and then seen how I got on and come back and posted some more code for some more pointers if needed,one thing to REMEMBER we are not all like you (a boffin) or has good has you, most of us are still leaners and learn new stuff everytime. I got my SD data logger working great with very little help from anybody from here apart from Steve which I did find out myself bfore steve got back to me. I do my best and fumble my way through some stuff I can get to work other stuff not but I never give up not like some



    So I'm now just some bloke from the forum now ?

    I have found that code you wrote the first time which works well and I've aslo found the HTM code out which I can see about using bits of it.

    I'll let you know how I get on has I know, has I will get little help from here or you
    Steve

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Password website
      By Frizie in forum Website / Forum Issues
      Replies: 6
      Last Post: 17th September 2018, 11:51
    2. Forum Password
      By Mark Rodgers in forum The Lounge
      Replies: 2
      Last Post: 20th September 2017, 23:57
    3. password controlled auto dailler
      By africanups in forum Absolute Beginners Section
      Replies: 5
      Last Post: 9th May 2013, 07:49
    4. [SOLVED !] Keypad, password and array trouble
      By marcferr77 in forum Proton Plus Compiler v3
      Replies: 0
      Last Post: 11th April 2008, 01:08
    5. Password protect
      By joesaliba in forum Proton Plus Compiler v3
      Replies: 6
      Last Post: 1st September 2005, 05:39

    Members who have read this thread since 1st December 2019, 03:14 : 0

    Actions :  (Set Date)  (Clear Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts