1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. Xenobiologist

Beiträge von Xenobiologist

  • Gui nicht in Taskleiste sichtbar

    • Xenobiologist
    • 18. September 2007 um 14:45

    Hi,

    das kannst du anhand der Styles einstellen. Z.B. Toolwindow.

    So long,

    Mega

  • wenn pc GESPERRT dann...

    • Xenobiologist
    • 18. September 2007 um 12:20

    Hi,

    und wo ist dein Problem?

    Die Befehle stehen alle in der Hilfe.

    IniWrite

    und die Funktion isWorkstation liefert 1 oder 0 zurück. Je nach Zustand locked oder nicht.

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 18. September 2007 um 10:55

    HI,

    schließen brauchst du auch nicht. Ich habe es auf gelöst gesetzt.

    So long,

    Mega

  • Für was verwendet ihr autoit ?

    • Xenobiologist
    • 18. September 2007 um 10:48

    Hi,

    für alles wo ich es gebrauchen kann. :D

    So long,

    Mega

  • wenn pc GESPERRT dann...

    • Xenobiologist
    • 18. September 2007 um 10:47

    Hi,

    [autoit]

    While 1
    Sleep(1000)
    If _isWorksatationLocked() Then ConsoleWrite(@HOUR & ":" & @MIN & ":" & @SEC & " - " & "workstation locked" & @CRLF)
    WEnd

    [/autoit][autoit][/autoit][autoit]

    Func _isWorksatationLocked()
    If StringInStr(WinGetText(""), "Program Manager") <> 0 And WinGetTitle("") = "" Then Return 1
    Return 0
    EndFunc ;==>_isWorksatationLocked

    [/autoit]

    So long,

    Mega

  • Von Handle auf Pfad????

    • Xenobiologist
    • 18. September 2007 um 10:29

    Hi,

    [autoit]

    MsgBox(0,"", ControlGetText('[CLASS:ExploreWClass]', '', 41477))

    [/autoit]

    So long,

    Mega

  • Parent- und Child-GUI

    • Xenobiologist
    • 17. September 2007 um 22:31

    Hi,

    anderes Beispiel

    [autoit]

    #include <GuiConstants.au3>
    $Main_GUI = GUICreate("Main")
    $Btn_Exit = GUICtrlCreateButton("E&xit", 10, 10, 90, 20)
    GUISetState(@SW_SHOW, $Main_GUI)
    $Child_GUI = GUICreate("Child", 200, 100, 10, 50, $WS_CAPTION)
    GUISetBkColor(0xfffaf0, $Child_GUI)
    $Btn_Test = GUICtrlCreateButton("Test", 10, 10, 90, 20)
    GUISetState(@SW_SHOW, $Child_GUI)
    DllCall("user32.dll", "int", "SetParent", "hwnd", WinGetHandle($Child_GUI), "hwnd", WinGetHandle($Main_GUI))

    [/autoit][autoit][/autoit][autoit]

    While 1
    Switch GUIGetMsg()
    Case $GUI_EVENT_CLOSE, $Btn_Exit
    Exit
    Case $Btn_Test
    MsgBox(0, "Test", "Hit Button on Child Window")
    EndSwitch
    WEnd

    [/autoit]

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 22:24

    Hi,

    okay. Ich würde nicht If not = sonder If <> gleich machen.

    So long,

    Mega

  • RDP Benutzernamen Passwort Senden

    • Xenobiologist
    • 17. September 2007 um 16:44

    Hi,

    @AppDataDir vielleicht

    So long,

    Mega

  • Email senden.

    • Xenobiologist
    • 17. September 2007 um 16:41

    Hi,

    versuch mal

    Spoiler anzeigen
    [autoit]

    #include <INet.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $s_SmtpServer = "mail.gmx.net"
    $s_FromName = ""
    $s_FromAddress = ""
    $s_ToAddress = ""
    $s_Subject = "My Test UDF"
    $s_UName = ""
    $s_PWD = ""
    Dim $as_Body[2]
    $as_Body[0] = "Testing the new email udf"
    $as_Body[1] = "Second Line"
    $Response = _INetSmtpMailAuth($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_UName, $s_PWD, $s_Subject, $as_Body)
    ;~ $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)
    $err = @error
    If $Response = 1 Then
    MsgBox(0, "Success!", "Mail sent")
    Else
    MsgBox(0, "Error!", "Mail failed with error code " & $err)
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _INetSmtpMailAuth()
    ; Description: Sends an email using SMTP over TCP IP.
    ; Parameter(s): $s_SmtpServer - SMTP server to be used for sending email
    ; $s_FromName - Name of sender
    ; $s_FromAddress - eMail address of sender
    ; $s_ToAddress - Address that email is to be sent to
    ; $s_Username - Username for Authentication (bernd670)
    ; $s_Passwd - Password for Authentication (bernd670)
    ; $s_Subject - Subject of eMail
    ; $as_Body - Single dimension array containing the body of eMail as strings
    ; $s_helo - Helo identifier (default @COMPUTERNAME) sometime needed by smtp server
    ; $s_first - send before Helo identifier (default @CRLF) sometime needed by smtp server
    ; $b_trace - trace on a splash window (default 0 = no trace)
    ; Requirement(s): None
    ; Return Value(s): On Success - Returns 1
    ; On Failure - 0 and sets
    ; @ERROR = 1 - Invalid Parameters
    ; @ERROR = 2 - Unable to start TCP
    ; @ERROR = 3 - Unable to resolve IP
    ; @ERROR = 4 - Unable to create socket
    ; @ERROR = 5x - Cannot open SMTP session
    ; @ERROR = 50x - Cannot send body
    ; @ERROR = 5000 - Cannot close SMTP session
    ; Authors: Original function to send email via TCP - Asimzameer
    ; Conversion to UDF - Walkabout
    ; Correction Helo, timeout, trace - Jpm
    ; Correction send before Helo - Jpm
    ; Include Authentication - bernd670
    ;
    ;===============================================================================
    Func _INetSmtpMailAuth($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Username, $s_Passwd, $s_Subject = "", $as_Body = "", $s_helo = "", $s_first = "-1", $b_trace = 0)

    Local $v_Socket
    Local $s_IPAddress
    Local $i_Count
    Local $s_Send[9]
    Local $s_ReplyCode[9];Return code from SMTP server indicating success

    If $s_SmtpServer = "" Or $s_FromAddress = "" Or $s_ToAddress = "" Or $s_Username = "" Or $s_Passwd = "" Or $s_FromName = "" Or StringLen($s_FromName) > 256 Then
    SetError(1)
    Return 0
    EndIf
    If $s_helo = "" Then $s_helo = @ComputerName
    If TCPStartup() = 0 Then
    SetError(2)
    Return 0
    EndIf
    StringRegExp($s_SmtpServer, "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)")
    If @extended Then
    $s_IPAddress = $s_SmtpServer
    Else
    $s_IPAddress = TCPNameToIP($s_SmtpServer)
    EndIf
    If $s_IPAddress = "" Then
    TCPShutdown()
    SetError(3)
    Return 0
    EndIf
    $v_Socket = TCPConnect($s_IPAddress, 25)
    If $v_Socket = -1 Then
    TCPShutdown()
    SetError(4)
    Return (0)
    EndIf

    $s_Send[0] = "EHLO " & $s_helo & @CRLF
    ;~ If StringLeft($s_helo,5) <> "EHLO " Then $s_Send[0] = "EHLO " & $s_helo & @CRLF
    $s_ReplyCode[0] = "250"

    [/autoit] [autoit][/autoit] [autoit]

    $s_Send[1] = "AUTH LOGIN" & @CRLF
    $s_ReplyCode[1] = "334"
    $s_Send[2] = _Base64Encoding($s_Username) & @CRLF
    $s_ReplyCode[2] = "334"
    $s_Send[3] = _Base64Encoding($s_Passwd) & @CRLF
    $s_ReplyCode[3] = "235"
    $s_Send[4] = "MAIL FROM: <" & $s_FromAddress & ">" & @CRLF
    $s_ReplyCode[4] = "250"
    $s_Send[5] = "RCPT TO: <" & $s_ToAddress & ">" & @CRLF
    $s_ReplyCode[5] = "250"
    $s_Send[6] = "DATA" & @CRLF
    $s_ReplyCode[6] = "354"

    $s_Send[7] = "From: " & $s_FromName & " <" & $s_FromAddress & ">" & @CRLF & _
    "To: " & "<" & $s_ToAddress & ">" & @CRLF & _
    "Subject: " & $s_Subject & @CRLF & _
    "Mime-Version: 1.0" & @CRLF & _
    "Content-Type: text/plain; charset=US-ASCII" & @CRLF & _
    @CRLF
    $s_ReplyCode[7] = ""

    $s_Send[8] = @CRLF & "." & @CRLF
    $s_ReplyCode[8] = "250"

    [/autoit] [autoit][/autoit] [autoit]

    ; open stmp session
    If _SmtpSend ($v_Socket, $s_Send[0], $s_ReplyCode[0], $b_trace, "220", $s_first) Then
    SetError(50)
    Return 0
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    ; send header
    For $i_Count = 0 To UBound($s_Send) - 2
    If _SmtpSend ($v_Socket, $s_Send[$i_Count], $s_ReplyCode[$i_Count], $b_trace) Then
    SetError(50 + $i_Count)
    Return 0
    EndIf
    Next

    ; send body records (a record can be multiline : take care of a subline beginning with a dot should be ..)
    For $i_Count = 0 To UBound($as_Body) - 1
    ; correct line beginning with a dot
    If StringLeft($as_Body[$i_Count], 1) = "." Then $as_Body[$i_Count] = "." & $as_Body[$i_Count]

    If _SmtpSend ($v_Socket, $as_Body[$i_Count] & @CRLF, "", $b_trace) Then
    SetError(500 + $i_Count)
    Return 0
    EndIf
    Next

    ; close the smtp session
    $i_Count = UBound($s_Send) - 1
    If _SmtpSend ($v_Socket, $s_Send[$i_Count], $s_ReplyCode[$i_Count], $b_trace) Then
    SetError(5000)
    Return 0
    EndIf

    TCPCloseSocket($v_Socket)
    TCPShutdown()
    Return 1
    EndFunc ;==>_INetSmtpMailAuth

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _Base64Encoding()
    ; Description: Kodiert eine Zeichenfolge mit dem Base64-Verfahren
    ; (http://de.wikipedia.org/wiki/Base64)
    ; Parameter(s): $String - Zeichenfolge die kodiert werden soll
    ; Requirement(s): None
    ; Return Value(s): Kodierte Zeichenfolge
    ; Authors: bernd670
    ;
    ;===============================================================================
    Func _Base64Encoding($String)

    [/autoit] [autoit][/autoit] [autoit]

    $strUmsetzung = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
    $strRetValue = ""

    [/autoit] [autoit][/autoit] [autoit]

    For $i = 1 To StringLen($String) Step 3
    $strTok = StringMid($String, $i, 3)
    Switch StringLen($strTok)
    Case 3
    $iTokVal = (Asc(StringMid($strTok, 1, 1)) * 256 + _
    Asc(StringMid($strTok, 2, 1))) * 256 + _
    Asc(StringMid($strTok, 3, 1))
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1)
    $iTokVal = BitShift($iTokVal, 6)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1) & $strTokCryt
    $iTokVal = BitShift($iTokVal, 6)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1) & $strTokCryt
    $iTokVal = BitShift($iTokVal, 6)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1) & $strTokCryt
    $strRetValue &= $strTokCryt

    [/autoit] [autoit][/autoit] [autoit]

    Case 2
    $iTokVal = (Asc(StringMid($strTok, 1, 1)) * 256 + _
    Asc(StringMid($strTok, 2, 1))) * 256
    $iTokVal = BitShift($iTokVal, 6)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1)
    $iTokVal = BitShift($iTokVal, 6)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1) & $strTokCryt
    $iTokVal = BitShift($iTokVal, 6)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1) & $strTokCryt
    $strRetValue &= $strTokCryt & "="

    [/autoit] [autoit][/autoit] [autoit]

    Case 1
    $iTokVal = Asc(StringMid($strTok, 1, 1)) * 65536
    $iTokVal = BitShift($iTokVal, 12)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1)
    $iTokVal = BitShift($iTokVal, 6)
    $strTokCryt = StringMid($strUmsetzung, (BitAND($iTokVal, 63)) + 1, 1) & $strTokCryt
    $strRetValue &= $strTokCryt & "=="

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    Next

    [/autoit] [autoit][/autoit] [autoit]

    Return $strRetValue
    EndFunc ;==>_Base64Encoding

    [/autoit]

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 16:33

    Hi,

    genauso. Einfach in einem case Zweig GuiCtrlRead des Inputfed lesen und dann dene Logik eben.

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 16:21

    Hi,

    ist noch was offen, oder findest du dich jetzt zurecht?

    So long,

    Mega

  • Von Handle auf Pfad????

    • Xenobiologist
    • 17. September 2007 um 16:20

    Hi,

    wie bekommst du denn den Handle?

    So long,

    Mega

  • Disconnectchecker Schleife

    • Xenobiologist
    • 17. September 2007 um 15:13

    Hi,

    woran merkst du denn, dass du nicht mehr verbunden bist?

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 15:12

    HI,

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include <Process.au3>
    #include <GuiListView.au3>

    [/autoit] [autoit][/autoit] [autoit]

    Dim $brennpc = "PC1866"
    Dim $text
    Dim $sdir = @ScriptDir

    [/autoit] [autoit][/autoit] [autoit]

    GUICreate("Administrative Freigabe 2.0", 400, 230, 359, 115) ;title,width,height,left,top
    ;GuiSetIcon(@SystemDir & "\mspaint.exe", 0)

    [/autoit] [autoit][/autoit] [autoit]

    $jobrun = GUICtrlCreateButton("ausführen", 14, 100, 75, 25) ;Buttom text,left,top,width,height
    $close = GUICtrlCreateButton("beenden", 14, 140, 75, 25) ;Buttom

    [/autoit] [autoit][/autoit] [autoit]

    $input = GUICtrlCreateInput("hamgujpc", 126, 20, 180, 20, -1) ;text,left,top,width,height,style

    [/autoit] [autoit][/autoit] [autoit]

    $pcliste = GUICtrlCreateListView("Name | PC-Name", 126, 55, 180, 120, -1) ;text,left,top,width,height,style=$LVS_SHOWSELALWAYS
    GUICtrlCreateListViewItem(" PC|1863", $pcliste)
    GUICtrlCreateListViewItem("Test|PC186", $pcliste)

    [/autoit] [autoit][/autoit] [autoit]

    GUICtrlCreateLabel("Eingabe:", 14, 20) ;text,left,top,width,height
    GUICtrlCreateLabel("oder", 14, 40) ;text,left,top,width,height
    GUICtrlCreateLabel("Auswahl:", 14, 60) ;text,left,top,width,height

    [/autoit] [autoit][/autoit] [autoit]

    ;Breite
    _GUICtrlListViewSetColumnWidth ($pcliste, 0, 75)
    _GUICtrlListViewSetColumnWidth ($pcliste, 1, $LVSCW_AUTOSIZE_USEHEADER)

    [/autoit] [autoit][/autoit] [autoit]

    GUISetState(@SW_SHOW)
    ; SORTIEREN! Doppelklick
    Dim $B_DESCENDING[_GUICtrlListViewGetSubItemsCount($pcliste) ]

    [/autoit] [autoit][/autoit] [autoit]

    $msg = 0
    While $msg <> $GUI_EVENT_CLOSE
    $msg = GUIGetMsg()

    [/autoit] [autoit][/autoit] [autoit]

    Select
    Case $msg = $jobrun
    MsgBox(0, "listview item", _GUICtrlListViewGetItemText($pcliste, _GUICtrlListViewGetSelectedIndices($pcliste)))


    ;GUICtrlSetData($pclist,"You clicked button No1|")
    ; Run("explorer.exe \\"& $pcliste &"\c$");
    #cs
    if WinWait("Verbindung zu herstellen","",15) Then
    Send("!b")
    SEND($text &"\admin")

    Send("!k")
    Send("{ASC 043}")
    Send("pw");
    Send("{ASC 033}")
    Send("{ENTER}");
    EndIf
    #ce
    Case $msg = $close
    ;MsgBox(0,"", "the closing button has been clicked",2)
    Exit

    ; SORTIEREN!!!!


    Case $msg = $pcliste
    ; sort the list by the column header clicked on
    _GUICtrlListViewSort($pcliste, $B_DESCENDING, GUICtrlGetState($pcliste))
    EndSelect
    WEnd

    [/autoit]

    So long,

    Mega

  • Anonym.to GUI

    • Xenobiologist
    • 17. September 2007 um 14:22

    Hi,

    willst du es lernen, oder soll jemand das Skript für dich schreiben?

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 13:28

    Hi,

    zeig mal deinen Code, dann kann man besser helfen.

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 13:15

    HI,

    das eine ist die ControlID und das andere ist der Befehl um den Wert der ControlID zu bekommen.

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 12:20

    Hi,

    du willst pro Zeile eine Variable haben um die Zeile anzuspechen, oder?

    Guck dir mal die Bsp in der Hilfe an.

    So long,

    Mega

  • Fragen zu GUICtrlCreateList

    • Xenobiologist
    • 17. September 2007 um 11:46

    Hi,

    meinst du so wie bei ListView mit ListViewItems?

    So long,

    Mega

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™