aa2zz6 Posted March 6, 2017 Share Posted March 6, 2017 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 More sharing options...
genius257 Posted March 6, 2017 Share Posted March 6, 2017 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. My Scripts: AutoIt Package Manager, AutoItObject Pure AutoIt, Corsair CUE SDK Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now