Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/15/2012 in all areas

  1. funkey

    _GetFontInfoFromFilePtr()

    Hi, I needed a function to get the fontname by a pointer to the ttf file. Here is the solution: #include <WinAPIEx.au3> #include <Memory.au3> Global $hFile, $lFile, $tBuffer, $pBuffer, $iFile Global $sFile = FileOpenDialog("Choose Truetype Font", @ScriptDir, "Truetype Font (*.ttf)", 3) If @error Then Exit 1 $hFile = _WinAPI_CreateFile($sFile, 2, 2) If $hFile = 0 Then Exit 2 $lFile = FileGetSize($sFile) $tBuffer = DllStructCreate("byte[" & $lFile + 1 & "]") $pBuffer = DllStructGetPtr($tBuffer) _WinAPI_ReadFile($hFile, $pBuffer, $lFile, $iFile) _WinAPI_CloseHandle($hFile) MsgBox(64, "Font info", _ 'Filename: "' & $sFile & '"' & @CRLF & @CRLF & _ "Copyright notice: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 0) & @CRLF & _ "Font Family name: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 1) & @CRLF & _ "Font Subfamily name: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 2) & @CRLF & _ "Unique font identifier: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 3) & @CRLF & _ "Full font name: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 4) & @CRLF & _ "Version string: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 5) & @CRLF & _ "Postscript name for the font: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 6) & @CRLF & _ "Description: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 10) & @CRLF & _ "URL Vendor: " & _GetFontInfoFromFilePtr($pBuffer, $lFile, 11) & @CRLF) #cs Table 'name' Id Meaning 0 Copyright notice 1 Font Family name. 2 Font Subfamily name. Font style (italic, oblique) and weight (light, bold, black, etc.). A font with no particular differences in weight or style (e.g. medium weight, not italic) should have the string "Regular" stored in this position. 3 Unique font identifier. Usually similar to 4 but with enough additional information to be globally unique. Often includes information from Id 8 and Id 0. 4 Full font name. This should be a combination of strings 1 and 2. Exception: if the font is “Regular” as indicated in string 2, then use only the family name contained in string 1. This is the font name that Windows will expose to users. 5 Version string. Must begin with the syntax ‘Version n.nn ‘ (upper case, lower case, or mixed, with a space following the number). 6 Postscript name for the font. 7 Trademark. Used to save any trademark notice/information for this font. Such information should be based on legal advice. This is distinctly separate from the copyright. 8 Manufacturer Name. 9 Designer. Name of the designer of the typeface. 10 Description. Description of the typeface. Can contain revision information, usage recommendations, history, features, etc. 11 URL Vendor. URL of font vendor (with protocol, e.g., http://, ftp://). If a unique serial number is embedded in the URL, it can be used to register the font. 12 URL Designer. URL of typeface designer (with protocol, e.g., http://, ftp://). 13 License description. Description of how the font may be legally used, or different example scenarios for licensed use. This field should be written in plain language, not legalese. 14 License information URL. Where additional licensing information can be found. 15 Reserved; Set to zero. 16 Preferred Family (Windows only). In Windows, the Family name is displayed in the font menu. The Subfamily name is presented as the Style name. For historical reasons, font families have contained a maximum of four styles, but font designers may group more than four fonts to a single family. The Preferred Family and Preferred Subfamily IDs allow font designers to include the preferred family/subfamily groupings. These IDs are only present if they are different from IDs 1 and 2. 17 Preferred Subfamily (Windows only). See above. 18 Compatible Full (Mac OS only). On the Mac OS, the menu name is constructed using the FOND resource. This usually matches the Full Name. If you want the name of the font to appear differently than the Full Name, you can insert the Compatible Full Name here. 19 Sample text. This can be the font name, or any other text that the designer thinks is the best sample text to show what the font looks like. 20 PostScript CID findfont name. 21-255 Reserved for future expansion. 256-32767 Font-specific names. http://scripts.sil.org/cms/scripts/page.php?item_id=IWS-Chapter08 #ce Func _GetFontInfoFromFilePtr($pData, $iLen, $iID = 1) ;funkey 2012, May 15 Local Const $tagTT_OFFSET_TABLE = "USHORT uMajorVersion;USHORT uMinorVersion;USHORT uNumOfTables;USHORT uSearchRange;USHORT uEntrySelector;USHORT uRangeShift" Local Const $tagTT_TABLE_DIRECTORY = "char szTag[4];ULONG uCheckSum;ULONG uOffset;ULONG uLength" Local Const $tagTT_NAME_TABLE_HEADER = "USHORT uFSelector;USHORT uNRCount;USHORT uStorageOffset" Local Const $tagTT_NAME_RECORD = "USHORT uPlatformID;USHORT uEncodingID;USHORT uLanguageID;USHORT uNameID;USHORT uStringLength;USHORT uStringOffset" Local $tFile = DllStructCreate("byte[" & $iLen & "]") Local $pFile = DllStructGetPtr($tFile) _MemMoveMemory($pData, $pFile, $iLen) ;copy data to new memory area Local $ttOffsetTable = DllStructCreate($tagTT_OFFSET_TABLE, $pFile) DllStructSetData($ttOffsetTable, "uNumOfTables", _SWAPWORD(DllStructGetData($ttOffsetTable, "uNumOfTables"))) DllStructSetData($ttOffsetTable, "uMajorVersion", _SWAPWORD(DllStructGetData($ttOffsetTable, "uMajorVersion"))) DllStructSetData($ttOffsetTable, "uMinorVersion", _SWAPWORD(DllStructGetData($ttOffsetTable, "uMinorVersion"))) ;check is this is a true type font and the version is 1.0 If StringFormat("%i.%i", DllStructGetData($ttOffsetTable, "uMajorVersion"), DllStructGetData($ttOffsetTable, "uMinorVersion")) <> "1.0" Then Return SetError(1) EndIf Local $tblDir = DllStructCreate($tagTT_TABLE_DIRECTORY) Local $bFound = False Local $sTemp For $i = 0 To DllStructGetData($ttOffsetTable, "uNumOfTables") - 1 $tblDir = DllStructCreate($tagTT_TABLE_DIRECTORY, $pFile + DllStructGetSize($ttOffsetTable) + $i * DllStructGetSize($tblDir)) If StringLeft(DllStructGetData($tblDir, "szTag"), 4) = "name" Then $bFound = True DllStructSetData($tblDir, "uLength", _SWAPLONG(DllStructGetData($tblDir, "uLength"))) DllStructSetData($tblDir, "uOffset", _SWAPLONG(DllStructGetData($tblDir, "uOffset"))) ExitLoop EndIf Next If Not $bFound Then Return SetError(2) Local $ttNTHeader = DllStructCreate($tagTT_NAME_TABLE_HEADER, $pFile + DllStructGetData($tblDir, "uOffset")) DllStructSetData($ttNTHeader, "uNRCount", _SWAPWORD(DllStructGetData($ttNTHeader, "uNRCount"))) DllStructSetData($ttNTHeader, "uStorageOffset", _SWAPWORD(DllStructGetData($ttNTHeader, "uStorageOffset"))) Local $ttRecord = DllStructCreate($tagTT_NAME_RECORD) Local $tResult, $sResult For $i = 0 To DllStructGetData($ttNTHeader, "uNRCount") - 1 $ttRecord = DllStructCreate($tagTT_NAME_RECORD, $pFile + DllStructGetData($tblDir, "uOffset") + DllStructGetSize($ttNTHeader) + $i * DllStructGetSize($ttRecord)) DllStructSetData($ttRecord, "uNameID", _SWAPWORD(DllStructGetData($ttRecord, "uNameID"))) If DllStructGetData($ttRecord, "uNameID") = $iID Then DllStructSetData($ttRecord, "uStringLength", _SWAPWORD(DllStructGetData($ttRecord, "uStringLength"))) DllStructSetData($ttRecord, "uStringOffset", _SWAPWORD(DllStructGetData($ttRecord, "uStringOffset"))) $tResult = DllStructCreate("char [" & DllStructGetData($ttRecord, "uStringLength") & "]", $pFile + _ DllStructGetData($tblDir, "uOffset") + DllStructGetData($ttRecord, "uStringOffset") + _ DllStructGetData($ttNTHeader, "uStorageOffset")) $sResult = DllStructGetData($tResult, 1) If StringLen($sResult) > 0 Then ExitLoop EndIf Next Return $sResult EndFunc ;==>_GetFontInfoFromFilePtr Func _SWAPWORD($x) Return _WinAPI_MakeWord(_WinAPI_LoByte($x), _WinAPI_HiByte($x)) EndFunc ;==>_SWAPWORD Func _SWAPLONG($x) Return _WinAPI_MakeLong(_SWAPWORD(_WinAPI_HiWord($x)), _SWAPWORD(_WinAPI_LoWord($x))) EndFunc ;==>_SWAPLONG Edit: Added additional information
    2 points
  2. done (i saved your xml to the give file): $oXML=ObjCreate("Microsoft.XMLDOM") $stest = FileRead("c:usersjdelaneydesktoptest2.xml") $oXML.LoadXML($stest) ConsoleWrite ( $oXML.xml & @CRLF) $itemName = "racecar" $result = $oXML.selectNodes( '//items/item[@name="' & $itemName & '"]/type[@title="value"]' ) $iUBound = $result.length ConsoleWrite ( $result.length & @CRLF ) For $Node In $result msgbox(4096, "test", $Node.text) Next
    1 point
  3. funkey

    _GetFontInfoFromFilePtr()

    Ah, OK. But then you need the same function. I used one of your examples: #include <WinAPIEx.au3> #include <Memory.au3> Global Const $bFont = _bFont() Global $iLen = BinaryLen($bFont) Global $hGui = GUICreate("Example 1", 400, 320) Global $tFont = DllStructCreate('byte[' & $iLen & ']') DllStructSetData($tFont, 1, $bFont) Global $pFont = DllStructGetPtr($tFont) Global $sFontname = _GetFontInfoFromFilePtr($pFont, $iLen) Global $hFont = _WinAPI_AddFontMemResourceEx(DllStructGetPtr($tFont), DllStructGetSize($tFont)) ConsoleWrite($sFontname & @CR) GUICtrlCreateLabel("AutoIt Memory Font Example", 25, 10, 380, 100) GUICtrlSetFont(-1, 100, 400, 0, $sFontname, 4) GUISetState(@SW_SHOW) While GUIGetMsg() <> -3 Sleep(10) WEnd GUIDelete($hGui) _WinAPI_RemoveFontMemResourceEx($hFont) Exit #region ;Code was generated by: File to Base64 String Code Generator Func _bFont() Local $bFont $bFont &= 'KLsAAAEAAAALAIAAAAMAME9TLzIAuAGE+wAAATgBAKhWY21hcNB+BD7mAIDEAAAF0kBnYXNw//8ApAAEirAAfAhnbHlmAKKy+GkAABa0AQBchGhlYWTxuZTdbgA2vAAGNmgAIFANAQaQABb0AAYkAGhtdHgLIu96AwC+ACYKMmxvY2EAZvd9nAAAEZgBAF8cbWF4cAKbCQErARgALyBuYW0AZUBMbE4AAG0BAI8KHXBvc3SOAD3lgQAAd1gAGAATVQK7AANj20YAlV8PPPUACwiBABAAAMSyYfABBwDIgDID/m7++dAG+wWEAA4JAi8BAAEABwWa/mEB+wiAwP5u/OIG+4YMCQQAAoyBCAKNAF7AAAQAlQAFiw6ACQoBgAD7gGIFAAgFKJoFMwApG4MDA9EwAGYCEoAdBhagAGACr1AAeICqAwBIAEwgIABAACD7AAIDl//6AM0EAOIBE2AAAZ/fSveBDgYERQI5gCl/AYKkHwEoACYCWgAAGgFCABgB6QAAAwG+ADIAowAAMQDJADkAyAD/YwF8ACMCCUGAFbcAJQESgE6LQAAhAdT/yIALF0ABYgAMAXmAAX8E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N0aW0gYXRlZAmA5WVpAGdodGgMdGhygmVkAXMLZml2ZQEUDHPgEG6EAQlhcgByb3dsZWZ0B9kiAXVwgODgAHLBA4MDEGRvd24jAWJvdIJoIwF1cGRuDCYBAGJzZQpvcnRowUH1YWwMaW5gHYAbAHRpb24LZXF1AGl2YWxlbmNlgAVob3VzZQ1gEIBsb2dpY2FssHFGCsECsBNsdHCmAGLwdAhTRtAYAACBAJIAV4AAASKDADOFADKFADRVhQA4hQA5hQA2hQA3VYUANYQANHUEMuUDNVUlBjWVBTN1BDIVATK9NQIydQRyAAIFxQIzZQjWMoYA1Qcy9QgzhgClAVo0JQYxRgeVBTKlCjTrxgKVBTT1CDR2DZUFYg0fEgoGDnYEEgFQb2Jsb1hjawcwHHEABdMAbFJmcwBydPQAdNCOZERlBVIAB2RrcgAJEGZpbGzALW94BgJIwBE3MwZIMThENTRjADUxCuMBcgFgIAd0cmlhZ3VKcHMAcvQAZG5zAGxkZgZhm2xlggMQYGnQbnZidbADdJEAowEgCm9wZW5EAXNtomngKmFjZXAmdsYAAANzdW4GZmVtRZAmBEEABXNwMAoEAGNsdWIFaGVhIUAHZGlhbeA2C21kdXO0J2UOuAD0N0YTQF50ADUAAgAB//8AAAI=' $bFont = _Base64Decode($bFont) Local $tSource = DllStructCreate('byte[' & BinaryLen($bFont) & ']') DllStructSetData($tSource, 1, $bFont) Local $tDecompress _WinAPI_LZNTDecompress($tSource, $tDecompress) $tSource = 0 Return Binary(DllStructGetData($tDecompress, 1)) EndFunc ;==>_bFont Func _Base64Decode($input_string) Local $struct = DllStructCreate("int") Local $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", 0, "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0) If @error Or Not $a_Call[0] Then Return SetError(1, 0, "") Local $a = DllStructCreate("byte[" & DllStructGetData($struct, 1) & "]") $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", DllStructGetPtr($a), "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0) If @error Or Not $a_Call[0] Then Return SetError(2, 0, "") Return DllStructGetData($a, 1) EndFunc ;==>_Base64Decode Func _WinAPI_LZNTDecompress(ByRef $tInput, ByRef $tOutput, $iBufferSize = 0x800000) Local $tBuffer, $Ret $tOutput = 0 $tBuffer = DllStructCreate('byte[' & $iBufferSize & ']') If @error Then Return SetError(1, 0, 0) $Ret = DllCall('ntdll.dll', 'uint', 'RtlDecompressBuffer', 'ushort', 0x0002, 'ptr', DllStructGetPtr($tBuffer), 'ulong', $iBufferSize, 'ptr', DllStructGetPtr($tInput), 'ulong', DllStructGetSize($tInput), 'ulong*', 0) If @error Then Return SetError(2, 0, 0) If $Ret[0] Then Return SetError(3, $Ret[0], 0) $tOutput = DllStructCreate('byte[' & $Ret[6] & ']') If Not _WinAPI_MoveMemory(DllStructGetPtr($tOutput), DllStructGetPtr($tBuffer), $Ret[6]) Then $tOutput = 0 Return SetError(4, 0, 0) EndIf Return $Ret[6] EndFunc ;==>_WinAPI_LZNTDecompress Func _GetFontInfoFromFilePtr($pData, $iLen, $iFlag = 1); 0=copyright;1=name;2=type ... 10=description;11=website ;funkey 2012, May 15 Local Const $tagTT_OFFSET_TABLE = "USHORT uMajorVersion;USHORT uMinorVersion;USHORT uNumOfTables;USHORT uSearchRange;USHORT uEntrySelector;USHORT uRangeShift" Local Const $tagTT_TABLE_DIRECTORY = "char szTag[4];ULONG uCheckSum;ULONG uOffset;ULONG uLength" Local Const $tagTT_NAME_TABLE_HEADER = "USHORT uFSelector;USHORT uNRCount;USHORT uStorageOffset" Local Const $tagTT_NAME_RECORD = "USHORT uPlatformID;USHORT uEncodingID;USHORT uLanguageID;USHORT uNameID;USHORT uStringLength;USHORT uStringOffset" Local $tFile = DllStructCreate("byte[" & $iLen & "]") Local $pFile = DllStructGetPtr($tFile) _MemMoveMemory($pData, $pFile, $iLen) Local $ttOffsetTable = DllStructCreate($tagTT_OFFSET_TABLE, $pFile) DllStructSetData($ttOffsetTable, "uNumOfTables", _SWAPWORD(DllStructGetData($ttOffsetTable, "uNumOfTables"))) DllStructSetData($ttOffsetTable, "uMajorVersion", _SWAPWORD(DllStructGetData($ttOffsetTable, "uMajorVersion"))) DllStructSetData($ttOffsetTable, "uMinorVersion", _SWAPWORD(DllStructGetData($ttOffsetTable, "uMinorVersion"))) ;check is this is a true type font and the version is 1.0 If StringFormat("%i.%i", DllStructGetData($ttOffsetTable, "uMajorVersion"), DllStructGetData($ttOffsetTable, "uMinorVersion")) <> "1.0" Then Return SetError(1) EndIf Local $tblDir = DllStructCreate($tagTT_TABLE_DIRECTORY) Local $bFound = False Local $sTemp For $i = 0 To DllStructGetData($ttOffsetTable, "uNumOfTables") - 1 $tblDir = DllStructCreate($tagTT_TABLE_DIRECTORY, $pFile + DllStructGetSize($ttOffsetTable) + $i * DllStructGetSize($tblDir)) If StringLeft(DllStructGetData($tblDir, "szTag"), 4) = "name" Then $bFound = True DllStructSetData($tblDir, "uLength", _SWAPLONG(DllStructGetData($tblDir, "uLength"))) DllStructSetData($tblDir, "uOffset", _SWAPLONG(DllStructGetData($tblDir, "uOffset"))) ExitLoop EndIf Next If Not $bFound Then Return SetError(2) Local $ttNTHeader = DllStructCreate($tagTT_NAME_TABLE_HEADER, $pFile + DllStructGetData($tblDir, "uOffset")) DllStructSetData($ttNTHeader, "uNRCount", _SWAPWORD(DllStructGetData($ttNTHeader, "uNRCount"))) DllStructSetData($ttNTHeader, "uStorageOffset", _SWAPWORD(DllStructGetData($ttNTHeader, "uStorageOffset"))) Local $ttRecord = DllStructCreate($tagTT_NAME_RECORD) Local $tResult, $sResult For $i = 0 To DllStructGetData($ttNTHeader, "uNRCount") - 1 $ttRecord = DllStructCreate($tagTT_NAME_RECORD, $pFile + DllStructGetData($tblDir, "uOffset") + DllStructGetSize($ttNTHeader) + $i * DllStructGetSize($ttRecord)) DllStructSetData($ttRecord, "uNameID", _SWAPWORD(DllStructGetData($ttRecord, "uNameID"))) If DllStructGetData($ttRecord, "uNameID") = $iFlag Then ;1 says that this is font name. 0 for example determines copyright info DllStructSetData($ttRecord, "uStringLength", _SWAPWORD(DllStructGetData($ttRecord, "uStringLength"))) DllStructSetData($ttRecord, "uStringOffset", _SWAPWORD(DllStructGetData($ttRecord, "uStringOffset"))) $tResult = DllStructCreate("char [" & DllStructGetData($ttRecord, "uStringLength") & "]", $pFile + _ DllStructGetData($tblDir, "uOffset") + DllStructGetData($ttRecord, "uStringOffset") + _ DllStructGetData($ttNTHeader, "uStorageOffset")) $sResult = DllStructGetData($tResult, 1) If StringLen($sResult) > 0 Then ExitLoop EndIf Next Return $sResult EndFunc ;==>_GetFontInfoFromFilePtr Func _SWAPWORD($X) Return _WinAPI_MakeWord(_WinAPI_LoByte($X), _WinAPI_HiByte($X)) EndFunc ;==>_SWAPWORD Func _SWAPLONG($X) Return _WinAPI_MakeLong(_SWAPWORD(_WinAPI_HiWord($X)), _SWAPWORD(_WinAPI_LoWord($X))) EndFunc ;==>_SWAPLONG
    1 point
  4. avmaksimov, Welcome to the AutoIt forum. You can run scripts from within the SciTE editor that is installed along with Autoit by pressing F5 or via the <Tools - Go> menu. You might also like to install the complete SciTE4AutoIt3 package that you find here - lots of extra utilities to help you code in AutoIt. M23
    1 point
  5. As well as destroying an array by reassigning a single value e.g. Local $aArray[5] ; Enter code to manipulate Array. $aArray = 0
    1 point
  6. AutoIt cleans up everything when the code ends.
    1 point
  7. BigDod

    The devs of autoit...

    I did report it and I am not sorry that I did.
    1 point
  8. Let me demonstrate the power of AutoItObject. ...Who knows, maybe some eyes will get opened afterwards. #AutoIt3Wrapper_UseX64=n #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GUIConstantsEx.au3> #include "AutoitObject.au3" ;=============================================================================== #interface "IPersist" Global Const $sIID_IPersist = "{0000010c-0000-0000-C000-000000000046}" ; Definition Global $dtagIPersist = $dtagIUnknown & _ "GetClassID hresult(ptr*);" ; List Global $ltagIPersist = $ltagIUnknown & _ "GetClassID;" ;=============================================================================== ;=============================================================================== #interface "IPersistStream" Global Const $sIID_IPersistStream = "{00000109-0000-0000-C000-000000000046}" ; Definition Global $dtagIPersistStream = $dtagIPersist & _ "IsDirty hresult(ptr);" & _ "Load hresult(ptr);" & _ "Save hresult(ptr;bool);" & _ "GetSizeMax hresult(uint64*);" ; List Global $ltagIPersistStream = $ltagIPersist & _ "IsDirty;" & _ "Load;" & _ "Save;" & _ "GetSizeMax;" ;=============================================================================== ;=============================================================================== #interface "IPersistStreamInit" Global Const $sIID_IPersistStreamInit = "{7FD52380-4E07-101B-AE2D-08002B2EC713}" ; Definition Global $dtagIPersistStreamInit = $dtagIPersistStream & _ "InitNew hresult();" ; List Global $ltagIPersistStreamInit = $ltagIPersistStream & _ "InitNew;" ;=============================================================================== ;=============================================================================== #interface "ISequentialStream" Global Const $sIID_ISequentialStream = "{0C733A30-2A1C-11CE-ADE5-00AA0044773D}" ; Definition Global $dtagISequentialStream = $dtagIUnknown & _ "Read hresult(ptr;dword;dword*);" & _ "Write hresult(ptr;dword;dword*);" ; List Global $ltagISequentialStream = $ltagIUnknown & _ "Read;" & _ "Write;" ;=============================================================================== ;=============================================================================== #interface "IStream" Global Const $sIID_IStream = "{0000000C-0000-0000-C000-000000000046}" ; Definition Global $dtagIStream = $dtagISequentialStream & _ "Seek hresult(int64;dword;int64);" & _ "SetSize hresult(int64);" & _ "CopyTo hresult(ptr;int64;int64*;int64*);" & _ "Commit hresult(dword);" & _ "Revert none();" & _ "LockRegion hresult(int64;int64;dword);" & _ "UnlockRegion hresult(int64;int64;dword);" & _ "Stat hresult(ptr;dword);" & _ "Clone hresult(ptr*);" ; List Global $ltagIStream = $ltagISequentialStream & _ "Seek;" & _ "SetSize;" & _ "CopyTo;" & _ "Commit;" & _ "Revert;" & _ "LockRegion;" & _ "UnlockRegion;" & _ "Stat;" & _ "Clone;" ;=============================================================================== ; Error monitoring Global $oError = ObjEvent("AutoIt.Error", "_ErrFunc") ; Let's Start _AutoItObject_Startup() Global Const $sCLSID_ShockwaveFlash = "{D27CDB6E-AE6D-11CF-96B8-444553540000}" Global Const $sIID_IShockwaveFlash = "{D27CDB6C-AE6D-11CF-96B8-444553540000}" Global $oShockwaveFlash ; There are several available ways to create desired object: ; 1. Built-in function: $oShockwaveFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash") ; ; 2. AutoItObject's pandan: ;~ $oShockwaveFlash = _AutoItObject_ObjCreate("ShockwaveFlash.ShockwaveFlash") ; 3. The same function but this time passing CLSID: ;~ $oShockwaveFlash = _AutoItObject_ObjCreate($sCLSID_ShockwaveFlash) ; 4. _AutoItObject_ObjCreateEx. This one works from server file directly (doesn't require installed flash) ;~ $oShockwaveFlash = _AutoItObject_ObjCreateEx(@ScriptDir & "\Flash10m.ocx", $sCLSID_ShockwaveFlash, $sIID_IShockwaveFlash) If Not IsObj($oShockwaveFlash) Then Exit -11 ; GUI Global $GUI = GUICreate("Test", 600, 453) Global $hControl = GUICtrlCreateObj($oShockwaveFlash, 0, 0, 600, 453) GUICtrlSetState($hControl, $GUI_DISABLE) ; Not to intrract Global $iPos = 0, $iSizeData Global $vVar ; Some variable $vVar = InetRead("http://bytescout.com/files/demo/swfscout_VideoSample.swf") ; data ;~ $vVar = FileRead(@DesktopDir & "\Action.swf") ; Some file to load Global $pData = _MemoryFromVar($vVar, $iSizeData) GUISetState() _FlashLoadMemory($oShockwaveFlash, $pData, $iSizeData, $iPos) While 1 If GUIGetMsg() = -3 Then Exit WEnd Func _FlashLoadMemory($oShockwaveFlash, ByRef $pData, ByRef $iSizeData, ByRef $iPos) #forceref $pData, $iSizeData, $iPos If Not IsObj($oShockwaveFlash) Then Return SetError(1, 0, False) _AutoItObject_IUnknownAddRef($oShockwaveFlash) ; Add reference Local $oFlashInterface = _AutoItObject_WrapperCreate(_AutoItObject_IDispatchToPtr($oShockwaveFlash), $dtagIUnknown) If Not IsObj($oFlashInterface) Then Return SetError(2, 0, False) Local $oFlashMemoryStream = _AutoItObject_ObjectFromDtag("_FlashMemoryStream_", $dtagIStream) Local $tIID_IPersistStreamInit = _AutoItObject_CLSIDFromString($sIID_IPersistStreamInit) Local $aCall = $oFlashInterface.QueryInterface(Number(DllStructGetPtr($tIID_IPersistStreamInit)), 0) Local $pPersistStreamInit = $aCall[2] Local $oPersistStreamInit = _AutoItObject_WrapperCreate($pPersistStreamInit, $dtagIPersistStreamInit) $oPersistStreamInit.InitNew() $oPersistStreamInit.Load(Number($oFlashMemoryStream.__ptr__)) Return True EndFunc ;==>_FlashLoadMemory ; IStream definition, custom implementation: Func _FlashMemoryStream_QueryInterface($pSelf, $pRIID, $pObj) #forceref $pSelf, $pRIID, $pObj Return 0x80004002 ; E_NOINTERFACE EndFunc ;==>_FlashMemoryStream_QueryInterface Func _FlashMemoryStream_AddRef($pSelf) #forceref $pSelf Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_AddRef Func _FlashMemoryStream_Release($pSelf) #forceref $pSelf Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Release Func _FlashMemoryStream_Read($pSelf, $pBuffer, $iCb, $pRead) #forceref $pSelf If $iPos = 0 And $iCb = 4 Then DllStructSetData(DllStructCreate("char[4]", $pBuffer), 1, "fUfU") $iPos += 4 ElseIf $iPos = 4 And $iCb = 4 Then DllStructSetData(DllStructCreate("dword", $pBuffer), 1, $iSizeData) $iSizeData += 8 $iPos += 4 Else If $iPos + $iCb > $iSizeData Then $iCb = $iSizeData - $iPos If $iCb = 0 Then Return 1 ; S_FALSE DllStructSetData(DllStructCreate("byte[" & $iCb & "]", $pBuffer), 1, DllStructGetData(DllStructCreate("byte[" & $iCb & "]", $pData + $iPos - 8), 1)) If $pRead Then DllStructSetData(DllStructCreate("dword", $pRead), 1, $iCb) $iPos += $iCb EndIf Return 0 ; S_OK EndFunc ;==>_FlashMemoryStream_Read Func _FlashMemoryStream_Write($pSelf, $pBuffer, $iCb, $iWritten) #forceref $pSelf, $pBuffer, $iCb, $iWritten Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Write Func _FlashMemoryStream_Seek($pSelf, $iMove, $iOrigin, $iNewPos) #forceref $pSelf, $iMove, $iOrigin, $iNewPos Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Seek Func _FlashMemoryStream_SetSize($pSelf, $iNewSize) #forceref $pSelf, $iNewSize Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_SetSize Func _FlashMemoryStream_CopyTo($pSelf, $pStream, $iCb, $pRead, $pWritten) #forceref $pSelf, $pStream, $iCb, $pRead, $pWritten Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_CopyTo Func _FlashMemoryStream_Commit($pSelf, $iCommitFlags) #forceref $pSelf, $iCommitFlags Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Commit Func _FlashMemoryStream_Revert($pSelf) #forceref $pSelf Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Revert Func _FlashMemoryStream_LockRegion($pSelf, $iOffset, $iCb, $iLockSize) #forceref $pSelf, $iOffset, $iCb, $iLockSize Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_LockRegion Func _FlashMemoryStream_UnlockRegion($pSelf, $iOffset, $iCb, $iLockSize) #forceref $pSelf, $iOffset, $iCb, $iLockSize Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_UnlockRegion Func _FlashMemoryStream_Stat($pSelf, $pStatstg, $iFlag) #forceref $pSelf, $pStatstg, $iFlag Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Stat Func _FlashMemoryStream_Clone($pSelf, $pStream) #forceref $pSelf, $pStream Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Clone ; Some function to load data to memory: Func _MemoryFromVar($vVar, ByRef $iSize) Local Static $tData ; Static to keep it alive after the return of the function $tData = DllStructCreate("byte[" & BinaryLen($vVar) & "]") DllStructSetData($tData, 1, $vVar) $iSize = DllStructGetSize($tData) Return DllStructGetPtr($tData) EndFunc ;==>_MemoryFromVar ; On Error Func _ErrFunc() ConsoleWrite("COM Error, ScriptLine(" & $oError.scriptline & ") : Number 0x" & Hex($oError.number, 8) & " - " & $oError.windescription & @CRLF) EndFunc ;==>_ErrFunc COM beyond imaginable. edit: or maybe this: #AutoIt3Wrapper_UseX64=n #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GUIConstantsEx.au3> #include "AutoitObject.au3" ;=============================================================================== #interface "IPersist" Global Const $sIID_IPersist = "{0000010c-0000-0000-C000-000000000046}" ; Definition Global $dtagIPersist = $dtagIUnknown & _ "GetClassID hresult(ptr*);" ; List Global $ltagIPersist = $ltagIUnknown & _ "GetClassID;" ;=============================================================================== ;=============================================================================== #interface "IPersistStream" Global Const $sIID_IPersistStream = "{00000109-0000-0000-C000-000000000046}" ; Definition Global $dtagIPersistStream = $dtagIPersist & _ "IsDirty hresult(ptr);" & _ "Load hresult(ptr);" & _ "Save hresult(ptr;bool);" & _ "GetSizeMax hresult(uint64*);" ; List Global $ltagIPersistStream = $ltagIPersist & _ "IsDirty;" & _ "Load;" & _ "Save;" & _ "GetSizeMax;" ;=============================================================================== ;=============================================================================== #interface "IPersistStreamInit" Global Const $sIID_IPersistStreamInit = "{7FD52380-4E07-101B-AE2D-08002B2EC713}" ; Definition Global $dtagIPersistStreamInit = $dtagIPersistStream & _ "InitNew hresult();" ; List Global $ltagIPersistStreamInit = $ltagIPersistStream & _ "InitNew;" ;=============================================================================== ;=============================================================================== #interface "ISequentialStream" Global Const $sIID_ISequentialStream = "{0C733A30-2A1C-11CE-ADE5-00AA0044773D}" ; Definition Global $dtagISequentialStream = $dtagIUnknown & _ "Read hresult(ptr;dword;dword*);" & _ "Write hresult(ptr;dword;dword*);" ; List Global $ltagISequentialStream = $ltagIUnknown & _ "Read;" & _ "Write;" ;=============================================================================== ;=============================================================================== #interface "IStream" Global Const $sIID_IStream = "{0000000C-0000-0000-C000-000000000046}" ; Definition Global $dtagIStream = $dtagISequentialStream & _ "Seek hresult(int64;dword;int64);" & _ "SetSize hresult(int64);" & _ "CopyTo hresult(ptr;int64;int64*;int64*);" & _ "Commit hresult(dword);" & _ "Revert none();" & _ "LockRegion hresult(int64;int64;dword);" & _ "UnlockRegion hresult(int64;int64;dword);" & _ "Stat hresult(ptr;dword);" & _ "Clone hresult(ptr*);" ; List Global $ltagIStream = $ltagISequentialStream & _ "Seek;" & _ "SetSize;" & _ "CopyTo;" & _ "Commit;" & _ "Revert;" & _ "LockRegion;" & _ "UnlockRegion;" & _ "Stat;" & _ "Clone;" ;=============================================================================== ; Error monitoring Global $oError = ObjEvent("AutoIt.Error", "_ErrFunc") ; Let's Start _AutoItObject_Startup() Global Const $sCLSID_ShockwaveFlash = "{D27CDB6E-AE6D-11CF-96B8-444553540000}" Global Const $sIID_IShockwaveFlash = "{D27CDB6C-AE6D-11CF-96B8-444553540000}" Global $oShockwaveFlash ; There are several available ways to create desired object: ; 1. Built-in function: $oShockwaveFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash") ; ; 2. AutoItObject's pandan: ;~ $oShockwaveFlash = _AutoItObject_ObjCreate("ShockwaveFlash.ShockwaveFlash") ; 3. The same function but this time passing CLSID: ;~ $oShockwaveFlash = _AutoItObject_ObjCreate($sCLSID_ShockwaveFlash) ; 4. _AutoItObject_ObjCreateEx. This one works from server file directly (doesn't require installed flash) ;~ $oShockwaveFlash = _AutoItObject_ObjCreateEx(@ScriptDir & "\Flash10m.ocx", $sCLSID_ShockwaveFlash, $sIID_IShockwaveFlash) If Not IsObj($oShockwaveFlash) Then Exit -11 ; GUI Global $GUI = GUICreate("Test inline", 600, 453) Global $hControl = GUICtrlCreateObj($oShockwaveFlash, 0, 0, 600, 453) GUICtrlSetState($hControl, $GUI_DISABLE) ; Not to interact Global $iPos = 0 Global $vVar = Binary("0x435753085D07000078DA7D555B73DB4414FE2CCB91EC5CDA9AB626E0A40ED03230533B49C76DE84069702EE399C4364EA7C09347B6D6B2125912D2DA897E00439FF2A8191EE0B7F0D4BF15CEAE94D8A5143FACF6DCBF3DDF9EF505165E02C5BF810719ECDD01FDBECFFE9601E21DC09E040E30E2DC7F5EABD94FAA11B7C75675E08D6B53BB76F0AC5DDF7CF2F366D76CD646BF9A6C684C1C5E3DF52DACC52B00A34836EE33D36426697460C82E7C4ABF163F02B8CD1D061C388CF173CF332BC7C6A0F2B8F2836D558EBC29AB6C7DB3F38C3C098F31B57A81C16DD702EAD54D529680A96D32AF679B946186824CF70087B9161FF54236F05C3304B6B7B7C8709B12398E77DE939000A1AB03E1F9F0E67CE1DCF1225E2353DF766B033F7C3C1D3ADB9D9DAD1F77ABC27F2DFE9202CF80236B72368A46A7AF7FD91FB79F1A3F4DB7EAD6ABFA249AF291B933ED8E1AE45ABCAE9B1C214C2A533302D19F74CF649B69BF4CDE13EEF98E1149231ACAD5D5D5DB3C3A4408EEAFD0DAE9F53AC6E0CCB058581D58D1E4A483AB152D47E6CE9BD7994748753DCBF1FA86033FF0B8C7239F616CD82E1CCF301B8EED63209780199CED8F7D1E1D7B539B49CBCDEE887C5900C3341B74843E1505738DBEC34E43C3B709DED031C211D80567814BA5F6D34DD3A5EFD01830A2CEB01D110123B02663E6F2104317260B79E04598B8028EAC47ED1813ED3314A2052C90104CD861675E1424D410FA8ECD13EEE41A3EC71C8310A4C1764D76D11E42F2466879335510AB08277DC221EE554FF4BF56C335E7D83D3961BC1378FE81631067B1021DE562F14F057F658590294BD5A52EC625BB4ACBEF444D3B56A142575A24644A8990BDA451C860690349CB9B59BA8ABAAA093EE9A3884F4E665BE87E1B6BD044465D7B49299492502746FD7249A4C9521A6AE05BCC2CF996580BCD23816E153266515A96A46559AE2B2D61BE4C112B1B68CB14B7CA710E5A9654AD99A8BC2B66DE15214502AACEA0DF2E775F248035A88A7469247AE128D2FF0724BD5B6ACF8E712745F6159EE2A60D6A62EA96FEA529BEA7F968968C9A7E3787B9D4F76E522FCFF5ED6EEBC59CCF7DC159B614E7A197126EAEF562FDB84B56559E4E4D1A40724E329CD3579B45D9FB0252C527CD62228BD0D5C453462A69E482745CD03F4D1C2B1951B6FC7ED935515693A0D63F60D53F04F941F79ABB4372CBCB6B51A15D4162D1347A56AE2C51FD21E24552A8F9F9BB98E4D8E8CA803F149A7511A5CFA22A324AFF9FA8395C09459FA5ADBCB962E4B698B6ECF343B2A98B62D5BF90FB82DCAF1F26B428320955CCCA5055D15541F8ADE4848A9A492ED9C3EF4AF4E7B547DB37EB347CC7AF764F1ABDE3DD660B7C6487D74FA37C08E5FC8AA12DA5F3AC25B9744582CD764BA88B51C5D7891E2751C8D918E5B8408F3F1B4C029B473408CBE9FBBEE7C9B41446FFA6F807C9748D3A") ; Some inline swf Global $iSizeData = BinaryLen($vVar) GUISetState() _FlashLoadMemory($oShockwaveFlash, $vVar, $iSizeData, $iPos) While 1 If GUIGetMsg() = -3 Then Exit WEnd Func _FlashLoadMemory($oShockwaveFlash, ByRef $vData, ByRef $iSizeData, ByRef $iPos) #forceref $vData, $iSizeData, $iPos If Not IsObj($oShockwaveFlash) Then Return SetError(1, 0, False) _AutoItObject_IUnknownAddRef($oShockwaveFlash) ; Add reference Local $oFlashInterface = _AutoItObject_WrapperCreate(_AutoItObject_IDispatchToPtr($oShockwaveFlash), $dtagIUnknown) If Not IsObj($oFlashInterface) Then Return SetError(2, 0, False) Local $oFlashMemoryStream = _AutoItObject_ObjectFromDtag("_FlashMemoryStream_", $dtagIStream) Local $tIID_IPersistStreamInit = _AutoItObject_CLSIDFromString($sIID_IPersistStreamInit) Local $aCall = $oFlashInterface.QueryInterface(Number(DllStructGetPtr($tIID_IPersistStreamInit)), 0) Local $pPersistStreamInit = $aCall[2] Local $oPersistStreamInit = _AutoItObject_WrapperCreate($pPersistStreamInit, $dtagIPersistStreamInit) $oPersistStreamInit.InitNew() $oPersistStreamInit.Load(Number($oFlashMemoryStream.__ptr__)) Return True EndFunc ;==>_FlashLoadMemory ; IStream definition, custom implementation: Func _FlashMemoryStream_QueryInterface($pSelf, $pRIID, $pObj) #forceref $pSelf, $pRIID, $pObj Return 0x80004002 ; E_NOINTERFACE EndFunc ;==>_FlashMemoryStream_QueryInterface Func _FlashMemoryStream_AddRef($pSelf) #forceref $pSelf Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_AddRef Func _FlashMemoryStream_Release($pSelf) #forceref $pSelf Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Release Func _FlashMemoryStream_Read($pSelf, $pBuffer, $iCb, $pRead) #forceref $pSelf If $iPos = 0 And $iCb = 4 Then DllStructSetData(DllStructCreate("char[4]", $pBuffer), 1, "fUfU") $iPos += 4 ElseIf $iPos = 4 And $iCb = 4 Then DllStructSetData(DllStructCreate("dword", $pBuffer), 1, $iSizeData) $iSizeData += 8 $iPos += 4 Else If $iPos + $iCb > $iSizeData Then $iCb = $iSizeData - $iPos If $iCb = 0 Then Return 1 ; S_FALSE DllStructSetData(DllStructCreate("byte[" & $iCb & "]", $pBuffer), 1, BinaryMid($vVar, 1 + $iPos - 8, $iCb)) If $pRead Then DllStructSetData(DllStructCreate("dword", $pRead), 1, $iCb) $iPos += $iCb EndIf Return 0 ; S_OK EndFunc ;==>_FlashMemoryStream_Read Func _FlashMemoryStream_Write($pSelf, $pBuffer, $iCb, $iWritten) #forceref $pSelf, $pBuffer, $iCb, $iWritten Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Write Func _FlashMemoryStream_Seek($pSelf, $iMove, $iOrigin, $iNewPos) #forceref $pSelf, $iMove, $iOrigin, $iNewPos Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Seek Func _FlashMemoryStream_SetSize($pSelf, $iNewSize) #forceref $pSelf, $iNewSize Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_SetSize Func _FlashMemoryStream_CopyTo($pSelf, $pStream, $iCb, $pRead, $pWritten) #forceref $pSelf, $pStream, $iCb, $pRead, $pWritten Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_CopyTo Func _FlashMemoryStream_Commit($pSelf, $iCommitFlags) #forceref $pSelf, $iCommitFlags Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Commit Func _FlashMemoryStream_Revert($pSelf) #forceref $pSelf Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Revert Func _FlashMemoryStream_LockRegion($pSelf, $iOffset, $iCb, $iLockSize) #forceref $pSelf, $iOffset, $iCb, $iLockSize Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_LockRegion Func _FlashMemoryStream_UnlockRegion($pSelf, $iOffset, $iCb, $iLockSize) #forceref $pSelf, $iOffset, $iCb, $iLockSize Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_UnlockRegion Func _FlashMemoryStream_Stat($pSelf, $pStatstg, $iFlag) #forceref $pSelf, $pStatstg, $iFlag Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Stat Func _FlashMemoryStream_Clone($pSelf, $pStream) #forceref $pSelf, $pStream Return 0x80004001 ; E_NOTIMPL EndFunc ;==>_FlashMemoryStream_Clone ; On Error Func _ErrFunc() ConsoleWrite("COM Error, ScriptLine(" & $oError.scriptline & ") : Number 0x" & Hex($oError.number, 8) & " - " & $oError.windescription & @CRLF) EndFunc ;==>_ErrFunc
    1 point
×
×
  • Create New...