Hi,
schon mal Do until angeguckt?
So long,
Mega
Hi,
schon mal Do until angeguckt?
So long,
Mega
Hi,
guck dir doch mal wget an. Oder ...
_IEDocReadHTML ( ByRef $o_object )
So long,
Mega
Hi,
könnt ihr das nicht per Chat oder Zuruf klären? ![]()
Die Frage ist doch wie du diese Informationen sammelst.
Ich würde einen Rechner als "Master" deklarieren. Alle anderen legen bzw. rufen die Infos von diesem Rechner ab.
Z.B. eine Datei in einer Freigabe
So long,
Mega
Hi,
auch hier die Frage, was soll es denn werden, wenn es fertig ist?
Wieso sollen die Rechner kommunizieren?
So long,
Mega
Hi,
ja das ist möglich. Aber was soll es denn werden, wenn es fertig ist? Welcher Zweck steht dahinter? Willst du wirklich den Ablauf so lassen? Ich meine InputBox und danach resizen?
So long,
Mega
Hi,
welches Game ist es denn?
Vielleicht gibt es ja eine andere Lösung.
So long,
Mega
Hi,
warum nicht ganz sauber?
So long,
Mega
Hi,
kaskadieren beudetet was gaaanz anderes. ![]()
So long,
Mega
Hi,
hmmh, mir fällt für beide Lösungen kein wirkliches Einsatzgebiet ein. Müssen wir wohl abwarten, was er wirklich will.
So long,
Mega
Hi,
wo ist der Sinn? Du gibst bla ein und erstellst eine exe. ???
![]()
Was soll die exe denn machen?
So long,
Mega
Hi,
habe mir gerade deine PN angeguckt. Aus meiner Sicht hast du einen Logikfehler, oder ich verstehe dein Vorgehen nicht
Du möchstest die font.ini irgendwo speichern können. Dann würde ich sie nicht kopieren, sondern einfach neuschreiben. Wenn du Sie beim nächsten Mal automatisiert einlesen können willst, dann brauchst aber eine Datei, die immer an derselben Stelle liegt in der dieser neue Pfad gespeichert wird. Diesen liest du dann zuerst aus und anschließend deine font.ini.
So long,
Mega
Habe dir den Anfang mal gemacht.
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=Icon1.ico
#AutoIt3Wrapper_outfile=Tenso_Editor.exe
#AutoIt3Wrapper_Compression=3
#AutoIt3Wrapper_UseAnsi=y
#AutoIt3Wrapper_Res_Description=Tenso 2007
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=Tenso 2007
#AutoIt3Wrapper_Res_Language=2055
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstants.au3>
#include <Misc.au3>
HotKeySet("{PAUSE}", "TogglePause")
[/autoit] [autoit][/autoit] [autoit]Func TogglePause()
Exit
EndFunc ;==>TogglePause
;--------------------------------------------------------------------------
;Einstellungen
Opt("TrayMenuMode", 1)
TraySetState()
TraySetToolTip("Soldat Font Editor")
;--------------------------------------------------------------------------
; Ini Einstellungen
$ort = IniRead("einstellungen.ten", "SPEICHER", "Lesen", "NotFound")
$schreiben = IniRead("einstellungen.ten", "SPEICHER", "Schreiben", "NotFound")
$version = IniRead("version.ten", "VERSION", "Beta", "NotFound")
$standard = IniRead("einstellungen.ten", "SPEICHER", "Standard", "NotFound")
;-------------------------------------------------------------------------
; Ini Einstellungen
$inifont1 = IniRead($ort, "FONTS", "Font1", "NotFound")
$inifont2 = IniRead($ort, "FONTS", "Font2", "NotFound")
;-------------------------------------------------------------------------
; Ini Einstellungen
$inifontmenusize = IniRead($ort, "FONTS", "FontMenuSize", "NotFound")
$inifontconsole = IniRead($ort, "FONTS", "FontConsoleSize", "NotFound")
$inifontbigsize = IniRead($ort, "FONTS", "FontConsoleSize", "NotFound")
$inifontbigbold = IniRead($ort, "FONTS", "FontBigBold", "NotFound")
$inifontconsolesmallsize = IniRead($ort, "FONTS", "FontConsoleSmallSize", "NotFound")
$inifontconsolesmallbold = IniRead($ort, "FONTS", "FontConsoleSmallBold", "NotFound")
$inifontconsolebold = IniRead($ort, "FONTS", "FontConsoleBold", "NotFound")
$inifontweaponmenusize = IniRead($ort, "FONTS", "FontWeaponMenuSize", "NotFound")
$inifontweaponmenubold = IniRead($ort, "FONTS", "FontWeaponMenuBold", "NotFound")
$fontmenubold = IniRead($ort, "FONTS", "FontMenuBold", "NotFound")
$inifontkill = IniRead($ort, "FONTS", "KillConsoleNameSpace", "NotFound")
;--------------------------------------------------------------------------
; Form
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\USER\Desktop\[Tenso] Soldat Font Editor\Tenso_Editor.kxf
$Form1 = GUICreate("Soldat Font Editor", 617, 435, 197, 118)
$Label1 = GUICtrlCreateLabel("Font1", 16, 48, 39, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label2 = GUICtrlCreateLabel("Font 2:", 16, 80, 39, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label3 = GUICtrlCreateLabel("Font Menu Size:", 304, 184, 81, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label4 = GUICtrlCreateLabel("Font Console Size:", 16, 224, 93, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label5 = GUICtrlCreateLabel("Font Big Size:", 16, 112, 69, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label6 = GUICtrlCreateLabel("Font Weapon Menu Size:", 304, 48, 121, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label7 = GUICtrlCreateLabel("Font Console Small Size:", 16, 256, 120, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label8 = GUICtrlCreateLabel("Font Menu Bold:", 304, 152, 82, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label9 = GUICtrlCreateLabel("Font Console Bold:", 16, 320, 94, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label10 = GUICtrlCreateLabel("Font Big Bold:", 16, 144, 70, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label11 = GUICtrlCreateLabel("Font Weapon Menu Bold:", 304, 80, 125, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label12 = GUICtrlCreateLabel("Font Console Small Bold:", 16, 288, 121, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label13 = GUICtrlCreateLabel("Kill Console Name Space:", 16, 352, 123, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input3 = GUICtrlCreateInput($inifontconsole, 160, 224, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input4 = GUICtrlCreateInput($inifontconsolesmallsize, 160, 256, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label14 = GUICtrlCreateLabel("Font:", 16, 16, 32, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Label15 = GUICtrlCreateLabel("Console:", 16, 192, 51, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Input5 = GUICtrlCreateInput($inifontconsolesmallbold, 160, 288, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input6 = GUICtrlCreateInput($inifontconsolebold, 160, 320, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input7 = GUICtrlCreateInput($inifontkill, 160, 352, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label16 = GUICtrlCreateLabel("Weapon Menu:", 304, 16, 87, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Label17 = GUICtrlCreateLabel("Menu:", 304, 120, 38, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Input8 = GUICtrlCreateInput($inifontweaponmenusize, 456, 48, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input9 = GUICtrlCreateInput($inifontweaponmenubold, 456, 80, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input10 = GUICtrlCreateInput($fontmenubold, 456, 152, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input11 = GUICtrlCreateInput($inifontmenusize, 456, 184, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input12 = GUICtrlCreateInput($inifontbigsize, 160, 112, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input13 = GUICtrlCreateInput($inifontbigbold, 160, 144, 121, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label18 = GUICtrlCreateLabel("Copyright by Tenso 2007", 472, 400, 125, 17)
GUICtrlSetFont(-1, 8, 400, 2, "Tahoma")
$Save = GUICtrlCreateButton("Save", 408, 296, 129, 33, 0)
$Change = GUICtrlCreateButton("Change", 160, 48, 67, 17, 0)
$Button1 = GUICtrlCreateButton("Change", 160, 80, 67, 17, 0)
$S = GUICtrlCreateButton("Font 1", 56, 48, 50, 17, 0)
$Button2 = GUICtrlCreateButton("Font 2", 56, 80, 50, 17, 0)
$Exit = GUICtrlCreateButton("Exit", 424, 400, 33, 17, 0)
$About = GUICtrlCreateButton("About", 360, 400, 51, 17, 0)
$Button3 = GUICtrlCreateButton("Standard", 272, 400, 75, 17, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $b_font[3], $a_font[3]
[/autoit] [autoit][/autoit] [autoit]While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Save
_save(@ScriptDir & 'font.ini')
MsgBox(0, "", " Successfully! ")
Exit
Case $msg = $Change
$a_font = _ChooseFont($inifont1, ![]()
If (@error) Then
MsgBox(0, "", "Error _ChooseFont: " & @error)
Else
MsgBox(0, "", "Font Name: " & $a_font[2])
$a_font_schreiben = IniWrite($schreiben, "FONTS", "Font1", $a_font[2])
EndIf
Case $msg = $Button1
$b_font = _ChooseFont($inifont2, ![]()
If (@error) Then
MsgBox(0, "", "Error _ChooseFont: " & @error)
Else
MsgBox(0, "", "Font Name: " & $b_font[2])
$b_font_schreiben = IniWrite($schreiben, "FONTS", "Font1", $b_font[2])
EndIf
Case $msg = $S
MsgBox(4096, "Font1", $inifont1, 10)
Case $msg = $Exit
Exit
Case $msg = $Button2
MsgBox(4096, "Font2", $inifont2, 10)
Case $msg = $About
MsgBox(4096, "About", "Programmierer: Tesno, Version: " & $version, 10)
Case $msg = $Button3
$up = FileSaveDialog("", @ScriptDir, "Tenso File (Standard Font) (*.ini)|Alle Dateien(*.*)", 18, "font.ini")
If @error Then ContinueLoop
If StringRight($up, 4) <> ".ini" Then $up &= ".ini"
_save($up)
MsgBox(0, "", " Sucessfully! ")
Exit
EndSelect
WEnd
Func _save($schreiben)
$inifont1 = IniWrite($schreiben, "FONTS", "Font1", $b_font[2])
$inifont2 = IniWrite($schreiben, "FONTS", "Font2", $a_font[2])
$inifontmenusize = GUICtrlRead($Input11)
$inifontmenusize = IniWrite($schreiben, "FONTS", "FontMenuSize", $inifontmenusize)
$inifontconsole = GUICtrlRead($Input3)
$inifontconsole = IniWrite($schreiben, "FONTS", "FontConsoleSize", $inifontconsole)
$inifontbigsize = GUICtrlRead($Input12)
$inifontbigsize = IniWrite($schreiben, "FONTS", "FontConsoleSize", $inifontbigsize)
$inifontbigbold = GUICtrlRead($Input13)
$inifontbigbold = IniWrite($schreiben, "FONTS", "FontBigBold", $inifontbigbold)
$inifontconsolesmallsize = GUICtrlRead($Input4)
$inifontconsolesmallsize = IniWrite($schreiben, "FONTS", "FontConsoleSmallSize", $inifontconsolesmallsize)
$inifontconsolesmallbold = GUICtrlRead($Input5)
$inifontconsolesmallbold = IniWrite($schreiben, "FONTS", "FontConsoleSmallBold", $inifontconsolesmallbold)
$inifontconsolebold = GUICtrlRead($Input6)
$inifontconsolebold = IniWrite($schreiben, "FONTS", "FontConsoleBold", $inifontconsolebold)
$inifontweaponmenusize = GUICtrlRead($Input8)
$inifontweaponmenusize = IniWrite($schreiben, "FONTS", "FontWeaponMenuSize", $inifontweaponmenusize)
$inifontweaponmenubold = GUICtrlRead($Input9)
$inifontweaponmenubold = IniWrite($schreiben, "FONTS", "FontWeaponMenuBold", $inifontweaponmenubold)
$fontmenubold = GUICtrlRead($Input10)
$fontmenubold = IniWrite($schreiben, "FONTS", "FontMenuBold", $fontmenubold)
$inifontkill = GUICtrlRead($Input7)
$inifontkill = IniWrite($schreiben, "FONTS", "KillConsoleNameSpace", $inifontkill)
EndFunc ;==>_save
Hi,
na dann viel Spaß. Irgendwas musst dir aber noch ausdenken, ansonsten ergibt sich kein Mehrwert zu einer einfachen Liste mit ToDos.
Zum Namen: Ich wollte einfach nicht mehr mit meinem richtigen Namen unterwegs sein. Mega ist aber mein richtiger Spitzname. :tongue:
So long,
Mega
Hi,
das ist eine riiiiesen Plattform!
Zum Fehler, das habe ich natürlich schon längst gemacht.
Kleine Anmerlungen habe ich auch schon :
Den wollen sie wirklich speichern Dialog optional machen.
(Wenn ich speichern klicke (beim 10000 mal) dann will ich auch speichern!)
Beim Speichern ggf. umstellen von
[Auto]
text=Kaufen
auf
[Speichern]
auto=Kaufen
Warum kommt immer gesichert ? Brauche ich auch nicht ![]()
So long,
Mega
Hi,
er schmiert beim IniWrite der notes.ini ab. Das liegt daran, dass der Name bescheiden gewählt ist. ![]()
Die IBM hat ein Programm names Lotus Notes. Dieses benötigt eine ini. Wenn man also Notes geöffnet hat, ist das Schreiben einer Datei names notes.ini nicht erlaubt. ![]()
So long,
Mega
P.S.: Dann gucke ich mal weiter
Hi,
also deine portable Version hat einen Fehler.
So long,
Mega
Hi,
mach doch vorher mal ein ControlFocus
So long,
Mega
HI,
zeig mal deinen Code. Mit IF kannst du auch arbeiten.
So long,
Mega
Hi,
eine Funktion einfach in Hilfe suchen.
So long,
Mega
Hi,
warum nicht _isPressed?
So long,
Mega
Hi,
kannst dir auch das _isPressed Beispiel angucken.
So long,
Mega