Hallo
Guck dir mal ContinueLoop an. Wenn das nicht weiterhilft, zeig uns bitte den Gesamten Code.
Mfg Spider
Hallo
Guck dir mal ContinueLoop an. Wenn das nicht weiterhilft, zeig uns bitte den Gesamten Code.
Mfg Spider
Hallo
Würde es eher in die Filebase verschieben, was ich dann auch einfach mal tue^^
Mfg Spider
Edit: Ok... öh... Kann momentan aus irgendeinem unerfindlichem Grund das Thema nicht verschieben. *auf pee oder gun wart*
Hallo
Probiers mal so:
[autoit]Case $msg = $Button3
$up = FileSaveDialog("",@ScriptDir,"Tenso File (Standard Font) (*.ini)|Alle Dateien(*.*)",9,"font.ini")
If @error Then ContinueLoop
If StringRight($up,4) <> ".ini" Then $up &= ".ini"
FileCopy("font.ini", $up)
MsgBox(0, "", " Sucessfully! ")
Exit
Mfg Spider
Hallo
Guck in der Hilfe unter der Funktion "Opt"
ZitatAlles anzeigenAuszug aus der Hilfe:
WinTitleMatchMode
Alters the method that is used to match window titles during search operations.
1 = Match the title from the start (default)
2 = Match any substring in the title
3 = Exact title match
4 = Advanced mode, see Window Titles & Text (Advanced)
-1 to -4 = force lower case match according to other type of match.
Mfg Spider
Hallo
Die ID Findest du mit dem AutoIt Window Info Tool den du normalerweise hier findest: C:\Programme\AutoIt3\Au3Info.exe
Dann einfach mit der Maus auf das Fadenkreuz in der GRuppe "Finder Tool" auf das Control schieben was du brauchst! Dann gibt er dir unten unter "Control" u.a. ClassnameNN zurück! Das ist der Name des Controls...
Mfg Spider
Hallo
Probiers mal so:
[autoit]ControlSend("daoc1.txt - Editor", "", "Edit1", "r")
[/autoit]Mfg Spider
Hallo
Du hast die Schlussklammer vergessen
[autoit]$up = FileSaveDialog("",@ScriptDir,"Tenso File (Standard Font) (*.ini)|Alle Dateien(*.*)",9,"font.ini")
[/autoit]
So muss es sein
Mfg Spider
HAllo
Etwas erweitert wird es bei OpenGL: http://www.autoitscript.com/forum/index.php?showtopic=37385
Mfg Spider
Hallo
Das Tutorial von Autoit.de: http://wiki.autoit.de/wiki/index.php/Tutorial
Der IRC von Autoit.de: http://www.autoit.de/irc.php?sid=
Mfg Spider
Hallo
Mit GuiCtrlRead würde es am einfachsten dann so gehen:
[autoit]Switch GUICtrlRead($Auswahlnamen)
Case "Auflistung"
MsgBox(0, "Fehler", "Treffen Sie eine Auswahl")
Exitloop
Case "Erklärung1"
MsgBox(0, "Fehler", "Outlook ist nicht installiert")
Exitloop
; Case "..."
; .........
; .........
; .........
EndSwitch
Zum ersten:
guck dir das mal an, vielleicht hilft es dir ja:
http://www.autoitscript.com/forum/index.php?showtopic=48438
Mfg Spider
Hallo
Wen es nochmal interessiert:
Wie man Variablen richtig erstellt:
$a<Buchstabe> - Array (Der nächste Buchstabe beschreibt was in dem Array drin ist (String,Integer,…)
$b - Binäre Daten
$h - Datei/Fenster/Control handle
$i - Integer (…,-1,0,1,…)
$f - Boolean (False,True,…)
$n - Floating point number (Die Variable hat die Form dddd.dddd, wobei dddd ein oder mehrere Dezimale Zahlen sind.)
$s - String (z.B. “Test”)
$v - Variante (Unbekannt)
Beispiel: Dim $aiTest[2] = [0,1]
Beispiel2: $nTest = 1.5
Variablen Sollten auch immer nach dem Genannt werden wofür sie dasind, am besten auf Englisch!
Beispiel: $iC ist nicht akzeptabel. $iCounter ist besser!
Alles anzeigen
Mfg Spider
Hallo
Capatcha's entschlüsseln ist Illegal. Unser Forum unterstützt auf keinster weise Illegale Scripte. Hier wirst du keine Hilfe kriegen!
Mfg Spider
Action GtaSpider: [09.09.2007 20:03]
Topic Closed!
Hallo
Falls es dich interesiert :
ListView - Hat im Gegensatz zur ListBox oben noch "Collums":
[Blockierte Grafik: http://www.knowdotnet.com/articles/PrintListViewDemoForm.jpg]
ListBox - Nur eine Reine Liste:
[Blockierte Grafik: http://www.dailydoseofexcel.com/blogpix/ufdrag1.gif]
ComboBox - Eine DropDown Box:
[Blockierte Grafik: http://www.c-sharpcorner.com/UploadFile/mahesh/AutoCompletion02012006113508AM/Images/AutoCompleteImg1.gif]
Mfg Spider
Hallo und herzlich :willkommen: im Board
Meinst du Listbox oder ListView? Falls du ListView meinst guck dir mal die Funktion ControlListView in der AutoIt Hilfe an.
Mfg Spider
Hallo
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]$lesen = IniRead("einstellungen.ini", "SPEICHER", "Lesen", "NotFound")
$schreiben = IniRead("einstellungen.ini", "SPEICHER", "Schreiben", "NotFound")
;--------------------------------------------------------------------------------
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\USER\Desktop\[Tenso] Soldat Font Editor\Tenso_Config.kxf
$Form1 = GUICreate("Tenso Soldat Font Editor - Setup", 385, 286, 193, 115)
$Input1 = GUICtrlCreateInput($lesen, 160, 72, 185, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input2 = GUICtrlCreateInput($schreiben, 160, 120, 185, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label1 = GUICtrlCreateLabel("Laden:", 48, 72, 37, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label2 = GUICtrlCreateLabel("Speichern:", 48, 120, 55, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Button1 = GUICtrlCreateButton("Save", 208, 184, 75, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label3 = GUICtrlCreateLabel("Setup:", 48, 32, 40, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Label4 = GUICtrlCreateLabel("Copyright by Tenso", 248, 256, 98, 17)
GUICtrlSetFont(-1, 8, 400, 2, "Tahoma")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button1
$file = FileSaveDialog("",@ScriptDir,"INI Dateien(*.ini)|Alle Dateien(*.*)",0,"einstellungen.ini")
If @error Then ContinueLoop
$lesen = GUICtrlRead($Input1)
$schreiben = GUICtrlRead($Input2)
$lesen = IniWrite($file, "SPEICHER", "Lesen", $lesen)
$schreiben = IniWrite($file, "SPEICHER", "Schreiben", $schreiben)
MsgBox(4096, "Speichern", "Speichern! Erfolgreich!", 10)
Exit
EndSelect
WEnd
Ich weiß, ich bin heute sehr gesprächig
Mfg Spider
Hallo
#include <GUIConstants.au3>
$lesen = IniRead("einstellungen.ini", "SPEICHER", "Lesen", "NotFound")
$schreiben = IniRead("einstellungen.ini", "SPEICHER", "Schreiben", "NotFound")
;--------------------------------------------------------------------------------
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\USER\Desktop\[Tenso] Soldat Font Editor\Tenso_Config.kxf
$Form1 = GUICreate("Tenso Soldat Font Editor - Setup", 385, 286, 193, 115)
$Input1 = GUICtrlCreateInput($lesen, 160, 72, 185, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Input2 = GUICtrlCreateInput($schreiben, 160, 120, 185, 21)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label1 = GUICtrlCreateLabel("Laden:", 48, 72, 37, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label2 = GUICtrlCreateLabel("Speichern:", 48, 120, 55, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Button1 = GUICtrlCreateButton("Save", 208, 184, 75, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Tahoma")
$Label3 = GUICtrlCreateLabel("Setup:", 48, 32, 40, 17)
GUICtrlSetFont(-1, 8, 800, 0, "Tahoma")
$Label4 = GUICtrlCreateLabel("Copyright by Tenso", 248, 256, 98, 17)
GUICtrlSetFont(-1, 8, 400, 2, "Tahoma")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button1
$lesen = GUICtrlRead($Input1)
$schreiben = GUICtrlRead($Input2)
$lesen = IniWrite("einstellungen.ini", "SPEICHER", "Lesen", $lesen)
$schreiben = IniWrite("einstellungen.ini", "SPEICHER", "Schreiben", $schreiben)
MsgBox(4096, "Speichern", "Speichern! Erfolgreich!", 10)
Exit
EndSelect
WEnd
Mfg Spider
Hallo
Wie es mit AutoIt v2 geht weiß ich nicht, aber für v3 müsste es mit ControlSend gehen! Warum benutzt du denn noch v2? Das ist doch voll "out"^^ V3 hat soooo viele Vorteile gegenüber V2...
Probiers einfach mal aus... http://www.autoitscript.com/autoit3/downloads.php
Mfg Spider
Hallo
Das könnte daran liegen, dass autoit.de sich geändert hat. Es gibt jetzt auch ein neues Script von Bugfix: "Guckloch"
Mfg Spider
Hallo
Schonmal probiert die shutdown.exe von XP einfach auf den Win2000 rechner zu packen?^^ Sonst würd ich einfach alle Processe killen ( ProcessList usw) und dann einfach Shutdown(5). Shutdown(5) sollte iegnetlich schon reichen, weil das Shutdown + Force ist, er es also erzwingt! Funktioniert bei mir immer, auch bei winamp (was bei mir normalerweise beim beenden eigentlich probleme macht.
Mfg Spider
Hallo
Du hast bei GuiEventClose das $msg = vergessen So ist es richtig:
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("SendMessage", 251, 251, 193, 115)
$number = GUICtrlCreateInput("10", 16, 24, 217, 21)
$abstand = GUICtrlCreateInput("0,5", 16, 88, 217, 21)
$nachricht = GUICtrlCreateInput("Hallo", 17, 161, 217, 21)
$send = GUICtrlCreateButton("Send", 80, 200, 73, 41, 0)
$Label1 = GUICtrlCreateLabel("Anzahl der Nachrichten:", 16, 8, 118, 17)
$Label2 = GUICtrlCreateLabel("Abstand zw. den Nachrichten in Sek.:", 16, 72, 183, 17)
$Label3 = GUICtrlCreateLabel("Die Nachricht:", 16, 136, 72, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg = GUIGetMsg()
If $msg <> 0 Then
ConsoleWrite($msg & @CRLF)
$n = GUICtrlRead($number)
$a = GUICtrlRead($abstand)
$m = GUICtrlRead($nachricht)
Select
Case $msg = $send
If $n > 1 Then
$n = $n - 1
Sleep($a * 1000)
Send($m)
Send("{ENTER}")
EndIf
Case $msg = $GUI_EVENT_CLOSE;$msg = nicht vergessen
Exit
Case $number = 0
Exit
EndSelect
EndIf
WEnd
Mfg Spider