Bei Enter eine Zeile Runter
Übersicht

Roma3htBetreff: Bei Enter eine Zeile Runter |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Hallo Leute. Wie kann ich eine Inputhab und dann Enter drücke das die (schreibmarke) eine zeile nach unten rückt ?? | ||
![]() |
Thunder |
![]() Antworten mit Zitat ![]() |
---|---|---|
Wenn ich dich richtig verstanden habe:
Wenn du ein Input() hast und dort was eingibst und dann Enter drückst dann geht der Cursor sowieso in die nächste Zeile. wenn du dann noch eine Zeile runter willst dann schreibst du nach Input in die nächste Zeile Print . |
||
Meine Sachen: https://bitbucket.org/chtisgit https://github.com/chtisgit |
![]() |
Silver_Knee |
![]() Antworten mit Zitat ![]() |
---|---|---|
bei Standart-input:
Repeat input(">") forever |
||
Roma3ht |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Danke genau sowas meinte ich | ||
![]() |
ozzi789 |
![]() Antworten mit Zitat ![]() |
---|---|---|
Input ist anundfürsich praktisch doch man sollte es vermeiden wen es während einem Game eingesetzt wird , da es den Programablauf aufhält
zmb ein beispiel von Triton Code: [AUSKLAPPEN] Graphics 640,480,16,1
SetBuffer BackBuffer() Global antwort$,backtime = MilliSecs(),ccolor While Not KeyDown(1) befehl$ = newinput$(100,100,300,200,">>", 10) If befehl$ = "exit" Then End Text 100,100, befehl$ Flip Cls Wend Function newinput$(x1,y1,x2,y2,frage$,maxl) a = GetKey() If a => 32 And a <= 255 And Len(antwort$) <= maxl-1 Then antwort$ = antwort$ + Chr$(a) If KeyDown(28) Then Return antwort$ If KeyDown(14) Or KeyDown(203) And Len(antwort$) > 0 And MilliSecs()-backtime > 125 Then antwort$ = Left(antwort$,(Len(antwort$)-1)) backtime = MilliSecs() End If Color 25,100,200 Rect x1, y1,x2-x1, y2-y1,1 Color 10,50,150 Rect x1, y1,x2-x1, y2-y1,0 textlange = StringWidth(antwort$) ;Blinkener Cursor texthohe = StringHeight(antwort$) fragelange = StringWidth(frage$) Color 0,50,ccolor Rect x1+28+(Len(antwort$)*8),y1+4,10,texthohe-1,1 ccolor = ccolor + 5 If ccolor = 255 Then ccolor = 100 Color 255,255,255 Text x1+3,y1+3, frage$ + " " + antwort$ End Function mfg ozzi |
||
0x2B || ! 0x2B
C# | C++13 | Java 7 | PHP 5 |
![]() |
Jo0oker |
![]() Antworten mit Zitat ![]() |
---|---|---|
Benutz doch einfach eine Gui, z.B. Xlnt II, da gibt es Textboxen...
lg Jo0oker |
||
Tehadon, das kostenlose 3D RPG
www.tehadon.de http://www.blitzforum.de/worklogs/14/ Das Abenteuer wird beginnen! |
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group