Quote: "just make it so if backspace is pressed it will only delete one char, until it is depressed, then one more when it is pressed again.
"
Ok, Ive tryed it, but dont get it entierly right. It only erase one letter
, then it stops. If you write a bit more, you can erase a letter again. This is the code:
function entry(x,y)
text x,y,string$(1)+">"
string$(1)=string$(1)+entry$()
clear entry buffer
if keystate(14)=1 and kp=0 then string$(1)=left$(string$(1),len(string$(1))-1) : kp=1
if keystate(14)=0 then kp=0
if returnkey()=1
output$=string$(1)
string$(1)=""
endif
endfunction output$
The second line with commands in the entire program looks like this
, so kp is a global. Have I done that part right (its the first time Ive made a global without using arrays)?
Any ideas?
Quote: "dont forget the wait part(in this format it does not freeze the program, just try it, it has to be in the loop though, well it did in mine atleast)"
Sry, dont want to use the "wait" command at all. Even if its at an as low level as 50, it stops the program for about 50 miliseconds, and even though thats nothing, I still dont want to do it.
Quote: "Good luck with your project too. "
As you put it: Thank you.