Funktionreferenz


_WinAPI_ShellObjectProperties


Invokes the Properties context menu command on a Shell object

#include <WinAPIShellEx.au3>
_WinAPI_ShellObjectProperties ( $sFilePath [, $iType = 2 [, $sProperty = '' [, $hParent = 0]]] )

Parameter

$sFilePath The object name.
$iType [optional] The value that specifies the type of object.
$SHOP_PRINTERNAME
$SHOP_FILEPATH (Default)
$SHOP_VOLUMEGUID
$sProperty [optional] The name of the property sheet page to be opened initially.
$hParent [optional] Handle of the parent window of the dialog box.

Rückgabewert

Success: True.
Failure: False.

Bemerkungen

None.

Siehe auch

Suche nach SHObjectProperties in der MSDN Bibliothek.

Beispiel

#include <WinAPIShellEx.au3>

Opt('WinTitleMatchMode', 4)

If Not _WinAPI_ShellObjectProperties(@ScriptFullPath) Then Exit

Local $hWnd = WinWaitActive(@ScriptName, '', 3)
If Not $hWnd Then
    Exit
EndIf

While WinExists($hWnd)
    Sleep(100)
WEnd