Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/11/2013 in all areas

  1. Hi! Today I want to show you my current AutoIt project: The ISN AutoIt Studio. The ISN AutoIt Studio is a complete IDE made with AutoIt, for AutoIt! It includes a GUI designer, a code editor (with syntax highlighting, auto complete & intelisense), a file viewer, a backup system, trophies and a lot more features!! Here are some screenshots: Here some higlights: -> easy to create/manage/public your AutoIt-projects! ->integrated GUI-Editor (ISN Form Studio 2) ->integrated - file & projectmanager ->auto backupfunction for your Projects ->extendable with plugins! ->available in several languages ->trophies ->Syntax highlighting /Autocomplete / Intelisense ->Dynamic Script ->detailed overview of the project (total working hours, total size...) And much more!!! -> -> Click here to download ISN AutoIt Studio <- <- Here is the link to the german autoit forum where I posted ISN AutoIt Studio the first time: http://autoit.de/index.php?page=Thread&threadID=29742&pageNo=1 For more information visit my Homepage: https://www.isnetwork.at So….have fun with ISN AutoIt Studio! PS: Sorry for my bad English! ^^
    1 point
  2. guinness

    File upload API

    Oh that's a new site I haven't heard of. Probably best to post that in a code box if I were you.
    1 point
  3. lionfaggot

    WinHTTP functions

    i made two functions: _Get() and _Post() which both have an ssl option parameter, both return the body of the response. and all of that works, however i added in automatic cookie handling which is failing on some sites. anyone want to help me out? these functions will make things quite a bit simpler with much less typing if we can make it work. heres my code: #include <WinHttp.au3> Func _Get($host, $page, $ssl = 0) Local $hOpen = _WinHttpOpen() If $ssl = 0 Then Local $hConnect = _WinHttpConnect($hOpen, $host) Local $req = _WinHttpOpenRequest($hConnect, "GET", $page) Else Local $hConnect = _WinHttpConnect($hOpen, $host, $INTERNET_DEFAULT_HTTPS_PORT) Local $req = _WinHttpOpenRequest($hConnect, "GET", $page, Default, Default, Default, $WINHTTP_FLAG_SECURE) EndIf _WinHttpAddRequestHeaders($hConnect, "User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0") _WinHttpAddRequestHeaders($hConnect, "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") _WinHttpAddRequestHeaders($hConnect, "Accept-Language: en-US,en;q=0.5") _WinHttpAddRequestHeaders($hConnect, "Accept-Encoding: gzip, deflate") _WinHttpAddRequestHeaders($hConnect, "Referer: http://www.google.com/") $gcookie = _getcookie($host) If $gcookie <> -1 Then _WinHttpAddRequestHeaders($hConnect, $gcookie) EndIf _WinHttpAddRequestHeaders($hConnect, "Connection: keep-alive" & @CRLF) _WinHttpSendRequest($req) Local $resp = _WinHttpReceiveResponse($req) If $resp = 1 Then $headers = _WinHttpQueryHeaders($req) If StringInStr($headers, "Set-Cookie:") Then _cookie($host, $headers) EndIf Local $sresp = _WinHttpReadData($req) Return $sresp EndIf EndFunc ;==>_Get Func _Post($host, $page, $pdata, $ssl = 0) Local $hOpen = _WinHttpOpen() If $ssl = 0 Then Local $hConnect = _WinHttpConnect($hOpen, $host) Local $req = _WinHttpOpenRequest($hConnect, "POST", $page) Else Local $hConnect = _WinHttpConnect($hOpen, $host, $INTERNET_DEFAULT_HTTPS_PORT) Local $req = _WinHttpOpenRequest($hConnect, "POST", $page, Default, Default, Default, $WINHTTP_FLAG_SECURE) EndIf _WinHttpAddRequestHeaders($hConnect, "User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0") _WinHttpAddRequestHeaders($hConnect, "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") _WinHttpAddRequestHeaders($hConnect, "Accept-Language: en-US,en;q=0.5") _WinHttpAddRequestHeaders($hConnect, "Accept-Encoding: gzip, deflate") _WinHttpAddRequestHeaders($hConnect, "Referer: http://www.google.com/") $gcookie = _getcookie($host) If $gcookie <> -1 Then _WinHttpAddRequestHeaders($hConnect, $gcookie) EndIf _WinHttpAddRequestHeaders($hConnect, "Connection: keep-alive") _WinHttpAddRequestHeaders($hConnect, "Content-Type: application/x-www-form-urlencoded") _WinHttpAddRequestHeaders($hConnect, "Content-Length: "&StringLen($pdata)) _WinHttpAddRequestHeaders($hConnect, @CRLF & $pdata) _WinHttpSendRequest($req) Local $resp = _WinHttpReceiveResponse($req) If $resp = 1 Then $headers = _WinHttpQueryHeaders($req) If StringInStr($headers, "Set-Cookie:") Then _cookie($host, $headers) EndIf Local $sresp = _WinHttpReadData($req) Return $sresp EndIf EndFunc ;==>_Post Func _cookie($host, $retcook) DirCreate("Cookies" & $host & "\") $array = StringRegExp($retcook, "Set-Cookie: (.+)\r\n", 3) $cookies = "" For $i = 0 To UBound($array) - 1 $cookies = $array[$i] & ";" $csplit = StringSplit($cookies, "=") $cookname = $csplit[1] $cookies = StringRegExpReplace($cookies, "( path| domain| expires)=[^;]+", "") $cookies = StringRegExpReplace($cookies, " HttpOnly", "") $cookies = StringRegExpReplace($cookies, "[;]{2,}", ";") FileDelete("Cookies" & $host & "\" & $cookname & ".txt") FileWrite("Cookies" & $host & "\" & $cookname & ".txt", $cookies) Next EndFunc ;==>_cookie Func _getcookie($host) Local $noret = 0 $cookrr = "Cookie:" $search = FileFindFirstFile("Cookies" & $host & "\*.txt") If @error Then Return -1 $noret = 1 EndIf If $noret <> 1 Then While 1 $file = FileFindNextFile($search) If @error Then Return $cookrr ExitLoop Else $cookrr &= " " & FileRead("Cookies" & $host & "\" & $file) EndIf WEnd EndIf $noret = 0 EndFunc ;==>_getcookie Get example: MsgBox(0, "", _Get("www.somesite.com", "/page")) Get example (ssl): MsgBox(0, "", _Get("www.somesite.com", "/page", 1)) Post example: MsgBox(0, "", _Post("www.somesite.com", "/login", "user=fork&pass=lolfork")) Post example (ssl): MsgBox(0, "", _Post("www.somesite.com", "/login", "user=fork&pass=lolfork", 1))
    1 point
  4. bogQ

    POST?

    its not, but just for fun http://us1.php.net/ini.core.php#ini.post-max-size
    1 point
  5. _WinAPI_EnumProcessWindows()
    1 point
  6. Maybe >mailslot. There are lots of ways to communicate between scripts. Probably the simplest method is writing (triggers) to disk, read by second (or multiple) script/s. I used a single integer along with bitwise functions to trigger and quit several scripts all controlled by a single main script - it's very easy to do this.
    1 point
×
×
  • Create New...