Hallo
Dann nimm doch anstatt Shellexecutewait, den Run befehl und dann mit ProcessExists? Notepad.exe ist doch eine exe halt
Mfg Spider
Hallo
Dann nimm doch anstatt Shellexecutewait, den Run befehl und dann mit ProcessExists? Notepad.exe ist doch eine exe halt
Mfg Spider
Hallo
Genial^^
Vor allem die Geschwindigkeit, im gegensatz zu AutoIt
Hier mal ein beispiel, um eine Datei einzulesen und in ein Array zu packen (bei mir 1000 - 14000 ms (1 bis 1,4 sek):
$ti = TimerInit()
$re = FileRead("de-DE.dic")
StringSplit($re,@CRLF)
$di = TimerDiff($ti)
$di = StringReplace(Round($di,2),".",",")
MsgBox(0,"AutoIt brauch:", $di&" millisekunden")
Mfg Spider
Hallo
Jo, ArtMoney.
Mfg Spider
Hallo
Sehr kreativ
Ich würd sagen, wir warten einfach mal ab, was Marle schreiben wird, denn das letze was er schrieb war
ZitatMein Master danke
ich glaube es funktioniert.
Daraus schließ ich einfach mal voreilig das es funktioniert hat
Mfg Spider
Hallo
@huggy: Nein, du kannst dein Rang ändern weil du über 500 Posts (oder so) hast.
Man könnte villeicht statt Anfänger, Beginner nehmen oder sowas
Mfg Spider
Hallo
Mit Laptop? Also W-Lan? Also nicht volle Kabelbandbreite(10/100/1000MBits)?
Dann würd ich dir ganz klar UltraVNC empfehlen. Ist schnell und sehr zuverlässig.
ULTRAVnc
Mfg Spider
Halloo
@progandy: Jo, aber seit AutoIt v3 ist RGB der Standartwert. Wollte ich nur mal erwehnen
@Xeno: wenn du meinst
Mfg Spider
Hallo
@progandy: Das ist in dem Fall egal. Aber #AAAAFF ist ganz sicher nicht Rot^^ #FF0000 ist pures rot, also in AutoIt 0xFF0000.
@Xeno:
Und was ist jetzt der untschied zu
$re = PixelSearch(0, 0, @DesktopHeight, @DesktopHeight, 0x00FF00, 10)
If Not @error Then
; Was du willst
_ArrayDisplay($re)
Else
MsgBox(0, "Info", "nicht gefunden!", 3)
EndIf
Mfg Spider
Hallo
Die Suche ist nicht böse, wenn du sie benutzt
Klick Mich
Hier ist auch eine Funtkion von mir (_RunWait) mit beispiel:
Klick Mich
Mfg Spider
Hallo
So geht das:
#include <GUIConstants.au3>
#Include <process.au3>
#include <string.au3>
Dim $HiddenString, $PW
#Region ### START Koda GUI section ### Form=D:\Eigene Dateien\AutoIt-Skripte\DefragC\Def_GUI.kxf
$Form1 = GUICreate("TUV Defragger for PowerUsers (c) by PC-Service 2007", 440, 242, 307, 201)
GUISetBkColor(0x0000FF)
$Label1 = GUICtrlCreateLabel("Defragmentierung für Haupbenutzer", 8, 16, 436, 36)
GUICtrlSetFont(-1, 20, 400, 0, "Arial")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x0000FF)
$Admin_Input = GUICtrlCreateInput("Administrator", 208, 80, 220, 26)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
$PW_Input = GUICtrlCreateInput("kosmos", 208, 112, 220, 26, $ES_PASSWORD)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
$Label2 = GUICtrlCreateLabel("", 40, 48, 4, 4)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x0000FF)
$Label3 = GUICtrlCreateLabel("Passwort?", 32, 112, 78, 22, $SS_RIGHT)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x0000FF)
$Label4 = GUICtrlCreateLabel("Lokaler Administrator?", 32, 80, 162, 22)
GUICtrlSetFont(-1, 12, 400, 0, "Arial")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0x0000FF)
$Start_Button = GUICtrlCreateButton("Start", 16, 192, 145, 33, $WS_BORDER)
GUICtrlSetFont(-1, 14, 400, 4, "Arial Black")
$Stop_Button = GUICtrlCreateButton("(Not allowed)", 280, 188, 145, 36, BitOR($BS_ICON, $WS_BORDER))
GUICtrlSetImage($Stop_Button, "092.ICO")
GUICtrlSetFont(-1, 14, 400, 4, "Arial Black")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUISetState()
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then
ExitLoop
EndIf
If $msg = $Stop_Button Then
ExitLoop
EndIf
If $msg = $Start_Button Then
ConsoleWrite(1 & @CRLF)
$Admin = GUICtrlRead($Admin_Input)
$PW = GUICtrlRead($PW_Input)
MsgBox(0, "TEST", "GUI 1: " & $Admin)
MsgBox(0, "TEST", "GUI 2: " & $PW)
RunAsSet($Admin, @ComputerName, $PW)
$ECODE = RunWait(@ComSpec & " /c " & "defrag /a c: > c:\DefragC.log")
If $ECODE <> 0 Then
MsgBox(4096, "Error", "Defrag Error")
; MsgBox(4096,"$ECODE = ", $ECODE)
Else
MsgBox(4096, "Result", "Defrag OK")
; MsgBox(4096,"$ECODE = ", $ECODE)
EndIf
EndIf
WEnd
RunAsSet()
Paar kleine Fehler gemacht, am besten vergleichst du die beiden Codes mal miteinander
Mfg Spider
Hallo
Welche IP Willst du denn?
[autoit]MsgBox(0,"",@IPAddress1)
[/autoit]
Das gibt deine Momentan lokale IP Adresse aus.
Wenn du den Standardgateway auslesen willst, benutz am besten die autoit.de Suche.
Mfg Spider
Hallo
Meinst du mit AutoIt?
[autoit]#include <inet.au3>
$fTxt = "http://tenso.kilu.de/high.txt"
$sInhalt = _INetGetSource($fTxt)
MsgBox(0,"Inhalt von "&$fTxt&":",$sInhalt)
Mfg Spider
Hallo
Adventswochenende is richtig.
Warum? Weil es mein im Firefox integriertes Wörterbuch als richtig anerkennt und Adventwochenede als falsch
Mfg Spider
Hallo
Du hast wirklich lange weile, oder?^^
99.998
Mfg Spider
Action GtaSpider: [15.12.2007 16:29]
Topic Moved: Off Topic -> Talk
Hallo
Naja, es gibt ein Tutorial im engl Forum, was ich hier aber auch schon ziemlich oft gepostet hab.
Lod3n hat das Tutorial geschrieben und PaulIA hat (wie hofefntlich bekannt) die Auto3Lib, die jetzt in der Version 3.2.10.0 von AutoIt intriegriert ist, erstellt.
Die Funktionen _CreateCursor , _DeleteCursor und _MoveCursor hab ich aber alle selbst erstellt
Ich hab im Anhang von dem Oberem Post auch nochmal eine "cur.png" angehangen, wie der Cursor ungefair aussehen könnte.
Mfg Spider
Hallo
Villeicht bin ich dumm, aber ich kann irgendwie keine Frage finden?!
Funktioniert das Script bei dir nicht? Warum postest du es unter Talk?
Mfg Spider
Hallo
Naja.. du musst kein Array erstellen
Aber, es stimmt schon, Dummy Controls werden eigentlich nie benutzt, keine Ahnung warum "die" die reingebaut haben
Mfg Spider
Hallo
Ein Dummy wird sehr selten verwendet, kann aber z.B. für folgende Funktion verwendet werden:
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]$GUI = GUICreate("There once were 50 checkboxes", 200, 850)
[/autoit] [autoit][/autoit] [autoit]$CheckboxesStart = GUICtrlCreateDummy() ; ==> Notice the start
For $i = 0 To 49
GUICtrlCreateCheckbox("Checkbox " & $i+1, 0,0+($i*17)) ; ==> Obviously I'm not going to create 50 variables for 50 checkboxes cause this is just for showing how to check every single one.
Next ; I read you do, so be sure to create all checkboxes at the same place and surround them by 2 dummy controls.
$CheckboxesStop = GUICtrlCreateDummy() ; ==> Notice the end
$CheckAll = GUICtrlCreateButton("Check all", 100, 100)
$UnCheckAll = GUICtrlCreateButton("Uncheck all", 100, 130)
GUISetState()
[/autoit] [autoit][/autoit] [autoit]While 1
$Msg = GUIGetMsg()
Switch $Msg
Case $CheckAll
For $i = $CheckboxesStart to $CheckboxesStop ; ==> Looping through every checkbox
GUICtrlSetState($i, $GUI_CHECKED)
Next
Case $UnCheckAll
For $i = $CheckboxesStart to $CheckboxesStop ; ==> Looping through every checkbox
GUICtrlSetState($i, $GUI_UNCHECKED)
Next
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
GUIDelete()
[/autoit]Mfg Spider