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. Sprenger120

Beiträge von Sprenger120

  • Blume-HTTP-Server

    • Sprenger120
    • 16. Juni 2010 um 17:10

    Jo hast recht

  • Variable + -

    • Sprenger120
    • 16. Juni 2010 um 16:56

    Hast du schon Code ?

    wenn ja gib mal her

  • Blume-HTTP-Server

    • Sprenger120
    • 16. Juni 2010 um 16:55

    Ach du gott Autoit Code in HTML. Das kannste nicht machen. Das is nen riseieges Sicherheutsloch! !!

  • Problem mit WinHTTP Upload

    • Sprenger120
    • 16. Juni 2010 um 16:00

    Danke progandy das wars

  • _GUICtrlListView_SetBkImage löscht meine Bilder

    • Sprenger120
    • 16. Juni 2010 um 15:32

    Gib dem Link mal nen Namen dann funzt oder hängs als download an

  • _GUICtrlListView_SetBkImage löscht meine Bilder

    • Sprenger120
    • 16. Juni 2010 um 15:17

    Der Link zum Bild funzt nicht aber ich habe deinen Code mal etwas aufgebessert

    Spoiler anzeigen
    [autoit]


    #AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6

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

    #include <GUIConstantsEx.au3>
    #include <GuiImageList.au3>
    #include <GuiListView.au3>
    #include <Inet.au3>
    #include <ListViewConstants.au3>
    #include <String.au3>

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

    #include <GuiConstantsEx.au3>
    #include <GuiListView.au3>
    #include <GuiImageList.au3>
    #include <string.au3>
    #include <inet.au3>
    #include <ListViewConstants.au3>
    #include <GuiListView.au3>
    #include <GUIConstantsEx.au3>
    #include <String.au3>
    #include <GuiConstantsEx.au3>
    #include <GuiListView.au3>
    #include <GuiImageList.au3>

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

    ;~ Opt('MustDeclareVars', 1)

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

    $Debug_LV = False ; Check ClassName being passed to ListView functions, set to True and use a handle to another control to see it work
    Global $zip[6] = ["76646", "71032", "66403", "76227", "67065", "11083"]
    Global $hListView = ""
    ;~ _Main()

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

    ;~ Func _Main()
    Global $hImage,$GUI,$sFilePath,$iResult

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

    $GUI = GUICreate("Arbeitsplatz-Wetter-Info", 600, 300)
    ; $pic = GUICtrlCreatePic("msde10081077bd1.jpg",2,2,588,298)
    ;$hListView = GUICtrlCreateListView("", 2, 2, 594, 268)
    $hListView = _GUICtrlListView_Create($GUI, "", 2, 2, 594, 268)
    _GUICtrlListView_SetExtendedListViewStyle($hListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES))

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

    $sFilePath = @ScriptDir & "\wetterhahn.jpg"

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

    ; Set the Background Image
    _GUICtrlListView_SetBkImage($hListView, $sFilePath)
    GUISetState()

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

    ; Load images
    $hImage = _GUIImageList_Create()
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 110)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 131)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 165)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 168)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 137)
    _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 146)

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

    _GUICtrlListView_SetImageList($hListView, $hImage, 1)

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

    ; Add columns
    _GUICtrlListView_AddColumn($hListView, "Aktuell", 200)
    _GUICtrlListView_AddColumn($hListView, "Grad", 50)
    _GUICtrlListView_AddColumn($hListView, "Wind", 150)
    _GUICtrlListView_AddColumn($hListView, "Feuchtigkeit", 150)

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

    Display_Data()
    AdlibRegister("Display_Data", 60000)

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

    ; Loop until user exits
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    ;~ GUIDelete()
    ;~ EndFunc ;==>_Main

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

    Func CheckINet()
    #cs
    local $sIp

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

    TCPStartup()
    $sIp = TCPNameToIP("www.google.de")
    ;MsgBox(64, "sIP", $sIp & " ! " & @error)
    TCPShutdown()
    Return @error
    #ce

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

    #cs
    $iResult = Ping("www.google.de")
    Switch @error
    Case 0
    return 0
    Case 1
    return -1
    Case 2
    return -1
    Case 3
    return -1
    Case 4
    return -1
    EndSwitch
    return @error

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

    #ce ----> Das Geht auch kürzer

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

    $iResult = Ping("www.google.de")
    If Not @error And Not $iResult Then
    Return 0
    Else
    Return -1
    EndIf

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

    EndFunc ;==>CheckINet

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

    Func _getXML_Weather_data($pcode)
    Local $Api, $XML_Source, $Rc, $City, $Wstatus, $Temp, $Wind, $Humidity
    $Api = "http://www.google.com/ig/api?weather=" & $pcode & ',Germany&hl=de'
    $XML_Source = _INetGetSource($Api)
    $Rc = _StringBetween($XML_Source, '<problem_cause data="', '"/>')

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

    If $Rc <> "" Then

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

    Local $Sonst[5] = ["ist nicht gültig", "N/A", "N/A", "N/A", "N/A"]
    Local $MyWeather[5] = [$Sonst[0], $Sonst[1], $Sonst[2] & " °C", $Sonst[3], $Sonst[4]]
    Else
    $City = _StringBetween($XML_Source, '<city data="', '"/>')
    $Wstatus = _StringBetween($XML_Source, '<condition data="', '"/>')
    $Temp = _StringBetween($XML_Source, '<temp_c data="', '"/>')
    $Wind = _StringBetween($XML_Source, '<wind_condition data="', '"/>')
    $Humidity = _StringBetween($XML_Source, '<humidity data="', '"/>')
    ;Return
    Local $MyWeather[5] = [$City[0], $Wstatus[0], $Temp[0] & " °C", $Wind[0], $Humidity[0]]
    EndIf
    Return $MyWeather
    EndFunc ;==>_getXML_Weather_data

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

    Func Display_Data()
    ;- msgbox(64,"Display_Ddata","Display_Data" & @CRLF & "Handle: " & $hListView,1)
    Local $wetter[5]
    ; global $hListView
    _GUICtrlListView_BeginUpdate($hListView)
    _GUICtrlListView_EnableGroupView($hListView)
    _GUICtrlListView_DeleteAllItems($hListView)

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

    if (CheckINet()) Then
    ; Keine aktive Internetverbindung
    _GUICtrlListView_AddItem($hListView, "Keine Internetverbindung", 0)
    Else

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

    For $x = 0 To UBound($zip) - 1
    ; get data from inet
    $wetter = _getXML_Weather_data($zip[$x])

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

    ; Add items
    _GUICtrlListView_AddItem($hListView, $wetter[1])
    _GUICtrlListView_InsertGroup($hListView, -1, $x, $zip[$x] & " " & $wetter[0])
    _GUICtrlListView_AddSubItem($hListView, $x, $wetter[2], 1, 1)
    _GUICtrlListView_AddSubItem($hListView, $x, $wetter[3], 2)
    _GUICtrlListView_AddSubItem($hListView, $x, $wetter[4], 3, 4)

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

    _GUICtrlListView_SetItemGroupID($hListView, $x, $x)

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

    Next
    _GUICtrlListView_EndUpdate($hListView)

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

    EndIf
    EndFunc ;==>Display_Data

    [/autoit]
  • Neuer PC

    • Sprenger120
    • 16. Juni 2010 um 15:05
    Zitat von Techmix

    Der hatte vorher ein Celeron (D) 2,6; Ist ein echter Quantensprung gewesen!


    Dass kann ich mir denken ein Sprung von Intel zu AMD merkt mann sofort und wenn man vorher nen Celeron drinne hatte merkt mann das noch doller.

  • CallTips automatisch in SciTE eintragen

    • Sprenger120
    • 16. Juni 2010 um 14:55

    Bei Mir Funzts einwandfrei. Danke für das Proggy SEuBo sowas is echt nützlich ! :thumbup::thumbup::thumbup::thumbup:

  • Problem mit WinHTTP Upload

    • Sprenger120
    • 16. Juni 2010 um 14:52

    Keiner ne Idee ?

  • Problem mit _GUICtrlAVI_IsPlaying

    • Sprenger120
    • 15. Juni 2010 um 20:25

    Vlt so ?

    [autoit]


    #include <AVIConstants.au3>
    #include <GUIConstantsEx.au3>
    #Include <GuiAVI.au3>

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

    GUiCreate("TEST")
    GUISetState(@SW_SHOW)
    $avi = GUICtrlCreateAvi(@scriptDir & "\test.avi", -1, 10, 10)
    $WA = GUICtrlCreateLabel("Wiederholungen: 0", 10, 80)
    $w = 0

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

    While 1
    If Not _GUICtrlAVI_IsPlaying(guictrlgethandle($avi)) Then
    _GuiCtrlAVI_Play (guictrlgethandle($avi))
    $w += 1
    ToolTip("Wiederholungen: " & $w, 1, 1)
    EndIf
    WEnd

    [/autoit]
  • Problem mit WinHTTP Upload

    • Sprenger120
    • 15. Juni 2010 um 20:23

    Hi,
    ich habe mal ne weile gegooglet und habe mir da was zusammengefummelt aber leider Funzt das nicht ?(

    Ich bekommen keine ersichtlichen errors. Aber die Datei wird nicht Hochgeladen.

    Hier mein Scipt

    Spoiler anzeigen
    [autoit]


    #include "WinHTTP.au3"
    #include <Array.au3>

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

    Global $MIMETypes[8][2] = [ _
    ["bmp", "image/bmp"], _
    ["gif", "image/gif"], _
    ["jpe", "image/jpeg"], _
    ["jpeg", "image/jpeg"], _
    ["jpg", "image/jpeg"], _
    ["png", "image/png"], _
    ["tif", "image/tiff"], _
    ["tiff", "image/tiff"]]
    _ArraySort($MIMETypes, 0, 0, 0, 2)

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

    dim $form_files[1][2] = [["fileupload","Avatar.jpg"]]

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

    post_multipart("http://localhost/submit.php","",0,$form_files)

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

    Func post_multipart($host, $selector, $fields, $files)
    ;~ """
    ;~ Post fields and files to an http host as multipart/form-data.
    ;~ fields is a sequence of (name, value) elements for regular form fields.
    ;~ files is a sequence of (name, filename, value) elements for data to be uploaded as files
    ;~ Return the server's response page.
    ;~ """
    Local $Return = encode_multipart_formdata($fields, $files)
    Local $content_type = 'Content-Type: ' & $Return[0] & @CRLF
    ;~ $body = $Return[1]
    Local $URL = _WinHttpCrackUrl($host)
    _ArrayDisplay($Return)
    Local $hSession = _WinHttpOpen()
    Local $hConnection = _WinHTTPConnect($hSession,$URL[2],$URL[3])
    Local $hRequest = _WinHttpOpenRequest($hConnection,"POST",$URL[6]&$URL[7],"HTTP/1.1","http://"&$URL[2])
    _WinHttpSendRequest($hRequest,$content_type,$WINHTTP_NO_REQUEST_DATA,StringLen($Return[1]))
    _WinHTTPWriteDataBin($hRequest,StringToBinary($Return[1]))

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

    _WinHttpReceiveResponse($hRequest)
    Local $Return[2]
    If _WinHttpQueryDataAvailable($hRequest) Then
    Local $temp
    While 1
    $temp = _WinHttpReadData($hRequest)
    If $temp = "" Then ExitLoop
    $Return[1] &=$temp
    WEnd
    $temp =""
    ; Does not work since @error is 0, when no more data is available
    ;~ Do
    ;~ $Return[1] &= _WinHttpReadData($hRequest)
    ;~ Until @error <> 0
    EndIf
    $Return[0] = _WinHttpQueryHeaders($hRequest)
    _WinHttpCloseHandle($hRequest)
    _WinHttpCloseHandle($hConnection)
    _WinHttpCloseHandle($hSession)
    Return $Return
    EndFunc ;==>post_multipart

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

    ; Prog@ndy
    Func encode_multipart_formdata($fields, $files)
    ;~ """
    ;~ fields is a sequence of (name, value) elements for regular form fields.
    ;~ files is a sequence of (name, filename, value) elements for data to be uploaded as files
    ;~ Return (content_type, body) ready for httplib.HTTP instance
    ;~ """
    Local Const $BOUNDARY = getBoundary()
    ;~ CRLF = '\r\n'
    $L = ""
    For $i = 0 To UBound($fields) - 1
    $L &= ('--' & $BOUNDARY) & @CRLF
    $L &= ('Content-Disposition: form-data; name="' & $fields[$i][0] & '"') & @CRLF
    $L &= @CRLF
    $L &= $fields[$i][1] & @CRLF
    Next
    For $i = 0 To UBound($files) - 1
    $L &= ('--' & $BOUNDARY) & @CRLF
    $L &= ('Content-Disposition: form-data; name="' & $files[$i][0] & '"; filename="' & $files[$i][1] & '"') & @CRLF
    $content_type = get_content_type($files[$i][1])
    $L &= ('Content-Type: ' & $content_type) & @CRLF
    $L &= @CRLF
    ;~ If StringLeft($content_type, 5) <> "text/" Then
    ;~ $f = FileOpen($files[$i][1], 16)
    ;~ $L &= BinaryToString(FileRead($f)) & @CRLF
    ;~ FileClose($f)
    ;~ Else
    $L &= FileRead($files[$i][1]) & @CRLF
    ;~ EndIf
    Next
    $L &= ('--' & $BOUNDARY & '--') & @CRLF
    $L &= @CRLF

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

    $content_type = 'multipart/form-data; boundary="' & $BOUNDARY & '"'
    Local $Return[2] = [$content_type, $L]
    ;~ return content_type, body
    Return $Return
    EndFunc ;==>encode_multipart_formdata

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

    ; Prog@ndy
    Func get_content_type($path)
    ;~ Return "application/octet-stream"
    Local $szExt = StringLower(StringRegExpReplace( $path ,".*(?:\.([^.\\/]*))?\Z","$1"))
    ;~ ConsoleWrite(StringTrimLeft($szExt, 1) & @CRLF)
    If $szExt = "" Then Return 'application/octet-stream'
    Local $mimeid = _ArrayBinarySearch2D($MIMETypes, $szExt)
    ;~ ConsoleWrite($mimeid & @error & @CRLF)
    If $mimeid = -1 Then Return SetError(1, 0, 'application/octet-stream')
    Return $MIMETypes[$mimeid][1]
    EndFunc ;==>get_content_type
    ;===============================================================================
    ;
    ; Function Name: _ArrayBinarySearch()
    ; Description: Uses the binary search algorithm to search through a
    ; 1-dimensional array.
    ; Author(s): Jos van der Zande <jdeb at autoitscript dot com>
    ; Modified: Prog@ndy
    ;
    ;===============================================================================
    Func _ArrayBinarySearch2D(Const ByRef $avArray, $vValue, $iStart = 0, $Column = 0, $iEnd = 0)
    If Not IsArray($avArray) Then Return SetError(1, 0, -1)

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

    Local $iUBound = UBound($avArray) - 1

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

    ; Bounds checking
    If $iEnd < 1 Or $iEnd > $iUBound Then $iEnd = $iUBound
    If $iStart < 0 Then $iStart = 0
    If $iStart > $iEnd Then Return SetError(4, 0, -1)

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

    Local $iMid = Int(($iEnd + $iStart) / 2)

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

    If $avArray[$iStart][$Column] > $vValue Or $avArray[$iEnd][$Column] < $vValue Then Return SetError(2, 0, -1)

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

    ; Search
    While $iStart <= $iMid And $vValue <> $avArray[$iMid][$Column]
    If $vValue < $avArray[$iMid][$Column] Then
    $iEnd = $iMid - 1
    Else
    $iStart = $iMid + 1
    EndIf
    $iMid = Int(($iEnd + $iStart) / 2)
    WEnd

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

    If $iStart > $iEnd Then Return SetError(3, 0, -1) ; Entry not found

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

    Return $iMid
    EndFunc ;==>_ArrayBinarySearch2D

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

    ; #FUNCTION# ;===============================================================================
    ;
    ; Name...........: _WinHttpWriteDataBin
    ; Description ...: Writes request data to an HTTP server.
    ; Syntax.........: _WinHttpWriteData($hRequest, $string)
    ; Parameters ....: $hRequest - Valid handle returned by _WinHttpSendRequest().
    ; $binary - Binary data to write.
    ; Return values .: Success - Returns 1
    ; - Sets @error to 0
    ; - sets @extended to written bytes
    ; Failure - Returns 0 and sets @error:
    ; |1 - DllCall failed.
    ; Author ........: trancexx
    ; Modified.......: ProgAndy
    ; Remarks .......:
    ; Related .......:
    ; Link ..........; http://msdn.microsoft.com/en-us/library/aa384120(VS.85).aspx
    ; Example .......; Yes
    ;
    ;==========================================================================================
    Func _WinHttpWriteDataBin($hRequest, $binary)
    Local $lpBinary
    Local $iNumberOfBytesToWrite
    If IsDllStruct($binary) Then
    $lpBinary = DllStructGetPtr($binary)
    $iNumberOfBytesToWrite = DllStructGetSize($binary)
    Else
    $iNumberOfBytesToWrite = BinaryLen($binary)
    Local $sBinary = DllStructCreate("byte[" & $iNumberOfBytesToWrite & "]")
    DllStructSetData($sBinary, 1, $binary)
    $lpBinary = DllStructGetPtr($sBinary)
    EndIf

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

    Local $a_iCall = DllCall("Winhttp.dll", "int", "WinHttpWriteData", _
    "hwnd", $hRequest, _
    "ptr", $lpBinary, _
    "dword", $iNumberOfBytesToWrite, _
    "dword*", 0)

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

    If @error Or Not $a_iCall[0] Then
    Return SetError(1, 0, 0)
    EndIf

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

    Return SetError(0, $a_iCall[4], 1)
    EndFunc ;==>_WinHttpWriteDataBin

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

    Func getBoundary()
    return Stringleft(_TimeGetStamp()*random(10,256,1), 16)
    EndFunc

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

    Func _TimeGetStamp()
    Local $av_Time
    $av_Time = DllCall('CrtDll.dll', 'long:cdecl', 'time', 'ptr', 0)
    If @error Then
    SetError(99)
    Return False
    EndIf
    Return $av_Time[0]
    EndFunc ;==>by therks at autoitscript.com

    [/autoit]

    Dann noch der PHP Script der die Datei 'annimt'

    PHP
    <?php
    
    
    if (!isset($_FILES['probe']) and  $_FILES['probe']['error']) {
    	echo "Error: -1";
    	exit;
    }
    if ($_FILES['probe']['size'] > 1024*1024*100) {
    		echo "Error: -2";
    		exit;
    }
    
    
    echo "Name:".$_FILES['probe']['name']."<br />";
    echo "Size:".$_FILES['probe']['size']."<br />";
    echo "Type:".$_FILES['probe']['type']."<br />";
    
    
    move_uploaded_file($_FILES['probe']['tmp_name'], "./".$_FILES['probe']['name']);
    
    
    ?>
    Alles anzeigen

    Dann noch die Includes und mein Testbild
    Ich hoffe ihr könnt mir Helfen !

    Bilder

    • Avatar.jpg
      • 5,7 kB
      • 120 × 120
  • _FormatDisk - Funktion zum Formatieren

    • Sprenger120
    • 15. Juni 2010 um 16:56

    Schön gemacht aber fortschritt währe schöner

  • Script stürzt ab bei Maus Hook

    • Sprenger120
    • 15. Juni 2010 um 16:04

    Aah ja Danke. Warum einfach wenns auch Kompliziert geht !

  • Kleine Ini. Problem

    • Sprenger120
    • 15. Juni 2010 um 15:48

    Versuch mal so

    Spoiler anzeigen
    [autoit]


    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 438, 351, 192, 124)
    GUISetFont(12, 400, 0, "MS Sans Serif")
    $Input1 = GUICtrlCreateInput("Password", 136, 80, 241, 28)
    $Input2 = GUICtrlCreateInput("Password", 136, 144, 241, 28)
    $Label1 = GUICtrlCreateLabel("Password :", 40, 80, 91, 24)
    GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
    $Label2 = GUICtrlCreateLabel("Bestätigen:", 32, 143, 96, 24)
    GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
    $Label3 = GUICtrlCreateLabel("Legen Sie ihr Sysrem Password fest", 128, 16, 258, 24)
    $Button1 = GUICtrlCreateButton("Übernehmen", 128, 232, 105, 33, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("Information", 264, 232, 113, 33, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    $read1 = GuiCtrlRead($Input1)
    $read2 = GuiCtrlRead($Input2)

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    Case $Button1
    $read1 = GuiCtrlRead($Input1)
    $read2 = GuiCtrlRead($Input2)
    If $read1 = $read2 then _correct()
    If $read1 <> $read2 then MsgBox(0,"","Passwörter stimmen nicht überein")

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

    Case $Button2
    $readini = IniRead( "pw.ini", "Password", "Password", "")
    MsgBox(0,"Informationen","Ihr aktuelles Password lautet:" &$readini)

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

    EndSwitch
    WEnd

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

    Func _correct()
    Iniwrite ("pw.ini","Password","Password",$read1)
    MsgBox (0,"","Succesfull")

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

    EndFunc

    [/autoit]

    //Edit: fehler berichtigt

    i2c: danke nicht gesehn

  • Kleine Ini. Problem

    • Sprenger120
    • 15. Juni 2010 um 15:41
    [autoit]

    Iniwrite ("pw.ini","Password","Password",guictrlread($read1))

    [/autoit]
  • Script stürzt ab bei Maus Hook

    • Sprenger120
    • 15. Juni 2010 um 15:36

    Hi,
    ich sollte mal ein Tool bauen um die Klicks an einem Tag zu Zählen

    blos nach rund 10 Sekunden stürzt das Script einfach ab.

    Hier mal mein Script

    [autoit]


    #include "MouseSetOnEvent_UDF.au3"
    Global $x = 0
    _MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "_ClickEvent")

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

    While Sleep(10)
    WEnd

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

    Func _ClickEvent()
    _MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT)
    $Pos = MouseGetPos()
    If IsArray($Pos) Then MouseClick("left", $Pos[0], $Pos[1])
    _MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "_ClickEvent")
    $x += 1
    ConsoleWrite($x & @CRLF)
    EndFunc ;==>_ClickEvent

    [/autoit]

    Und die UDF ist im Anhang

    schon mal Danke für die Antworten

    Dateien

    MouseSetOnEvent_UDF.au3 13,33 kB – 207 Downloads
  • Arrays?? wie funktionieren sie??

    • Sprenger120
    • 15. Juni 2010 um 14:03

    Klar

    [autoit]


    $avi = _CreateAvi("C:\Crocoframe\Videos\" & "\crocoframe" &@HOUR &"_"&@MIN &"_" & @SEC & ".avi", 24, @DesktopWidth, @DesktopHeight)

    [/autoit]
  • Arrays?? wie funktionieren sie??

    • Sprenger120
    • 15. Juni 2010 um 13:48
    [autoit]


    $avi = _CreateAvi("C:\Crocoframe\Videos\" & "\crocoframe" &@HOUR &@MIN & @SEC & ".avi", 24, @DesktopWidth, @DesktopHeight)

    [/autoit]
  • Internetzensur - Nein Danke

    • Sprenger120
    • 14. Juni 2010 um 21:06

    Wenn man nach, glaub ich, Frau von der Leyn geht, sind wir alle schwär Prädokeminell, weil wir diese Sperren umgehen können !

  • [Frage] HTML/CSS als Design für GUI

    • Sprenger120
    • 14. Juni 2010 um 21:01

    Also ich finde wenn man seine GUI Design will reichen genügend Bilder und GDI+ aus !

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™