aber jetze stellt sich die frage wird die shutdown.exe beim Runterfahren auch genutzt!
Beiträge von Sprenger120
-
-
Sollte doch auch gehen, indem du die Shutdown.exe umbenennst und an deren Stelle ein compiliertes AutoIt-Script erstellst mit dem Namen: Shutdown.exe.
gute idee und dann mit replacer ersetzen
-
ich habe schon ewig kein xp mehr drauf gehabt aber gucke mal in den Energieoptionen (Systemsteuerung) und dann auf der Kartei Erweitert und schaue dir mal die Einstellungen an. Ich meine mich zu Erinnern das es dort eine Einstellung zu diesem Thema gibt.
-
also ist der strom langsam aber der anstups inpuls erfolgt mit lichtgeschwindigkeit
-
-
mit lichtgeschwindigkeit wenns der elektrische strom ist
-
was ich noch vergessen habe
du musst natürlich beim jewailgen smtp server registriert sein -
hmm gut aber wie kann ich mein kleines proggi nun scheller machen ?
-
aber ich habe doch die jpg komprimierung drinne gucke mein Script
-
ahh ich bruache die speicheraddresse von dem bild
aber wie bekomme ich die?
-
oh da wusse ich nicht
-
du musst dich auch beim smtp server authifenzieren (bestimmt falsch geschrieben
) und deswegen pwd + usernamehier mal das bsp für gmx
[autoit]
[/autoit]
$SmtpServer = "mail.gmx.net" ; address for the smtp-server to use - REQUIRED
$FromName = "" ; name from who the email was sent
$FromAddress = "DeineEmailAddresse@anbieter.de" ; address from where the mail should come
$ToAddress = "empfänger@anbieter.de" ; destination address of the email - REQUIRED
$Subject = "Ich bin der Titel der Email" ; subject from the email - can be anything you want it to be
$Body = "Ich bin der inhalt" ; the messagebody from the mail - can be left blank but then you get a blank mail
$AttachFiles = "" ; the file you want to attach- leave blank if not needed
$CcAddress = "" ; address for cc - leave blank if not needed
$BccAddress = "" ; address for bcc - leave blank if not needed
$Importance = "" ; Send message priority: "High", "Normal", "Low"
$Username = "deineemailaddresse@anbieter.de" ; username for the account used from where the mail gets sent - REQUIRED
$Password = "deinPasswortfür deinen email account" ; password for the account used from where the mail gets sent - REQUIRED
$IPPort = 25 ; port used for sending the mail
$ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS -
nutze doch diese, die is viel besser
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
; Script Start - Add your code below here
;
;##################################
; Include
;##################################
#include<file.au3>
;##################################
; Variables
;##################################
$SmtpServer = "" ; address for the smtp-server to use - REQUIRED
$FromName = "" ; name from who the email was sent
$FromAddress = "" ; address from where the mail should come
$ToAddress = "" ; destination address of the email - REQUIRED
$Subject = "" ; subject from the email - can be anything you want it to be
$Body = "" ; the messagebody from the mail - can be left blank but then you get a blank mail
$AttachFiles = "" ; the file you want to attach- leave blank if not needed
$CcAddress = "" ; address for cc - leave blank if not needed
$BccAddress = "" ; address for bcc - leave blank if not needed
$Importance = "" ; Send message priority: "High", "Normal", "Low"
$Username = "" ; username for the account used from where the mail gets sent - REQUIRED
$Password = "" ; password for the account used from where the mail gets sent - REQUIRED
$IPPort = 25 ; port used for sending the mail
$ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS
;~ $IPPort=465 ; GMAIL port used for sending the mail
;~ $ssl=1 ; GMAILenables/disables secure socket layer sending - put to 1 if using httpS;##################################
[/autoit] [autoit][/autoit] [autoit]
; Script
;##################################
Global $x = 0
Global $oMyRet[2]
Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc");
[/autoit]
; The UDF
Func _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject = "", $as_Body = "", $s_AttachFiles = "", $s_CcAddress = "", $s_BccAddress = "", $s_Importance = "Normal", $s_Username = "", $s_Password = "", $IPPort = 25, $ssl = 0)
Local $objEmail = ObjCreate("CDO.Message")
$objEmail.From = '"' & $s_FromName & '" <' & $s_FromAddress & '>'
$objEmail.To = $s_ToAddress
Local $i_Error = 0
Local $i_Error_desciption = ""
If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress
If $s_BccAddress <> "" Then $objEmail.Bcc = $s_BccAddress
$objEmail.Subject = $s_Subject
If StringInStr($as_Body, "<") And StringInStr($as_Body, ">") Then
$objEmail.HTMLBody = $as_Body
Else
$objEmail.Textbody = $as_Body & @CRLF
EndIf
If $s_AttachFiles <> "" Then
Local $S_Files2Attach = StringSplit($s_AttachFiles, ";")
For $x = 1 To $S_Files2Attach[0]
$S_Files2Attach[$x] = _PathFull($S_Files2Attach[$x])
ConsoleWrite('@@ Debug(62) : $S_Files2Attach = ' & $S_Files2Attach & @LF & '>Error code: ' & @error & @LF) ;### Debug Console
If FileExists($S_Files2Attach[$x]) Then
$objEmail.AddAttachment($S_Files2Attach[$x])
Else
ConsoleWrite('!> File not found to attach: ' & $S_Files2Attach[$x] & @LF)
SetError(1)
Return 0
EndIf
Next
EndIf
$objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
$objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer
If Number($IPPort) = 0 Then $IPPort = 25
$objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort
;Authenticated SMTP
If $s_Username <> "" Then
$objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
$objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username
$objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password
EndIf
If $ssl Then
$objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
EndIf
;Update settings
$objEmail.Configuration.Fields.Update
; Set Email Importance
Switch $s_Importance
Case "High"
$objEmail.Fields.Item("urn:schemas:mailheader:Importance") = "High"
Case "Normal"
$objEmail.Fields.Item("urn:schemas:mailheader:Importance") = "Normal"
Case "Low"
$objEmail.Fields.Item("urn:schemas:mailheader:Importance") = "Low"
EndSwitch
$objEmail.Fields.Update
; Sent the Message
$objEmail.Send
If @error Then
SetError(2)
Return $oMyRet[1]
EndIf
$objEmail = ""
EndFunc ;==>_INetSmtpMailCom
;
;
; Com Error Handler
Func MyErrFunc()
$HexNumber = Hex($oMyError.number,
$oMyRet[0] = $HexNumber
$oMyRet[1] = StringStripWS($oMyError.description, 3)
ConsoleWrite("### COM Error ! Number: " & $HexNumber & " ScriptLine: " & $oMyError.scriptline & " Description:" & $oMyRet[1] & @LF)
SetError(1); something to check for when this function returns
Return
EndFunc ;==>MyErrFunc -
Ja so erstellts einen Handle und braucht nur 70 ms statt 200ms. Ich habe schon einen Thread aufgemacht um zu fragen ob man die Bilder gleich aus den RAM lesen kann.
-
also beim Server reicht eigentlich @ipadress1 da brauchst du kein _GetIP()
wenns aber übers web gehen soll braucht man _GetIP() eil dies die Öffentliche IP ermittelt die völlig anders sind als die IP´s von @IPaddress
-
ja erstmal auf 1024x768 resizen (auch auf 16Bit runterkomprimieren) und dann will ich dieses bild ohne es zu speichern direkt auslesen um es dann via tcp weiterzuschicken (Siehe DeskStream)
//Edit: das unnütze speichern braucht etwa 120 ms aber der eigentliche desksnap nur 70 das würde DeskStream wesentlich flüssiger laufen lassen
-
HI
ich habe einen Handle zu einem Bitmap objekt von der _ScreenCapture_Capture() Funktion und wollte frage ob das möglich ist die informationen von HBITMAP gleich auszulesen ohne dies erst in eine datei zu speichern und dann mit FileRead wieder auszulesen?Beispiel:
[autoit]
[/autoit][autoit][/autoit][autoit][/autoit][autoit]
#include <ScreenCapture.au3>$r = TimerInit()
[/autoit][autoit][/autoit][autoit][/autoit][autoit]
$hBitmap = _ScreenCapture_Capture()
MsgBox(0,0,TimerDiff($r)) ;80ms$r = TimerInit()
[/autoit]
_ScreenCapture_Capture("1.jpg")
MsgBox(0,0,TimerDiff($r)) ;200msKurz und knapp:Kann man Bilder aus dem RAM lesen (also binär zum weiterverschickem)?
-
ich habs mal so probiert aber irgentwie wird da nur müll in die datei geschrieben
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
Dim $aWins[9999999]
$Datei = "Windows.txt"
AdlibRegister("Write", 30000)While 1
[/autoit] [autoit][/autoit] [autoit]
Sleep(10)
WEndFunc Write()
[/autoit] [autoit][/autoit] [autoit]
$Title = WinGetText("[ACTIVE]")For $x = 0 To UBound($aWins) - 1
[/autoit]
If StringInStr($aWins[$x], $Title) <> 0 Then
$Title = Number(StringLeft($aWins[$x], 1))
If $Title > 0 And IsNumber($Title) Then
$Title += 1
$aWins[$x] = StringTrimLeft($aWins[$x], 1)
$aWins[$x] = $Title & " " & $aWins[$x]
ExitLoop
Else
$aWins[$x] = "1 " & $aWins[$x]
ExitLoop
EndIf
EndIf
If $aWins[$x] = "" Then
$aWins[$x] = $Title
ExitLoop
EndIf
Next
For $x = 0 To UBound($aWins) - 1
If $aWins[$x] = "" Then
ExitLoop
Else
$Title &= $aWins[$x] & @CRLF
EndIf
Next
$hFile = FileOpen($Datei,2)
FileWrite($hFile, $Title)
FileClose($hFile)
EndFunc ;==>Write -
wenn du daten übers internet übertragen willst muss der server auch den Socket auf der Öffentlichen IP Erstellen (ich hoffe du hast den Port weitergeleitet)
also beim server
[autoit]
[/autoit]
Global $IP = _GetIP()und beim Clienten
[autoit]
[/autoit]
Global $IP = InputBox("Server IP","Bitte die IP vom Server eingeben","") -
wenig zeilen sinds ja aber es aber trotzdem ist diese _ScreenCapture Funktion urst langsam