Jump to content

CFIHS

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by CFIHS

  1. https://raw.github.com/Silvernine0S/FolderMenu3EX/master/Include/_XMLDomWrapper.au3
  2. Suggestion: Rename _FB_BoxReady to _FB_Ready.
  3. I want to download a automatically generated textdocument with WinHTTP. Thank you in advance. <form method="POST" action="/https/www.autoitscript.com/abc/abc" enctype="multipart/form-data"> <input type="hidden" name="abc" value="123"> <button type="submit" name="Buttonname">Button</button> </form>
  4. It works perfect. Error?
  5. Func _FB_IsLUA () $aSS = StringSplit(_WinHttpSimpleRequest($hConnect, "GET", "/cgi-bin/system_status"), "-") $sFirmwareversion = StringTrimLeft($aSS[8], 2) If $sFirmwareversion > 0522 Then Return 1 Else Return 0 EndIf EndFunc ;==>_FB_IsLUA
  6. I just managed it. Many thanks! #include <WinHttp.au3> #include <String.au3> $hOpen = _WinHttpOpen() $hConnect = _WinHttpConnect($hOpen, "pics.lt") $hImage = FileOpenDialog("", @ScriptDir, "(*.bmp; *.gif; *.png; *.jpg)") $aSS = StringSplit($hImage, "\") $aDescription = StringSplit($aSS[$aSS[0]], ".") $sSource = _WinHttpSimpleFormFill($hConnect, "/upload.php", Default, _ "name:file[]", $hImage, _ "name:alt[]", $aDescription[1]) $aSB = _StringBetween($sSource, '<div class="img_box">', '" title="' & $aDescription[1] & '" class="lightbox" >') $aURL = StringSplit($aSB[0], '"') ConsoleWrite("URL: " & $aURL[2]) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen)
  7. I want to automate the imagehoster pics.lt, unfortunately the used PHP-Script has no API. http://pics.lt/index.php?lang=english Thank you in advance. ^#include <WinHttp.au3> #include <String.au3> $hOpen = _WinHttpOpen() $hConnect = _WinHttpConnect($hOpen, "pics.lt") $aHeader = _WinHttpSimpleRequest($hConnect, "GET", "/index.php?lang=english", $WINHTTP_NO_REFERER, $WINHTTP_NO_REQUEST_DATA, $WINHTTP_NO_ADDITIONAL_HEADERS, True) $aCookie = _StringBetween($aHeader[0], "Cookie: ", ";") $hImage = FileOpenDialog("", @ScriptDir, "(*.bmp; *.gif; *.png; *.jpg)") $bImage = FileOpen($hImage, 16) ;$sHeader = ?! _WinHttpSimpleRequest($hConnect, "POST", "/upload.php", "pics.lt/index.php?lang=english", $bImage, $sHeader)
×
×
  • Create New...