Jump to content

WinGetPos GUI Crash

Recommended Posts

I'm trying to use WinGetPos for an application but sometimes it pulling up my anti virus app instead. Since these applications have the same class I tried using the Advanced Mode but this crashes my GUI. I'm assuming WinGetPos doesn't like the defined ;instance at the end?

Local $aPos = WinGetPos("[CLASS:Qt5QWindowIcon]")

Advanced Mode - Crashes GUI

Local $aPos = WinGetPos("[CLASS:Qt5QWindowIcon; INSTANCE:6]")


Link to comment
Share on other sites

Hi @aa2zz6

I can't seem to duplicate your problem with WinGetPos even when using instance everything works fine.

I would suggest trying matching title if consistent, or partial if not. Something like:

Opt("WinTitleMatchMode", 2);Match any substring in the title
$aPos = WinGetPos("[CLASS:Qt5QWindowIcon; TITLE:Test]")

If you are experiencing still, it might help to know what application you're trying to manipulate.
Finally you could try _WinAPI_EnumWindowsTop and manually check class and other window information.

Link to comment
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

  • Recently Browsing   0 members

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