Jo hast recht
Beiträge von Sprenger120
-
-
Hast du schon Code ?
wenn ja gib mal her
-
Ach du gott Autoit Code in HTML. Das kannste nicht machen. Das is nen riseieges Sicherheutsloch! !!
-
Danke progandy das wars
-
Gib dem Link mal nen Namen dann funzt oder hängs als download an
-
Der Link zum Bild funzt nicht aber ich habe deinen Code mal etwas aufgebessert
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6#include <GUIConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]
#include <GuiImageList.au3>
#include <GuiListView.au3>
#include <Inet.au3>
#include <ListViewConstants.au3>
#include <String.au3>#include <GuiConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]
#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>;~ 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
[/autoit] [autoit][/autoit] [autoit]
Global $zip[6] = ["76646", "71032", "66403", "76227", "67065", "11083"]
Global $hListView = ""
;~ _Main();~ Func _Main()
[/autoit] [autoit][/autoit] [autoit]
Global $hImage,$GUI,$sFilePath,$iResult$GUI = GUICreate("Arbeitsplatz-Wetter-Info", 600, 300)
[/autoit] [autoit][/autoit] [autoit]
; $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))$sFilePath = @ScriptDir & "\wetterhahn.jpg"
[/autoit] [autoit][/autoit] [autoit]; Set the Background Image
[/autoit] [autoit][/autoit] [autoit]
_GUICtrlListView_SetBkImage($hListView, $sFilePath)
GUISetState(); Load images
[/autoit] [autoit][/autoit] [autoit]
$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)_GUICtrlListView_SetImageList($hListView, $hImage, 1)
[/autoit] [autoit][/autoit] [autoit]; Add columns
[/autoit] [autoit][/autoit] [autoit]
_GUICtrlListView_AddColumn($hListView, "Aktuell", 200)
_GUICtrlListView_AddColumn($hListView, "Grad", 50)
_GUICtrlListView_AddColumn($hListView, "Wind", 150)
_GUICtrlListView_AddColumn($hListView, "Feuchtigkeit", 150)Display_Data()
[/autoit] [autoit][/autoit] [autoit]
AdlibRegister("Display_Data", 60000); Loop until user exits
[/autoit] [autoit][/autoit] [autoit]
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
;~ GUIDelete()
;~ EndFunc ;==>_MainFunc CheckINet()
[/autoit] [autoit][/autoit] [autoit]
#cs
local $sIpTCPStartup()
[/autoit] [autoit][/autoit] [autoit]
$sIp = TCPNameToIP("www.google.de")
;MsgBox(64, "sIP", $sIp & " ! " & @error)
TCPShutdown()
Return @error
#ce#cs
[/autoit] [autoit][/autoit] [autoit]
$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#ce ----> Das Geht auch kürzer
[/autoit] [autoit][/autoit] [autoit]$iResult = Ping("www.google.de")
[/autoit] [autoit][/autoit] [autoit]
If Not @error And Not $iResult Then
Return 0
Else
Return -1
EndIfEndFunc ;==>CheckINet
[/autoit] [autoit][/autoit] [autoit]Func _getXML_Weather_data($pcode)
[/autoit] [autoit][/autoit] [autoit]
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="', '"/>')If $Rc <> "" Then
[/autoit] [autoit][/autoit] [autoit]Local $Sonst[5] = ["ist nicht gültig", "N/A", "N/A", "N/A", "N/A"]
[/autoit] [autoit][/autoit] [autoit]
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_dataFunc Display_Data()
[/autoit] [autoit][/autoit] [autoit]
;- msgbox(64,"Display_Ddata","Display_Data" & @CRLF & "Handle: " & $hListView,1)
Local $wetter[5]
; global $hListView
_GUICtrlListView_BeginUpdate($hListView)
_GUICtrlListView_EnableGroupView($hListView)
_GUICtrlListView_DeleteAllItems($hListView)if (CheckINet()) Then
[/autoit] [autoit][/autoit] [autoit]
; Keine aktive Internetverbindung
_GUICtrlListView_AddItem($hListView, "Keine Internetverbindung", 0)
ElseFor $x = 0 To UBound($zip) - 1
[/autoit] [autoit][/autoit] [autoit]
; get data from inet
$wetter = _getXML_Weather_data($zip[$x]); Add items
[/autoit] [autoit][/autoit] [autoit]
_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)_GUICtrlListView_SetItemGroupID($hListView, $x, $x)
[/autoit] [autoit][/autoit] [autoit]Next
[/autoit] [autoit][/autoit] [autoit]
_GUICtrlListView_EndUpdate($hListView)EndIf
[/autoit]
EndFunc ;==>Display_Data -
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. -
Bei Mir Funzts einwandfrei. Danke für das Proggy SEuBo sowas is echt nützlich !




-
Keiner ne Idee ?
-
Vlt so ?
[autoit]
[/autoit][autoit][/autoit][autoit]
#include <AVIConstants.au3>
#include <GUIConstantsEx.au3>
#Include <GuiAVI.au3>GUiCreate("TEST")
[/autoit][autoit][/autoit][autoit]
GUISetState(@SW_SHOW)
$avi = GUICtrlCreateAvi(@scriptDir & "\test.avi", -1, 10, 10)
$WA = GUICtrlCreateLabel("Wiederholungen: 0", 10, 80)
$w = 0While 1
[/autoit]
If Not _GUICtrlAVI_IsPlaying(guictrlgethandle($avi)) Then
_GuiCtrlAVI_Play (guictrlgethandle($avi))
$w += 1
ToolTip("Wiederholungen: " & $w, 1, 1)
EndIf
WEnd -
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]
[/autoit] [autoit][/autoit] [autoit]
#include "WinHTTP.au3"
#include <Array.au3>Global $MIMETypes[8][2] = [ _
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
["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)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)
[/autoit] [autoit][/autoit] [autoit]
;~ """
;~ 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]))_WinHttpReceiveResponse($hRequest)
[/autoit] [autoit][/autoit] [autoit]
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; Prog@ndy
[/autoit] [autoit][/autoit] [autoit]
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$content_type = 'multipart/form-data; boundary="' & $BOUNDARY & '"'
[/autoit] [autoit][/autoit] [autoit]
Local $Return[2] = [$content_type, $L]
;~ return content_type, body
Return $Return
EndFunc ;==>encode_multipart_formdata; Prog@ndy
[/autoit] [autoit][/autoit] [autoit]
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)Local $iUBound = UBound($avArray) - 1
[/autoit] [autoit][/autoit] [autoit]; Bounds checking
[/autoit] [autoit][/autoit] [autoit]
If $iEnd < 1 Or $iEnd > $iUBound Then $iEnd = $iUBound
If $iStart < 0 Then $iStart = 0
If $iStart > $iEnd Then Return SetError(4, 0, -1)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
[/autoit] [autoit][/autoit] [autoit]
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)
WEndIf $iStart > $iEnd Then Return SetError(3, 0, -1) ; Entry not found
[/autoit] [autoit][/autoit] [autoit]Return $iMid
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
EndFunc ;==>_ArrayBinarySearch2D; #FUNCTION# ;===============================================================================
[/autoit] [autoit][/autoit] [autoit]
;
; 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)
EndIfLocal $a_iCall = DllCall("Winhttp.dll", "int", "WinHttpWriteData", _
[/autoit] [autoit][/autoit] [autoit]
"hwnd", $hRequest, _
"ptr", $lpBinary, _
"dword", $iNumberOfBytesToWrite, _
"dword*", 0)If @error Or Not $a_iCall[0] Then
[/autoit] [autoit][/autoit] [autoit]
Return SetError(1, 0, 0)
EndIfReturn SetError(0, $a_iCall[4], 1)
[/autoit] [autoit][/autoit] [autoit]
EndFunc ;==>_WinHttpWriteDataBinFunc getBoundary()
[/autoit] [autoit][/autoit] [autoit]
return Stringleft(_TimeGetStamp()*random(10,256,1), 16)
EndFuncFunc _TimeGetStamp()
[/autoit]
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.comDann noch der PHP Script der die Datei 'annimt'
PHP
Alles anzeigen<?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']); ?>Dann noch die Includes und mein Testbild
Ich hoffe ihr könnt mir Helfen ! -
Schön gemacht aber fortschritt währe schöner
-
Aah ja Danke. Warum einfach wenns auch Kompliziert geht !
-
Versuch mal so
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [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)While 1
[/autoit] [autoit][/autoit] [autoit]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitCase $Button1
[/autoit] [autoit][/autoit] [autoit]
$read1 = GuiCtrlRead($Input1)
$read2 = GuiCtrlRead($Input2)
If $read1 = $read2 then _correct()
If $read1 <> $read2 then MsgBox(0,"","Passwörter stimmen nicht überein")Case $Button2
[/autoit] [autoit][/autoit] [autoit]
$readini = IniRead( "pw.ini", "Password", "Password", "")
MsgBox(0,"Informationen","Ihr aktuelles Password lautet:" &$readini)EndSwitch
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
WEndFunc _correct()
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
Iniwrite ("pw.ini","Password","Password",$read1)
MsgBox (0,"","Succesfull")EndFunc
[/autoit]//Edit: fehler berichtigt
i2c: danke nicht gesehn
-
[autoit]
Iniwrite ("pw.ini","Password","Password",guictrlread($read1))
[/autoit] -
Hi,
ich sollte mal ein Tool bauen um die Klicks an einem Tag zu Zählenblos nach rund 10 Sekunden stürzt das Script einfach ab.
Hier mal mein Script
[autoit]
[/autoit][autoit][/autoit][autoit][/autoit][autoit]
#include "MouseSetOnEvent_UDF.au3"
Global $x = 0
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "_ClickEvent")While Sleep(10)
[/autoit][autoit][/autoit][autoit]
WEndFunc _ClickEvent()
[/autoit]
_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 ;==>_ClickEventUnd die UDF ist im Anhang
schon mal Danke für die Antworten
-
Klar
[autoit]
[/autoit]
$avi = _CreateAvi("C:\Crocoframe\Videos\" & "\crocoframe" &@HOUR &"_"&@MIN &"_" & @SEC & ".avi", 24, @DesktopWidth, @DesktopHeight) -
[autoit]
[/autoit]
$avi = _CreateAvi("C:\Crocoframe\Videos\" & "\crocoframe" &@HOUR &@MIN & @SEC & ".avi", 24, @DesktopWidth, @DesktopHeight) -
Wenn man nach, glaub ich, Frau von der Leyn geht, sind wir alle schwär Prädokeminell, weil wir diese Sperren umgehen können !
-
Also ich finde wenn man seine GUI Design will reichen genügend Bilder und GDI+ aus !