| |
|
|
Torsten | Hello I mach it time short and post time whom link here circa my trouble not again of in front To erläuter (hope the goes io?) [...]
I hope the me here of/ one so one program programieren can, if I the moreover try .lasts it too long(then can it its I Games the game not any more)
therefore Please I circa Help
mfg Torsten |
|
|
| |
|
|
|
Rolf Koch | Hallöchen,
I Have time short something written, what functions ought to. much is verkürzbar, but so You it hopefully understand Have I step for step worked. but denk Please on it: not simply of us here a code pretending let and so is everything Done, separate too try To understand what there standing and weiterentwickeln (Perhaps even improve, there this How normally quick runtergetippt watts and certainly here and there Improvements needed) CompileMarkSeparation $P+
SetErrorLevel 0
********************** HINWEISE ********************************
CODE ERZEUGT MIT ROKOS OBJECT CREATOR 4.3a
DATUM 29.01.2006 um 11:07 Uhr
VERWENDETE PROFANVERSION IST 8.0-NT XPROFAN
CODE ERSTELLT UNTER WINDOWS XP
!!! Dieser Code wird von Roc immer neu erzeugt !!!
!!! Erst bearbeiten, wenn alle Objekte erzeugt wurden !!!
!!! Verändern Sie ggf. feste Pfade in variable Pfade !!!
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
DECLARE Ausgabe&,Sortieredit&
DECLARE InsEdit&,X%
DECLARE InText&,ZEILE$,ZEILE2$
DECLARE Programmende&,Y%
Declare Ausgabedatei$
WINDOWSTYLE 63
WINDOWTITLE "Game Tool"
WINDOW 171,165-598,350
SETTRUECOLOR 1
DECLARE ENDE%
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
SETDIALOGFONT 1
Die Textdatei angeben:
Ausgabedatei$="C:\GAMETOOL.TXT" Beispiel
PROC ENTFERNE_BUTTONS
PARAMETERS Z$
WHILE INSTR("[",Z$)
z$=del$(z$,instr("[",z$), instr("]",z$)-instr("[",z$)+1)
WEND
return z$
ENDPROC
Alles aufbereiten und in die Ausgabe:
PROC PUTTOEDIT
if mid$(getclip$(),1,4) = "5x34" nur zulassen wenn Daten im Clipboard den richtigen entsprechen
sendmessage(Ausgabe&,$0184,0,0) liste zuerst löschen
SETTEXT Sortieredit&,getclip$()
CLEAR X%
WHILENOT X% > GetLineCount(Sortieredit&)
ZEILE$=GetLine$(Sortieredit&,X%)
IF mid$(zeile$,1,4) = "5x34"
ZEILE2$=trim$(ZEILE$)
ENTFERNE_BUTTONS ZEILE2$
Zeile2$ = $(0)
IF mid$(GetLine$(Sortieredit&,X%+1),1,4) = "5x34"
addstring(Ausgabe&,zeile2$)
Endif
ELSE
ZEILE2$=ZEILE2$+" "+ZEILE$
ENTFERNE_BUTTONS ZEILE2$
Zeile2$ = $(0)
addstring(Ausgabe&,zeile2$)
if mid$(GetString$(Ausgabe&,GetCount(Ausgabe&)-2),1,6) = mid$(zeile2$,1,6)
DeleteString(Ausgabe&,GetCount(Ausgabe&)-2)
endif
ENDIF
inc x%
WEND
enablewindow InText&,1
Else
addstring(Ausgabe&,"Falsches Datenformat!")
Endif
ENDPROC
Ausgabe in Textdatei schreiben:
PROC PUTTOTEXT
ASSIGN #1,AUSGABEDATEI$
REWRITE #1
clear x%
Whilenot x% > GetCount(Ausgabe&)
Print #1,GetString$(Ausgabe&,x%)
inc x%
Wend
CLOSE #1
Messagebox("Daten wurden in "+Ausgabedatei$+" gespeichert!","Gespeichert",0)
ENDPROC
Dieses Multiedit um vorher zu sortieren:
Sortieredit&=CREATE("MULTIEDIT",%HWND,"",0000,0000,0000,0000)
Ausgabe& = CREATE("LISTBOX",%HWND,"",0006,0006,0576,0265)
InsEdit& = CREATE("BUTTON",%HWND,"Daten ins Edit",0010,0281,0089,0030)
InText& = CREATE("BUTTON",%HWND,"Daten in Textdatei",0110,0281,0106,0030)
enablewindow InText&,0
Programmende& = CREATE("BUTTON",%HWND,"Ende",0463,0281,0116,0030)
SETFOCUS(%HWND)
WHILENOT ENDE%
WAITINPUT
If @EQU(%KEY,2)
LET ENDE%= 1
ELSEIF @EQU(%KEY,4)
ELSEIF GETFOCUS(Ausgabe&) MULTIEDIT
ELSEIF GETFOCUS(InsEdit&) BUTTON
Getmessage
PUTTOEDIT
ELSEIF GETFOCUS(InText&) BUTTON
Getmessage
PUTTOTEXT
ELSEIF GETFOCUS(Programmende&) BUTTON
ENDE%=1
ENDIF
WEND
hope it meets To, I there zusammengekloppt have important here's too the stature, How You it pretended have.
Nachtrag: Have strain yet seen, the itself 5x34 change can. there müsstest You you still what consider or comment simply time as data come about. means, it can only with the pretended data in the Profan.de Forum as it here now is functions. means really To strain!!!
Rolf |
|
|
| |
|
|
|
Torsten | Hello Rolf,
first thanks for your speedy Help
To explanation:
The data can itself Change start with 1x1x1 and can gehn To 17x500x25
The data overdo I from the html-Page the games (there there a Coordinates overview)
anhand the data crowd wished I these overview peer copy&paste into program loading
there But a html Page comes are The data confusion at present (about so): [quote:45ed5824ec] 12x45x1 12x45x2 plani1 [deal] 12x45x3 bunny 1035.000 [Spionagesonde] [deal] [Observerdrohne] 12x45x4 ABC-Ally [ABC] Eisman 5236.590 [deal] 12x45x5 12x45x6 12x45x7 plani [RtF] Bluni 12693.075 [name Change] 12x45x8 12x45x9 [/quote:45ed5824ec] [quote:45ed5824ec]geordnet: 12x45x1 12x45x2 plani1 [deal] 12x45x3 bunny 1035.000 [Spionagesonde] [forward line] [deal] [Observerdrohne] 12x45x4 ABC-Ally [ABC] Eisman 5236.590 [deal] 12x45x5 12x45x6 12x45x7 plani [RtF] Bluni 12693.075 [name Change] 12x45x8 12x45x9[/quote:45ed5824ec] [quote:45ed5824ec]weight the individual important data (example) :
3x23x24 Global [-AZ-] Peterle 2973.340
zerlegt to weight: 3x23x24 = Coordinates
Global = Planiname
[-AZ-] = ally
Peterle = name the spielers
2973.340 = spots[/quote:45ed5824ec] from the program out ought to to the ordnen to ally , Coordinates bezw Search to names and Coordinates should possible his
by the Program must one not online first any syteme leaf through if one defined Coordinates seek and would the game heavy vereinfachen
hope its verständlich and helps a little bit
mfg Torsten |
|
|
| |
|
|
|
Rolf Koch | naja Torsten, then are we Yes on the richigen lane been. you should now: - instead of z.B. Mid$ and 5x34 try by instr(...) To look whether the x twice vorkommt and then ought to it so klappen. Desweiteren on the Schluss try The data so a row To filtern, that it in the stature vorliegt, How You it gladly want.
Please something Eigeninitiative. I could it former neither and Have it through LearningbyDoing learnt and not through say: writes me of/ one one Program.
Rolf |
|
|
| |
|
|