Iczer Posted August 9, 2015 Posted August 9, 2015 i have pretty simple script for Firefox, but it bring strange results - WinGetTitle return blank string and WinList return array with 2 rows - one with blank title and one with actual title.Row|Col 0|Col 1 [0]|2| [1]||0x000D03AE [2]|AutoIt General Help and Support - AutoIt Forums - Mozilla Firefox|0x001300A6and script:#include <Array.au3> ConsoleWrite('WinExists("[CLASS:MozillaWindowClass]") = ' & WinExists("[CLASS:MozillaWindowClass]")&@crlf) ConsoleWrite('WinGetHandle("[CLASS:MozillaWindowClass]") = "'&WinGetHandle("[CLASS:MozillaWindowClass]")&'"'&@crlf) ConsoleWrite('WinGetTitle("[CLASS:MozillaWindowClass]") = "'&WinGetTitle("[CLASS:MozillaWindowClass]")&'"'&@crlf) $a=WinList ("[CLASS:MozillaWindowClass]") _ArrayDisplay($a)Why WinGetTitle doesn't work? Maybe its bug in WinGetTitle?
KaFu Posted August 9, 2015 Posted August 9, 2015 Firefox (and I think IE too) consists of two Windows, one container and one main content window. Your looking for the class, winexists returns the first one found, in this case the container window without a title. 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