harmor Posted October 21, 2010 Posted October 21, 2010 (edited) I want to check if a pop-up dialog appears. The title is random so I looked into using "Class" but since the main window and the pop-up use the same class I cannot use that approach. I did notice the "Style", "Exstyle", and "Handle" are different and was wondering if I could use something like... if Style = "0x960A0000" Then ;Code here Endif Edited October 21, 2010 by harmor
KaFu Posted October 21, 2010 Posted October 21, 2010 You can detect the styles with _WinAPI_GetWindowLong... #Include <WinAPI.au3> #Include <Constants.au3> $hWnd = WinGetHandle("[ACTIVE]", "") msgbox(0,""",_WinAPI_GetWindowLong($hWnd, $GWL_STYLE) & @crlf & _WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE)) OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
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