Search the Community
Showing results for tags 'ole'.
-
Trying to figure out how to do CallByName on AutoIt COM objects due to the lack of being able to set properties within an Execute() statement Several Ideas were Tried https://www.autoitscript.com/forum/topic/200129-set-object-properties-with-propertyname-and-value-taken-from-an-array/ I think this is the best; Patching the vtable of IDispatch so we can intercept a Fake function call ($obj.Au3_CallByName) use it like this Local $oDictionary = ObjCreate("Scripting.Dictionary") ; EXAMPLE Au3_CallByname_Init() ; (you can optionally provide a classname here but we p
-
IGroupPolicyObject interface ;;IGroupPolicyObject #RequireAdmin #include-once #include <WinAPIConstants.au3> ; $S_OK #include <WinAPIReg.au3> ;_WinAPI_GetRegKeyNameByHandle Global Enum $GPO_SECTION_ROOT = 0x0, $GPO_SECTION_USER, $GPO_SECTION_MACHINE Global Enum $GPO_OPEN_LOAD_REGISTRY = 0x1, $GPO_OPEN_READ_ONLY Global Enum $GPO_OPTION_DISABLE_USER = 0x1, $GPO_OPTION_DISABLE_MACHINE Global Enum $GPOTypeLocal = 0x0, $GPOTypeRemote, $GPOTypeDS, $GPOTypeLocalUser, $GPOTypeLocalGroup Global Const $sCLSID_GroupPolicyObject = "{EA502722-A23D-11D1-A7D3-0000F87571E3
-
Is it possible to use WMI events, to monitor all the specific files of given filetype inside specific directory? I'd find it very usefull to use simple WMI events to check for how often graphic designers in my graphic department use different illustrator .AI files. Right now I am scanning folders using my own function and FileGetTime to check for any changes (last time accessed) and check for how usefull to us are files we have, but this is very limited. I have to run my scrypt every single minut to get more-less accurate data, missing some of the events that already accured or unnecesari
-
Does anyone know about OLE2 Compound Document Format and how can be extracted embedded files?
-
How do I attach to the active acrobat window and get it's javascript object? I know how to do this when i know the filename: $oAcro = ObjCreate("acroexch.app") $oPDF = ObjCreate("AcroExch.PDDoc") $File = @ScriptDir&"\test.PDF" $oPDF.Open($File) $oJSpdf = $oPDF.getJSObject.app.opendoc($File) But how would i do this if I didn't know $File? If I wanted to connect to the Active window instead?
-
Is there a way to share a Scripting.Dictionary object between scripts? I was thinking this would be possible with COM, but I'm not familiar enough with it to do so... Or is there a better way to share objects between programs? What about sharing arrays?
- 2 replies
-
- Scripting.Dictionary
- COM
-
(and 3 more)
Tagged with: