Jump to content

powermaster

Members
  • Posts

    17
  • Joined

  • Last visited

powermaster's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. 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>
  2. 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
  3. 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>
  4. 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 ?
  5. 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
  6. 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
  7. 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
  8. thanks alot works great
  9. how would it taking screenshots every second, in 10 seconds, and name the files, 1.jpg -> 10.jpg?
  10. thanks alot works great
  11. 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
  12. 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?
×
×
  • Create New...