Sign in to follow this  
Followers 0
AngelofDeath

..

3 posts in this topic

#1 ·  Posted (edited)

Posted Image Edited by AngelofDeath

Share this post


Link to post
Share on other sites



Please don't do that. Removing queries on the forum makes later searches less valuable. Another user might be looking for the same thing at a future date.

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#cs
    CustomProperties:
        Add(ByVal sPropName As String, ByRef Value As Object) As CustomProperty
        Count() As Integer
        Item(ByVal Index As Object) As CustomProperty

    CustomProperty:
        Name() As String
        Remove()
        Type() As dsoFilePropertyType
        Value() As Object

#ce

; dsoFilePropertyType
Local Enum $dsoPropertyTypeUnknown, _
    $dsoPropertyTypeString, _
    $dsoPropertyTypeLong, _
    $dsoPropertyTypeDouble, _
    $dsoPropertyTypeBool, _
    $dsoPropertyTypeDate

;
Local Enum Step *2 $dsoOptionDefault = 0, _
  $dsoOptionOnlyOpenOLEFiles = 1, _
  $dsoOptionOpenReadOnlyIfNoWriteAccess, _
  $dsoOptionDontAutoCreate, _
  $dsoOptionUseMBCStringsForNewSets

$dso = ObjCreate("DSOFile.OleDocumentProperties")

; Open(ByVal sFileName As String, Optional ByVal ReadOnly As Boolean = False, Optional ByVal Options As DSOFile.dsoFileOpenOptions = dsoOptionDefault)
$dso.Open(@ScriptDir & "\filename.xml", False)

; Add(ByVal sPropName As String, ByRef Value As Object) As CustomProperty
$dsoCustomProp = $dso.CustomProperties.Add("MyProc", "MyValue")
ConsoleWrite($dsoCustomProp.Name & @TAB & $dsoCustomProp.Value & @CRLF)

; Close(Optional ByVal SaveBeforeClose As Boolean = False)
$dso.Close()

For standard properties (summary properties), it's possible to get only those that are recognized by the library. Retrieving the width summary of an image is not possible. You'll have to create a custom property for that. How does the system is able to retrieve this information then? I guess that using shell and file extension interfaces. lol I don't know what I'm talking about... ']

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0