Benbo Posted September 23, 2023 Share Posted September 23, 2023 Like the title says, I'm having a strange issue where WinGetTitle returns different results on different PC's. I'm using AutoIt to control a custom GUI program, when I use my laptop everything works OK. But, when I run the AutoIt script (both in debug mode and as an executable) on a different PC, I get a different result from WinGetTitle. The window title (verified with AutoIt Window Info V3) is "QC_demo". When I run AutoIt on the "other" PC, WinGetTitle returns either a blank or the GUI program's file name. I've tried WinGetTitle("[ACTIVE]"), WinGetTitle (); and WinGetTitle("QC_demo") with the AutoItSetOption ("WinTitleMatchMode", -1). I'm stumped, appreciate any help. Link to comment Share on other sites More sharing options...
Nine Posted September 23, 2023 Share Posted September 23, 2023 Handle will be different each time you run your script. Do not hardcode handle. In anyways, you should provide runable code for us to understand what your issue is, instead of doing the guessing game... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy 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