| |
|
|
 Johannes Meyer | Hey ho,
folgende sache Yo sería gerne Translate$ con zwei Suchmustern uso. Translate se el strings 11 y 12 ersetzten. debería eigentlich con @Conjunto("RegEx", 1) con ausdrücken welche una continuación de Match$ tomar kann trabajo.
desafortunadamente funktioniert el no tal vez ha hier sí wer una idee wo mein Fehler liegt :/
eventuell va el con el Suchstring sólo en match$ qué echt ärgerlich wäre ziel es el él en 5 x 1 Treffer meldet 
hier el Code. KompilierenMarcaSeparaciónDeclare inhalt%[15],inhalt$
var found$="11"'testen mit [11-12] oder [11|12]
@Set("RegEx", 1)
cls
inhalt%[1]=1
inhalt%[4]=1
inhalt%[7]=11
inhalt%[10]=12
inhalt%[13]=1
Proc Check
WhileLoop 1,12,1
Print @Translate$(inhalt$,found$,@Str$(&Loop))
Sleep 100
'Reihe A
If @Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
If @Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
If @Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
If @Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)+","+@Str$(&Loop)= @Translate$(inhalt$,found$,@Str$(&Loop))
Print "treffer"
EndIf
EndWhile
EndProc
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])
Check()
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])+","+@Str$(inhalt%[7])
Check()
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])+","+@Str$(inhalt%[7])+","+@Str$(inhalt%[10])
Check()
inhalt$ = @Str$(inhalt%[1])+","+@Str$(inhalt%[4])+","+@Str$(inhalt%[7])+","+@Str$(inhalt%[10])+","+@Str$(inhalt%[13])
Check()
WaitInput
Würd Notifiqueme de hilfe muy freuen ;) |
|
|
| Gruß, Johannes
Programmiert in Profan X2 (Release) Gravity the Game | 07.12.2012 ▲ |
|
|
|
|
 Jörg Sellmeyer | |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 08.12.2012 ▲ |
|
|
|
|
 Johannes Meyer | Gracias sólo veces para deine Antwort.
Actualización: Yo schau mal si me Ejemplo de dir weiterhilft y qué lo genau macht.
update2: scheint una Lösungsweg a ser muss nun el ansatz todavía oben en el código einbinden y hoffen el lo entonces así klappt como gewollt ;) |
|
|
| |
|
|
|
 Johannes Meyer | fehler gefunden de Andreas Miethe, funktioniert nun como gewollt.
en lugar de [11|12] muss Yo (11|12) nehmen , el eckige klammer war falso.
Thema kann entonces geschlossen voluntad. |
|
|
| |
|
|