thanx guys. i had my algorythm written before you posted n0id but your code still teaches me something
very clean snippit. in case anyone is interested, here is what i came up with on this:
text 11,546,"---> Please type your desired user name:"
ink rgb(255,0,0),0
set text opaque
` -------------------------------------
get_key:
if scancode()=28 then goto name_complete
if scancode()=156 then goto name_complete
a$=inkey$()
do
if mousex()>485&mousey()>573&mousex()<513&mousey()<585&mouseclick()=1 then goto name_complete
if scancode()=28 then goto name_complete
if scancode()=156 then goto name_complete
if scancode()=14
if username$="" then goto get_key
username$=left$(username$,len(username$)-1)
text x,546," "
x=x-8
a$=""
sleep 150
endif
sync
if a$=""
goto get_key
else
if scancode()=28 then goto name_complete
if scancode()=156 then goto name_complete
x=x+8
if len(username$)>21 then goto name_complete
username$=username$+a$
text x,546,""+a$
sleep 125
endif
if mousex()>485&mousey()>573&mousex()<513&mousey()<585&mouseclick()=1 then goto name_complete
if scancode()=28 then goto name_complete
if scancode()=156 then goto name_complete
goto get_key
sync
loop
` -------------------------------------
name_complete:
if username$="" then goto get_key
x=366
ink rgb(255,0,255),0
sleep 100
text 11,559,"---> Please type a password for this account:"
sleep 100
ink rgb(255,0,0),0
thanx again you two!
AMD Athlon XP 2700 (2.17GHz @ 333FSB) 1GB DDR333 RAM & 256MB ATI Radeon 9600 & 2x120GB HDDs one EIDE 133 and one SATA 150 on Gigabyte 7VT600 with MS Windows XP Pro