Brauch mal hilfe bei iniwrite

08/05/2009 11:57 .MrBurns#1
Hi Leute,
ich hab mal wieder ein Problem it Autoit, und zwar will ich das er aus inputbox 1 & 2 die daten entnimmt und in ne ini reinschreibt die aufm desktop gespeichert wird.Kann mir jmd helfen weiss nich weiter -.-
Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 190, 66, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 16, 8, 137, 21)
$Input2 = GUICtrlCreateInput("Input2", 16, 32, 153, 21)
$button1 = GUICtrlCreateButton("senden",20,50,180,21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		case $button1
			GUIctrlread($Input1 & $Input2)
iniWrite("C:\user\Desktop\meineDatei.ini", "sektion2", "Schlüssel", "Das ist ein neuer Wert")

	EndSwitch
WEnd
08/05/2009 12:47 Adroxxx#2
#moved
08/05/2009 12:57 kknb#3
Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 190, 66, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 16, 8, 137, 21)
$Input2 = GUICtrlCreateInput("Input2", 16, 32, 153, 21)
$button1 = GUICtrlCreateButton("senden",20,50,180,21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		case $button1
			iniWrite("C:\user\Desktop\meineDatei.ini", "sektion2", "Schlüssel", GUICtrlRead($Input1) & GUICtrlRead($Input1))
	EndSwitch
WEnd