Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/18/2020 in Posts

  1. Using AutoIt3Wrapper under the "Res Add Files" I place the whole path to the file I want to compile with the application. Now how to I get to the file within the .exe? Example: #AutoIt3Wrapper_Res_File_Add=C:\Users\Rogue\Script\Resource\background.png I added this line but now how do I get the path to this .png file? I checked the Help file with AutoIt3Wrapper but it uses DllCall to play the sound which doesn't instruct me how to get to the file path. Trying to avoid FileInstall(), I would like to not create any temp files on the computer. Plus this would be a great learning experiance! Thanks for the help in advance!
    1 point
  2. This is more or less what I do in AutoIt3Wrapper to detect the different BOM options and later strip the inputfile, and later add it back. Local $hTest_UTF = FileOpen("filename", 16) Local $Test_UTF = FileRead($hTest_UTF, 4) Local $i_Rec_Param, $i_Rec_Value, $Temp_Val FileClose($hTest_UTF) ;~ 00 00 FE FF UTF-32, big-endian ;~ FF FE 00 00 UTF-32, little-endian ;~ FE FF UTF-16, big-endian ;~ FF FE UTF-16, little-endian ;~ EF BB BF UTF-8 Select Case BinaryMid($Test_UTF, 1, 4) = '0x0000FEFF' ; UTF-32 BE $UTFtype = '32BE' Case BinaryMid($Test_UTF, 1, 4) = '0xFFFE0000' ; UTF-32 LE $UTFtype = '32LE' Case BinaryMid($Test_UTF, 1, 2) = '0xFEFF' ; UTF-16 BE $UTFtype = '16BE' Case BinaryMid($Test_UTF, 1, 2) = '0xFFFE' ; UTF-16 LE $UTFtype = '16LE' Case BinaryMid($Test_UTF, 1, 3) = '0xEFBBBF' ; UTF-8 $UTFtype = '8' Case Else $UTFtype = '' EndSelect Jos
    1 point
  3. UEZ

    watermark an image with a png

    You can use this tool that I wrote: Here the result:
    1 point
  4. ptrex

    Device Management API

    Here you go ... Enjoy ! Device API.zip
    1 point
  5. Example multi request 10 pages website: Local $Thread = 10 Local $oWH[$Thread] Local $ThreadCompleted[$Thread] Local $CheckCompleted = 0 Local $AsyncMode = True For $i = 0 To $Thread - 1 $oWH[$i] = ObjCreate('WinHttp.WinHttpRequest.5.1') $oWH[$i].Open('GET', 'http://autoitvn.com/forums/thao-luan-hoi-dap/page-' & ($i + 1), $AsyncMode) $oWH[$i].Send() Next Do For $i = 0 To $Thread - 1 If $ThreadCompleted[$i] = 0 And $oWH[$i].WaitForResponse(0) = True Then ;$ThreadCompleted[$i] variable condition to prevent loop result ConsoleWrite('>Page ' & $i & ' completed:' & @CRLF & $oWH[$i].GetAllResponseHeaders & @CRLF) $ThreadCompleted[$i] = 1 $CheckCompleted += 1 EndIf Next Until $CheckCompleted = $Thread MsgBox(0, 'Hi', 'Completed') This method works very fast and do not use as much CPU and RAM resources as multi process
    1 point
×
×
  • Create New...