Jump to content

WinActivate("[CLASS:Chrome_WidgetWin_1]", "") doesn't work anymore


Recommended Posts

Hello,

I'm running Windows version 21H2 build SO 19044.1889 64bit Enterprise, the latest Autoit x86 v.3.3.16.0 and the latest Chrome 104.0.5112.102 (official build) (64 bit).

I've found out that WinActivate("[CLASS:Chrome_WidgetWin_1]", "") doesn't work anymore in my scripts. It seems that the problem is related to the class name. Autoit Window Info however returns the specified class for Chrome.

The problem (perhaps) occurred after Windows update from version 19, but I'm not sure as for some months I didn't touch autoit scripts (perfectly working before).

By the way, the same problem happens with WinExists(), WinGetHandle() and possibly other commands that use CLASS:.

I've found a temporary workaround (using ProcessExists and Opt) but I would prefer to understand why it doesn't work and if it is a bug

If ProcessExists("chrome.exe") > 0 then
    MsgBox(0,"Chrome","esiste")
    Opt("WinTitleMatchMode", -2)
    WinActivate("Google Chrome")
    Opt("WinTitleMatchMode", 1)
Else
    MsgBox(0,"Chrome","non esiste")
endif

.Thanks

Bruno

Link to comment
Share on other sites

  • 4 months later...

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
 Share

  • Recently Browsing   0 members

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