Jump to content

Recommended Posts

Posted

I had such snippet:
 

  Quote

    Local $oShell = ObjCreate("Shell.Application")
    ConsoleWrite(@ScriptLineNumber & @crlf)
    Local $oShellWindows_coll = $oShell.Windows() ; collection of all ShellWindows (IE and File Explorer)
    _log(@ScriptLineNumber & @crlf)

Expand  

I found that $oShell.Windows() hangs the script for about 30 minutes......

Anybody know, to which this can be related ?

mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

It's really hard to know what's the issue.  Could you confirm you get the same issue using vbs.

 

StartTime = Timer()
dim objShell
dim objShellWindows
set objShell = CreateObject("shell.application")
set objShellWindows = objShell.Windows
EndTime = Timer()
WScript.Echo "Windows Count: " & objShellWindows.Count & vbCrlf & "Time Elapsed: "  & (EndTime - StartTime)

 

 

Saludos

Posted

As so far we found that this was somehow related to AcrobatReader update.
On some computers, this problem appeared and disappeared by itself.
On some others when we uninstall them all starts works fine.

I will back, if I will have any other information related to this issue.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...