BlitzCoder Essentials
•
Home Page
•
About BlitzCoder
•
Contributors
•
Terms of Use
•
Email Us
Main Areas
•
BlitzCoder Chat
•
Discussions
•
Articles/Tutorials
•
Code Database
•
Link Database
•
Showcase Area
•
Worklogs
•
Competitions
Special Areas
•
Undocumented
Other Blitz Sites
•
Blitz Basic Home
•
Blitz Showcase
•
BlitzPlay Library
Forum Login
Username:
Password:
•
Register Now!
BlitzCoder Code Archives Page
Main Codes Page
"Input function"
, by cloudnine
As recommended by Cheify ;), this function will allow you to input on both buffers, unlike the Input function that comes with Blitz
Code
Function MW_Input$(x,y,que$,ans$,r,g,b) a=GetKey() If a>=32 And a<=122 And Len(ans)<15 ans=ans+Chr$(a) EndIf If (KeyHit(14) Or KeyHit(211)) And Len(ans)>0 Then ans=Left$(ans,Len(ans)-1) Text x,y,que$ Text x+StringWidth(que$),y,ans$ If KeyDown (28) Return ans$ EndIf End Function ;Use it like this myans$=MW_Input(10,10,"What's your name?","",255,255,255)
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.
Code software created by Krylar's Kreations