hallo ich will für mein spiel etwas basteln das man zb codes(ja ich bin ein cheater^^) speichern kann und das man die später auslesen kann einmal für cheats und einmal für eine notiz ich hab makiert wo es probleme gibt
C
#include <GUIConstants.au3>
#include <process.au3>
Opt('GUIOnEventMode', 1)
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Kotor 1 auto cheat tool", 625, 608, 193, 125)
$noobi = GUICtrlCreateLabel("Bitte drücke einen Knopf = Please choose a button", 8, 0, 606, 17)
$Button1 = GUICtrlCreateButton("Auto Kotor1 Cheats", 8, 32, 161, 33, 0)
$Button2 = GUICtrlCreateButton("Auto Kotor 2 Cheats", 448, 32, 161, 33, 0)
$Date1 = GUICtrlCreateDate("2009/04/03 18:42:36", 176, 568, 273, 33)
$Button3 = GUICtrlCreateButton("Schreib dir eine Notiz =Write a note", 184, 528, 257, 33, 0)
$Button4 = GUICtrlCreateButton("Der Sinn dieses Tools", 184, 32, 249, 33, 0)
$Button5 = GUICtrlCreateButton("Anleitung = How to", 184, 72, 249, 33, 0)
GUICtrlSetOnEvent( $Button3 , '_Notiz')
GUICtrlSetOnEvent( $Button4 , '_Sinn')
GUICtrlSetOnEvent( $Button5 , '_How')
GUICtrlSetOnEvent( $Button2 , '_kotor2')
GUICtrlSetOnEvent( $Button1 , '_kotor1')
$Button6 = GUICtrlCreateButton("Les deine Notiz = Read you note", 216, 488, 193, 33, 0)
$Button7 = GUICtrlCreateButton("Beenden = Exit", 136, 112, 353, 33, 0)
$Button10 = GUICtrlCreateButton("Do you want to learn AutoIt ?", 136, 232, 353, 33, 0)
$Button11 = GUICtrlCreateButton("Schreib deinen Code = Add your Code", 184, 272, 249, 33, 0)
GUICtrlSetOnEvent( $Button6 , '_Read')
GUICtrlSetOnEvent( $Button7 , '_exit')
$Button8 = GUICtrlCreateButton("http://knightsoftheoldrepublic.filefront.com", 184, 152, 249, 33, 0)
$Button9 = GUICtrlCreateButton("lucasfiles.com", 184, 192, 249, 33, 0)
GUICtrlSetOnEvent( $Button8 , '_knight')
GUICtrlSetOnEvent( $Button9 , '_lucas')
GUICtrlSetOnEvent( $Button10 , '_autoit')
GUICtrlSetOnEvent( $Button11 , '_new')
$Button12 = GUICtrlCreateButton("Starte deinen Code = Start your code", 184, 312, 249, 33, 0)
GUICtrlSetOnEvent( $Button12 , '_startnew')
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
func _startnew()
;Hier weiß ich nich weiter man soll codes( von func _new() ) auslesen können
endfunc
func _autoit()
_RunDOS("start autoit.de")
endfunc
func _new()
;Hier weiß ich nich was zu tun ist hier soll man neue codes reinschreiben am ebsten beliebig viele aber nur auf wunsch
endfunc
func _lucas()
_RunDOS("start http://lucasfiles.com")
endfunc
func _knight()
_RunDOS(" start http://knightsoftheoldrepublic.filefront.com")
endfunc
func _exit()
exit
endfunc ;;;
;;;; Hier komm ich auch nich weiter ich hab ka von inis hab noch nie welche benutzt hier soll man eine notiz schreiben und sie später zb 1nen tag später auslesen können aber wie??
func _notiz()
$D = InputBox( "schreib deinen code rein", "hier schreib deinen code rein")
iniwrite("das kommt rein","ka was soll das ein","Notiz = Note:",$D)
endfunc
func _read()
$lol = iniread( "das kommt rein","ka was soll das ein","Notiz = Note:","")
msgbox(0, "your note", $lol)
endfunc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
func _sinn()
endfunc
func _How()
Msgbox(0,"Anleitung = How to", "kommt später")
endfunc
func _kotor2()
EndFunc
func _kotor1()
;die codes hab ich raus geschnitten waren 1700 zeilen ^^
endif
endfunc
Alles anzeigen