powermaster

Active Members
  • Content count

    17
  • Joined

  • Last visited


powermaster's Activity

  1. powermaster added a post in a topic: winhttp upload problem   

    no replies?
  2. powermaster added a post in a topic: winhttp upload problem   

    if needed this is the php file i use with winhttp:


    <?php if(isset($_POST['submit'])) { if((!empty($_FILES["ufile"])) && ($_FILES['ufile']['error'] == 0)) { $oldfilename = basename($_FILES['ufile']['name']); $path = 'uploads/'; $curtime = $_SERVER['REMOTE_ADDR']; $test = time(); if (is_dir($path.$curtime)) { echo "The directory {$dirname} exists"; } else { mkdir($path . $curtime,0777,TRUE); } $filename = $test. "_" . $oldfilename; if ((move_uploaded_file($_FILES['ufile']['tmp_name'],$path . $curtime . '/' . $filename))) { } } } ?> <html> <head> <title>File Upload</title> </head> <body> <form action="index.php" method="post" enctype="multipart/form-data"> Select file: <input name="ufile" type="file" /><br /> <input type="submit" name="submit" value="Upload" /> </form> </body> </html>
  3. powermaster added a post in a topic: winhttp upload problem   

    Hi. I got this script using winhttp to upload files to a webserver using a php file.
    The problem is, it will only upload small files for some reason.

    If the file is example 100 kb, it works fine, if the file is 3 mb, then the scripts stops, and it never gets uploaded (and it works just fine uploading via the php form directly, so it's the script that got a problem)

    even I tell it to start uploading "pictures1" witch is 3 mb, first, then it skips it, and only uploads "pictures2" witch is 100 kb.


    #include "WinHttp.au3" Global Const $sAddress = "ajoko.com" $subdomain = "log/index.php" $1 = ("pictures1.zip") ;upload 1 $2 = ("pictures2.zip") ;upload 2 Global $hOpen = _WinHttpOpen() Global $hConnect = _WinHttpConnect($hOpen, $sAddress) Global $sHTM = _WinHttpSimpleFormFill($hConnect, $subdomain, Default, "name:ufile", $1) ;upload 1 Global $sHTM = _WinHttpSimpleFormFill($hConnect, $subdomain, Default, "name:ufile", $2) ;upload 2 _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) ;php upload form: www.ajoko.com/log/index.php

    I attached winhttp
    WinHttp.au3
    WinHttpConstants.au3
  4. powermaster added a post in a topic: save to location   

    I got this script, but i'm not sure how I would make it save to mydocumentsdir instead of just where the script is.


    <div>#include &lt;ScreenCapture.au3&gt;</div><div>#include "process.au3"</div><div>If UBound(ProcessList(@ScriptName)) &gt; 2 Then Exit&nbsp;</div><div><br></div><div>while 1</div><div>Local $coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x63140B)</div><div>If Not @error Then</div><div>For $i = 1 To 50</div><div>&nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre"> </span>_ScreenCapture_SetJPGQuality(15)</div><div>&nbsp; &nbsp; _ScreenCapture_Capture($i &amp; ".jpg")</div><div>&nbsp; &nbsp;Sleep(100)</div><div>Next</div><div>EndIf</div><div><br></div><div>WEnd</div>
  5. powermaster added a post in a topic: do 2 things at same time   

    hi melba thanks you solution, anorther one would be to have:
    1.au3
    2.au3

    and then shellexecute 1.au3 and 2.au3, but i guess thats a kinda slutty solution if i did that ?
  6. powermaster added a post in a topic: zip files   

    I used this, witch works: http://stahlworks.com/dev/index.php?tool=zipunzip but I would like to use the inbuilt windows zip functions, so I don't have to use an external file
  7. powermaster added a post in a topic: zip files   

    Hi I have a script that takes 1 - 100 pictures, is it possible in autoit to make the script zip all those pictures into 1 file?
    and if so how to ? I tried to search for it, but can't find what i'm looking for
  8. powermaster added a post in a topic: do 2 things at same time   

    thanks alot
  9. powermaster added a post in a topic: do 2 things at same time   

    Hi. I can\t make my script do 2 things at same time:


    <p>#include &lt;ScreenCapture.au3&gt;;</p><p><br></p><p><div>Local $hWnd = "test1&gt;"</div><div>For $i = 1 To 10</div><div>_ScreenCapture_SetJPGQuality(30)</div><div>&nbsp; &nbsp;_ScreenCapture_CaptureWnd($i &amp; ".jpg", $hWnd)</div><div>&nbsp; &nbsp;Sleep(500)</div><div>Next</div><div><br></div><div><div>Local $hWnd = "test2&gt;"</div><div>For $i = 1 To 10</div><div>_ScreenCapture_SetJPGQuality(30)</div><div>&nbsp; &nbsp;_ScreenCapture_CaptureWnd($i &amp; ".gif", $hWnd)</div><div>&nbsp; &nbsp;Sleep(500)</div><div>Next</div></div></p>
    It wil start taking 10 screenshots : .jpg and then it will takes 10 screenshots : .gif

    I need it to be setup this way, I don\t want the 2 codes to be together in one, how is it possible to make it take the screenshot at same time
  10. powermaster added a post in a topic: screenshot   

    thanks alot works great
  11. powermaster added a post in a topic: screenshot   

    how would it taking screenshots every second, in 10 seconds, and name the files, 1.jpg -> 10.jpg?
  12. powermaster added a post in a topic: screenshot   

    thanks alot works great
  13. powermaster added a post in a topic: screenshot   

    thanks john what i'm i doing wrong here?


    #include <ScreenCapture.au3> $hWnd = WinWaitActive("notepad") $sFileName = "notepad" _ScreenCapture_SetJPGQuality(50) _ScreenCapture_CaptureWnd($sFileName, $hWnd)
    output is like 2.5 mb
  14. powermaster added a post in a topic: screenshot   

    how do i take a screenshot of a active window and set the quality?


    #include <ScreenCapture.au3>

    _ScreenCapture_Capture(@ScriptDir & "GDIPlus_Image.jpg")

    somehow i can change the quality? to make the file size smaller?
  15. powermaster added a post in a topic: how to send alt+ctrl+del   

    works thanks guys