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

Beiträge von Blubkuh

  • Mein Avatar

    • Blubkuh
    • 13. Dezember 2007 um 23:49

    nichts geht über Paint!
    mein avatar ist schon 5 jahre alt und stammt aus einem browsergame und aus einem sehr langweiligem nachmittag xD

  • Contest: uIT! #1 (24.11.2007)

    • Blubkuh
    • 25. November 2007 um 02:16

    Ich glaube nicht das das so gemeint ist, aber da ich mir nicht sicher bin frag ich lieber.

    Ich verstehe diese Aussage von Buffo ganz anders:

    Klar, auch Buchstabensalat. Sobald Sonderzeichen oder Ziffern enthalten sind, werden diese ja ausgeschlossen. Nur "echte" Wörter sollen ja umgestellt werden, da sonst der Sinn verloren geht.

  • Contest: uIT! #1 (24.11.2007)

    • Blubkuh
    • 25. November 2007 um 01:49

    was ist mit wörtern wie:

    "hallo123" oder "das-da"?

    Sollen die so bleiben wie sie sind oder sollen die auch verdreht werden?
    (vielleicht nen Beispiel posten wie eins der beiden wörter aussehen müsste, wenn das prog drübergelaufen ist)

  • TS_Directlink

    • Blubkuh
    • 23. November 2007 um 00:02

    habe das script jetzt nicht ausprobiert aber nen bisl durchgeguckt.

    Du gehst davon aus, dass TS immer bei C:\Programme\Teamspeak2_RC2\TeamSpeak.exe installiert ist.
    Dies wird aber bei vielen(wie bei mir) nicht so sein.
    Vielleicht den Pfad von TS aus der Registry auslesen :)

    Rechtschreibfehler:

    Please insert any name for your link
    ist falsch

    Please choose a name for your link
    wäre richtig

  • Funktion ausführen bei veränderter Variabel

    • Blubkuh
    • 11. November 2007 um 03:44

    das " <> " ist ungleich.
    derda hats nur anders bezeichnet als gtaspider

  • Media Player Hilfe

    • Blubkuh
    • 10. November 2007 um 14:04

    klick doch auf den link. da ist nen beispiel

  • _IE Div Problem

    • Blubkuh
    • 4. November 2007 um 02:43

    ergebnis von Stringbetween wird als array wiedergegeben:

    Spoiler anzeigen
    [autoit]

    #include <String.au3>
    #include <IE.au3>

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

    $oIE = _IECreate("http://www.onlinetvrecorder.com/buyclicks/runningcampaigns.php")
    _IELoadWait($oIE)
    $html = _IEDocReadHTML($oIE)
    $neueSeite = _StringBetween($html, "gotourl('", "');")
    $neueSeite2 = "http://www.onlinetvrecorder.com/buyclicks/runningcampaigns.php" & $neueSeite[0]
    _IENavigate($oIE, $neueSeite2, 0)
    _IELoadWait($oIE)
    Exit

    [/autoit]
  • _IE Div Problem

    • Blubkuh
    • 4. November 2007 um 00:57

    wenn du mir jetzt noch sagst welcher string leer ist könnte ich versuchen zu helfen ;D

  • _IE Div Problem

    • Blubkuh
    • 4. November 2007 um 00:35
    Spoiler anzeigen
    [autoit]

    #include <String.au3>
    #include <IE.au3>

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

    $oIE = _IECreate("http://www.onlinetvrecorder.com/buyclicks/runningcampaigns.php")
    _IELoadWait($oIE)
    $html = _IEBodyReadHTML($oIE)
    $neueSeite = _StringBetween($html, "gotourl('", "');")
    $neueSeite2 = "http://www.onlinetvrecorder.com/buyclicks/runningcampaigns.php" & $neueSeite
    _IENavigate($oIE, "javascript:setCSession()")
    _IENavigate($oIE, $neueSeite2, 0)
    _IELoadWait($oIE)
    _IEImgClick($oIE, $i.src, "src")

    [/autoit]
  • _IE Div Problem

    • Blubkuh
    • 3. November 2007 um 23:09

    [quote]Original von ColdPhoenix

    [autoit]

    $neueSeite = _StringBetween($html, "gotourl('", "');" & '" onMouseUp=')
    $neueSeite2 = "http://www.onlinetvrecorder.com/buyclicks/runningcampaigns.php" & $neueSeite
    _IENavigate($oIE, $neueSeite2, 0)
    _IENavigate($oIE, "javascript:setCSession()", 0)
    _IEImgClick($oIE, $i.src, "src", 0, 1)
    _IELoadWait($oIE)

    [/autoit]

    ähm...
    du hast $html nicht definiert?
    und du benutzt ein & in der Stringbetween funktion? O_o
    kann es sein das du da was falsch verstanden hast?

  • Ich hab da ein Problem mit dem Script

    • Blubkuh
    • 3. November 2007 um 20:38

    5- für diesen post .....

    keine 6 weil du wenigstens spoiler benutzt hast ...
    sollen wir raten was dein prob ist?

  • _IE Div Problem

    • Blubkuh
    • 3. November 2007 um 20:34
    Zitat

    Original von ColdPhoenix
    Ich hab mal nachgesehen was hinter setCSession() steht. Ich wüsste allerdings nicht wie man das aufrufen soll. Beim ersten steht gotourl aber bei setCSession steht das eben nicht. Hier mal das was ich gefunden habe. Ich hoffe das hilft etwas, mich bringt es nicht weiter...

    Code
    function setCSession()
    {
    	x_get('setclicksession.php','hiddendiv');
    }

    Ich kann zwar setclicksession.php aufrufen, allerdings ist das der komplette Quelltext: "&nbsp;". Irgendwie verstehe ich nicht, wo die Punkte gezählt werden.

    du kannst den code nicht sehen, weil das eine php seite ist.
    und du kannst doch einfach zu(javascript ohne leerzeichen zwischen java und script .... macht die seite hier automatisch) javascript:setCSession() navigieren wenn du auf der seite bist. sollte gehen :)

  • _IE Div Problem

    • Blubkuh
    • 3. November 2007 um 19:17

    "onMouseUp='setCSession();'" kann man ja auch als url aufrufen.... und ausserdem geht die seite eh nicht. beim klicken auf die banner geht der counter ned runter sondern bleibt auf 10

  • _IE Div Problem

    • Blubkuh
    • 3. November 2007 um 18:00

    so richtig verstanden hab ichs jetzt nicht wobei du hilfe willst...
    kannst doch einfach mit stringbetween den link von onclick "rausschneiden" und dann als url aufrufen.

  • POST-Daten mit URL übergeben?

    • Blubkuh
    • 29. Oktober 2007 um 22:09
    Zitat

    Original von jonk
    Hoi,

    wenn Du inetget oder _inetgetsource verwendest wird ein Request mit der Methode GET an den Webserver geschickt ... also per URI/URL. Daten mit der Methode Post über eine URL zu senden ist nicht vorgesehen ... dann währe es nämlich wieder ein GET. Post-Daten werden im Header des Request's mitgeschickt.

    weiter infos findest Du zum Beispiel bei wikipedia ...

    Du kannst es ja mal mit der HTTP-UDF aus dem englischen Forum versuchen, die enthält eine _httpPost Methode.

    http.au3

    Spoiler anzeigen
    [autoit]


    ; ===================================================================
    ; HTTP UDF's
    ; v0.5
    ;
    ; By: Greg "Overload" Laabs
    ; Last Updated: 07-22-06
    ; Tested with AutoIt Version 3.1.1.131
    ; Extra requirements: Nothing!
    ;
    ; A set of functions that allow you to download webpages and submit
    ; POST requests.
    ;
    ; Main functions:
    ; _HTTPConnect - Connects to a webserver
    ; _HTTPGet - Submits a GET request to a webserver
    ; _HTTPPost - Submits a POST request to a webserver
    ; _HTTPRead - Reads the response from a webserver
    ; ===================================================================

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

    TCPStartup()

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

    Global $_HTTPUserAgent = "AutoItScript/"&@AutoItVersion
    Global $_HTTPLastSocket = -1
    Global $_HTTPRecvTimeout = 5000

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

    ; ===================================================================
    ; _HTTPSetUserAgent($Program, $Version)
    ;
    ; Sets the User-Agent that will be sent with all future _HTTP
    ; functions. If this is never called, the user agent is set to
    ; AutoItScript/[YourAutoItVersion]
    ; Parameters:
    ; $Program - IN - The name of the program
    ; $Version - IN - The version number of the program
    ; Returns:
    ; None
    ; ===================================================================
    Func _HTTPSetUserAgent($Program, $Version)
    $_HTTPUserAgent = $Program&"/"&$Version
    EndFunc

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

    ; ===================================================================
    ; _HTTPConnect($host, [$port])
    ;
    ; Opens a connection to $host on the port you supply (or 80 if you don't supply a port. Returns the socket of the connection.
    ; Parameters:
    ; $host - IN - The hostname you want to connect to. This should be in the format "www.google.com" or "localhost"
    ; $port - OPTIONAL IN - The port to connect on. 80 is default.
    ; Returns:
    ; The socket of the connection.
    ; Remarks:
    ; Possible @errors:
    ; 1 - Unable to open socket - @extended is set to Windows API WSAGetLasterror return
    ; ===================================================================
    Func _HTTPConnect($host, $port = 80)
    Dim $ip = TCPNameToIP ( $host )
    Dim $socket = TCPConnect ( $ip, 80 )

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

    If ($socket == -1) Then
    SetError(1, @error)
    Return -1
    EndIf

    $_HTTPLastSocket = $socket
    SetError(0)
    Return $socket
    EndFunc

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

    ; Possible @errors:
    ; 1 - No socket
    Func _HTTPClose($socket = -1)
    If $socket == -1 Then
    If $_HTTPLastSocket == -1 Then
    SetError(1)
    Return 0
    EndIf
    $socket = $_HTTPLastSocket
    EndIf
    TCPCloseSocket($socket)

    SetError(0)
    Return 1
    EndFunc

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

    ; ===================================================================
    ; _HTTPGet($host, $page, [$socket])
    ;
    ; Executes a GET request on an open socket.
    ; Parameters:
    ; $host - IN - The hostname you want to get the page from. This should be in the format "www.google.com" or "localhost"
    ; $page - IN - The the file you want to get. This should always start with a slash. Examples: "/somepage.php" or "/somedirectory/somefile.zip"
    ; $socket - OPTIONAL IN - The socket opened by _HTTPConnect. If this is not supplied, the last socket opened with _HTTPConnect will be used.
    ; Returns:
    ; The number of bytes sent in the request.
    ; Remarks:
    ; Possible @errors:
    ; 1 - No socket supplied and no current socket exists
    ; 2 - Error sending to socket. Check @extended for Windows API WSAGetError return
    ; ===================================================================
    Func _HTTPGet($host, $page, $socket = -1)
    Dim $command

    If $socket == -1 Then
    If $_HTTPLastSocket == -1 Then
    SetError(1)
    Return
    EndIf
    $socket = $_HTTPLastSocket
    EndIf

    $command = "GET "&$page&" HTTP/1.1"&@CRLF
    $command &= "Host: " &$host&@CRLF
    $command &= "User-Agent: "&$_HTTPUserAgent&@CRLF
    $command &= "Connection: close"&@CRLF
    $command &= ""&@CRLF

    Dim $bytessent = TCPSend($socket, $command)

    If $bytessent == 0 Then
    SetExtended(@error)
    SetError(2)
    return 0
    EndIf

    SetError(0)
    Return $bytessent
    EndFunc

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

    ; ===================================================================
    ; _HTTPPost($host, $page, [$socket])
    ;
    ; Executes a POST request on an open socket.
    ; Parameters:
    ; $host - IN - The hostname you want to get the page from. This should be in the format "www.google.com" or "localhost"
    ; $page - IN - The the file you want to get. This should always start with a slash. Examples: "/" or "/somedirectory/submitform.php"
    ; $socket - OPTIONAL IN - The socket opened by _HTTPConnect. If this is not supplied, the last socket opened with _HTTPConnect will be used.
    ; $data - OPTIONAL IN - The data to send in the post request. This should first be run through _HTTPEncodeString()
    ; Returns:
    ; The number of bytes sent in the request.
    ; Remarks:
    ; Possible @errors:
    ; 1 - No socket supplied and no current socket exists
    ; 2 - Error sending to socket. Check @extended for Windows API WSAGetError return
    ; ===================================================================
    Func _HTTPPost($host, $page, $socket = -1, $data = "")
    Dim $command

    If $socket == -1 Then
    If $_HTTPLastSocket == -1 Then
    SetError(1)
    Return
    EndIf
    $socket = $_HTTPLastSocket
    EndIf

    Dim $datasize = StringLen($data)

    $command = "POST "&$page&" HTTP/1.1"&@CRLF
    $command &= "Host: " &$host&@CRLF
    $command &= "User-Agent: "&$_HTTPUserAgent&@CRLF
    $command &= "Connection: close"&@CRLF
    $command &= "Content-Type: application/x-www-form-urlencoded"&@CRLF
    $command &= "Content-Length: "&$datasize&@CRLF
    $command &= ""&@CRLF
    $command &= $data&@CRLF

    Dim $bytessent = TCPSend($socket, $command)

    If $bytessent == 0 Then
    SetExtended(@error)
    SetError(2)
    return 0
    EndIf

    SetError(0)
    Return $bytessent
    EndFunc

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

    ; ===================================================================
    ; _HTTPRead([$socket], [$flag])
    ;
    ; Retrieves data from an open socket. This should only be called after _HTTPGet or _HTTPPost is called.
    ; Parameters:
    ; $socket - OPTIONAL IN - The socket you want to receive data from. If this is not supplied, the last socket opened with _HTTPConnect will be used.
    ; $flag - OPTIONAL IN - Determines how the data will be returned. See Remarks.
    ; Returns:
    ; See "Flags" in remarks, below.
    ; Remarks:
    ; Possible @errors:
    ; 1 - No socket
    ; 3 - Timeout reached before any data came through the socket
    ; 4 - Some data came through, but not all of it. Return value is the number of bytes received.
    ; 5 - Unable to parse HTTP Response from server. Return value is the HTTP Response line
    ; 6 - Unexpected header data returned. Return value is the line that caused the error
    ; 7 - Invalid flag
    ; 8 - Unable to parse chunk size. Return value is the line that caused the error
    ; Flags:
    ; 0 - Return value is the body of the page (default)
    ; 1 - Return value is an array:
    ; [0] = HTTP Return Code
    ; [1] = HTTP Return Reason (human readable return code like "OK" or "Forbidden"
    ; [2] = HTTP Version
    ; [3] = Two dimensional array with the headers. Each item has:
    ; [0] = Header name
    ; [1] = Header value
    ; [4] = The body of the page
    ; ===================================================================
    Func _HTTPRead($socket = -1, $flag = 0)
    If $socket == -1 Then
    If $_HTTPLastSocket == -1 Then
    SetError(1)
    Return
    EndIf
    $socket = $_HTTPLastSocket
    EndIf

    Dim $timer = TimerStart()
    Dim $performancetimer = TimerStart()
    Dim $downloadtime = 0

    Dim $headers[1][2] ; An Array of the headers found
    Dim $numheaders = 0 ; The number of headers found
    Dim $body = "" ; The body of the message
    Dim $HTTPVersion ; The HTTP version of the server (almost always 1.1)
    Dim $HTTPResponseCode ; The HTTP response code like 200, or 404
    Dim $HTTPResponseReason ; The human-readable response reason, like "OK" or "Not Found"
    Dim $bytesreceived = 0 ; The total number of bytes received
    Dim $data = "" ; The entire raw message gets put in here.
    Dim $chunked = 0 ; Set to 1 if we get the "Transfer-Encoding: chunked" header.
    Dim $chunksize = 0 ; The size of the current chunk we are processing.
    Dim $chunkprocessed = 0 ; The amount of data we have processed on the current chunk.
    Dim $contentlength ; The size of the body, if NOT using chunked transfer mode.
    Dim $part = 0 ; Refers to what part of the data we're currently parsing:
    ; 0 - Nothing parsed, so HTTP response should come next
    ; 1 - Currently parsing headers
    ; 2 - Currently waiting for the next chunk size - this is skipped if the transfer-encoding is not chunked
    ; 3 - Currently waiting for or parsing body data
    ; 4 - Currently parsing footers
    While 1
    Sleep(10)
    Dim $recv = TCPRecv($socket,16)
    If @error <> 0 Then
    ;ConsoleWrite("Server closed connection")
    ;@error appears to be -1 after the server closes the connection. A good way to tell that we're finished, because we always send
    ;the "Connection: close" header to the server.
    ; !!! This is no longer used because we can now tell that we're done by checking the content-length header or properly handling
    ; chunked data.
    EndIf

    If $recv <> "" Then
    $bytesreceived = $bytesreceived + StringLen($recv)
    $timer = TimerStart()
    $data &= $recv
    ;~ ConsoleWrite("Bytes downloaded: "&$bytesreceived&@CRLF)
    EndIf

    Dim $split = StringSplit($data,@CRLF,1)
    $data = ""
    Dim $i
    For $i=1 To $split[0]
    If $i=$split[0] Then
    If $part < 2 OR $chunked = 1 Then
    ; This is tricky. The last line we've received might be truncated, so we only want to process it under special cases.
    ; Non chunked data doesn't always send a CRLF at the end so there's no way to tell if this is truly the last line without parsing it.
    ; However, we don't want to parse it if it's only a partial header or something.
    ; The solution: We will only process this last line if we're at the body section and the transfer-encoding is NOT chunked.
    $data = $split[$i]
    ExitLoop
    EndIf
    EndIf

    Dim $newpart = $part
    Switch $part
    Case 0 ; Nothing parsed, so HTTP response should come next
    If $split[$i] <> "" Then
    Dim $regex = StringRegExp($split[$i],"^HTTP/([0-9.]+) ([0-9]+) ([a-zA-Z0-9 ]+)$",3)
    If @extended = 0 Then
    SetError(5)
    Return $split[$i]
    Else
    $HTTPVersion = $regex[0]
    $HTTPResponseCode = $regex[1]
    $HTTPResponseReason = $regex[2]
    If $HTTPResponseCode <> 100 Then
    $newpart = 1
    EndIf
    EndIf
    EndIf
    Case 1, 4 ; Currently parsing headers or footers
    ;If the line is blank, then we're done with headers and the body is next
    If $split[$i] == "" Then
    If $part = 1 Then
    If $chunked Then
    $newpart = 2
    Else
    $newpart = 3
    EndIf
    ElseIf $part = 4 Then
    ; If $part is 4 then we're processing footers, so we're all done now.
    ExitLoop 2
    EndIf
    Else ;The line wasn't blank
    ;Check to see if the line begins with whitespace. If it does, it's actually
    ;a continuation of the previous header
    Dim $regex = StringRegExp($split[$i],"^[ \t]+([^ \t].*)$",3)
    If @extended = 1 Then
    If $numheaders == 0 Then
    SetError(6)
    Return $split[$i]
    EndIf
    $headers[$numheaders-1][1] &= $regex[0]
    Else;The line didn't start with a space
    Dim $regex = StringRegExp($split[$i],"^([^ :]+):[ \t]*(.*)$",3)
    If @extended = 1 Then
    ;This is a new header, so add it to the array
    $numheaders = $numheaders + 1
    ReDim $headers[$numheaders][2]
    $headers[$numheaders-1][0] = $regex[0]
    $headers[$numheaders-1][1] = $regex[1]

    ; There are a couple headers we need to know about. We'll process them here.
    If $regex[0] = "Transfer-Encoding" AND $regex[1] = "chunked" Then
    $chunked = 1
    ElseIf $regex[0] = "Content-Length" Then
    $contentlength = Int($regex[1])
    EndIf
    Else
    SetError(6)
    Return $split[$i]
    EndIf
    EndIf
    EndIf
    Case 2 ; Awaiting chunk size
    $regex = StringRegExp($split[$i],"^([0-9a-f]+);?.*$",3)
    If @extended = 0 Then
    SetError(8)
    Return $split[$i]
    EndIf
    $chunksize = $regex[0]
    $chunksize = Dec($chunksize)
    $chunkprocessed = 0

    If $chunksize == 0 Then
    $newpart = 4
    Else
    $newpart = 3
    EndIf
    Case 3 ; Awaiting body data
    $body &= $split[$i]

    $chunkprocessed = $chunkprocessed + StringLen($split[$i])

    If $chunked Then
    If $chunkprocessed >= $chunksize Then
    $newpart = 2
    Else
    $body &= @CRLF
    $chunkprocessed = $chunkprocessed + 2; We add 2 for the CRLF we stipped off.
    EndIf
    Else
    If $chunkprocessed >= $contentlength Then
    ExitLoop 2
    Else
    If $i < $split[0] Then
    ; Only add a CRLF if this is not the last line received.
    $body &= @CRLF
    $chunkprocessed = $chunkprocessed + 2; We add 2 for the CRLF we stipped off.
    EndIf
    EndIf
    EndIf
    Case Else
    ; This should never happen
    EndSwitch
    $part = $newpart
    Next

    If $bytesreceived == 0 AND TimerDiff($timer) > $_HTTPRecvTimeout Then
    SetError(3)
    Return 0
    ElseIf $bytesreceived > 0 AND TimerDiff($timer) > $_HTTPRecvTimeout Then
    ConsoleWrite($body)
    SetError(4)
    Return $bytesreceived
    EndIf
    WEnd
    $downloadtime = TimerDiff($performancetimer)
    ;ConsoleWrite("Performance: Download time: "&$downloadtime&@CRLF)

    Switch $flag
    Case 0
    SetError(0)
    Return $body
    Case 1
    Dim $return[5]
    $return[0] = $HTTPResponseCode
    $return[1] = $HTTPResponseReason
    $return[2] = $HTTPVersion
    $return[3] = $headers
    $return[4] = $body
    SetError(0)
    Return $return
    Case Else
    SetError(7)
    Return 0
    EndSwitch
    EndFunc

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

    ; ===================================================================
    ; _HTTPEncodeString($string)
    ;
    ; Encodes a string so it can safely be transmitted via HTTP
    ; Parameters:
    ; $string - IN - The string to encode
    ; Returns:
    ; A valid encoded string that can be used as GET or POST variables.
    ; ===================================================================
    Func _HTTPEncodeString($string)
    Local Const $aURIValidChars[256] = _
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _
    0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, _
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, _
    0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, _
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

    Local $sEncoded = ""
    For $i = 1 To StringLen($string)
    Local $c = StringMid($string, $i, 1)
    If $c = " " Then $c = "+"
    If Number($aURIValidChars[Asc($c) ]) Then
    $sEncoded &= $c
    Else
    $sEncoded &= StringFormat("%%%02X", Asc($c))
    EndIf
    Next

    Return $sEncoded
    EndFunc ;==>_WebComposeURL

    [/autoit]

    ein Beispiel:

    Spoiler anzeigen
    [autoit]


    #include <HTTP.au3>
    $host = "www.apartment167.com"
    $page = "/overload/autoit/postpage.php"
    $vars = "examplevariable=examplevalue&anothervar=anotherval&yetanothervariable=yet another value, this time with spaces and puncuation!"
    $vars = _HTTPEncodeString($vars)

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

    ConsoleWrite(@CRLF&@CRLF&"Example POST Request:"&@CRLF)
    $socket = _HTTPConnect($host)
    ConsoleWrite("Socket Created: "&$socket&@CRLF)
    $get = _HTTPPost($host, $page, $socket, $vars)
    ConsoleWrite("Bytes sent: "&$get&@CRLF)
    $recv = _HTTPRead($socket,1)
    If @error Then
    ConsoleWrite("_HTTPRead Error: "&@error&@CRLF)
    ConsoleWrite("_HTTPRead Return Value: "&$recv &@CRLF)
    Else
    ConsoleWrite("HTTP Return Code: "&$recv[0]&@CRLF)
    ConsoleWrite("HTTP Return Response: "&$recv[1]&@CRLF)
    ConsoleWrite("Number of headers: "&UBound($recv[3])&@CRLF)
    ConsoleWrite("Size of data downloaded: "&StringLen($recv[4])&" bytes"&@CRLF)
    ConsoleWrite("Page downloaded: "&@CRLF&$recv[4]&@CRLF)
    EndIf

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

    _HTTPClose($socket)

    [/autoit]
    Alles anzeigen

    Hey jonk

    leider funzt die http.au3 bei mir nicht.
    Fehler ist folgender:
    C:\PROGRA~1\AutoIt3\Include\http.au3(219,26) : ERROR: TimerStart(): undefined function.
    Dim $timer = TimerStart()

    ausserdem habe ich im englischen forum keine http.au3 gefunden. (Ein Link wäre sehr nett:))


    LG Blubkuh

  • Pointer Position

    • Blubkuh
    • 24. Oktober 2007 um 22:59

    wäre einer so gütig?


    Caret? WTF?


    so euer Zug x)


    edit: ahhhhhhhhhhhh habs nochmal gelesen und da hats pling gemacht ~_~
    jetzt weis ich auch was Caret ist. auch wenns laut wiki was anderes ist ^^

  • Pointer Position

    • Blubkuh
    • 24. Oktober 2007 um 22:53
    Zitat

    Original von Yarella
    Ich meine nicht die Position der Maus. ...
    Ich benötige aber die Position, wo der Cursor blinkt.


    Ist das beides ned das gleiche?

    und

    Mein Cursor blinkt nicht O_o
    könnteste genauer erklären was du meinst? oder vielleicht nen screen machen wenns geht?


    ansonsten: MouseGetPos () um die x und y Koordinaten des mauszegers rauszufinden

  • +1 ?`??

    • Blubkuh
    • 20. Oktober 2007 um 19:06
    Spoiler anzeigen
    [autoit]

    sleep(5000)
    $nr = 0

    While 1
    send("hallo")
    $nr=$nr+1
    If $nr = 5 then
    Exit
    EndIf
    wend

    [/autoit]
  • AutoIt.de <> TS²

    • Blubkuh
    • 13. Oktober 2007 um 23:23

    42 ist übrigends die antwort auf sie Frage „nach dem Leben, dem Universum und dem ganzen Rest“

    ... wollt ich nur mal sagen :D

  • pingTooL

    • Blubkuh
    • 9. Oktober 2007 um 20:49

    also meine firewall fängt ping ja nicht ab :)
    [/OT]

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™