So Leute vielleicht könnt ihr mir bischen weiterhelfen
Ich poste euch mal meinen jetzigen code der sich eigendlich nicht mehr sehr viel abweichen sollte (hoffe ich)
Anmerkung +
habe die INI whritesection bei hier wieder entfernt und nur die anzeige gepostet da das scrippt sammt meiner iniwrhite ein typischer pckiller ist
es speichert ungewollt den eintrag colange bis das scrippt munel beendet wird und dann haste plötzlich eine 69 mb grosse INI aufn desktop liegen ![]()
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotkeySet("{Esc}", "GetPos")
$IDC = 0
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Koordinatentool Alpha", 990, 700, 0, 0)
$Input1 = GUICtrlCreateInput("Name", 800, 38, 121, 21)
$Input2 = GUICtrlCreateInput("x", 800, 62, 57, 21)
$Input3 = GUICtrlCreateInput("y", 864, 62, 57, 21)
$Combo1 = GUICtrlCreateCombo("Combo1", 800, 86, 121, 25)
$Button1 = GUICtrlCreateButton("Button1", 800, 110, 123, 25, 0)
$Group1 = GUICtrlCreateGroup("Group1", 800, 142, 121, 361)
$x=GUICtrlCreateLabel ("0", 10, 10,50)
$y=GUICtrlCreateLabel ("0", 10, 30,50)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$a = GUICtrlCreateGraphic(20, 50, 760, 600)
GUICtrlSetBkColor(-1, 0xFFDEAD); Hintergrundfarbe
$y1 = 25
Do
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0xF5F5F5) ; waagrecht
GUICtrlSetGraphic(-1, $GUI_GR_MOVE, 20, $y1)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, 740, $y1)
$y1 = ($y1 + 25)
Until $y1 > 580 ; Gitter
$x1 = 30
Do
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0xF5F5F5) ; senkrecht
GUICtrlSetGraphic(-1, $GUI_GR_MOVE, $x1, 20)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, $x1, 580)
$x1 = ($x1 + 25)
Until $x1 > 740 ; Gitter
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0x000000) ; x und y achsenfarbe
GUICtrlSetGraphic(-1, $GUI_GR_MOVE, 380, 10)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, 380, 590)
GUICtrlSetGraphic(-1, $GUI_GR_MOVE, 10, 300)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, 750, 300)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func GetPos()
$a=GUIGetCursorInfo()
$a[0] = ($a[0] -400)
$a[1] = ($a[1] -350)
$a[0] = ("x= "&$a[0])
$a[1] = ("y= "&$a[1])
GUIctrlSetData($x,$a[0])
GUIctrlSetData($y,$a[1])
EndFunc
Bitte könnte mir jemand zeigen wie ich eine INI whrite hier machen kann die nicht endlos speichert sondern nur den wert der in die inputfelder gespeichert wird
Ausgabe ist ebenso noch unklar da ich möchte das die gesamte INI ausgegeben wird in das diagramm und das mit farblicher abweichung (sektion ally blau, sektion enemy rot etz)
vielleciht habt ihr ja anregungen für mich (oder ein beispiel) danke