Jefferds44 Posted January 28, 2009 Posted January 28, 2009 Hi guys, I want to manage multiple windows but they all have the same title. I know they have a unique Handle. I'm having a hard time wrapping my head around what strategy to use to manage them. Any thoughts? THanks
BrettF Posted January 28, 2009 Posted January 28, 2009 If you are running the processes, check out a method in the FAQ... its near the bottom of page 1. You can find it in the sticky in this forum... Otherwise are there differences with the windows? Check out what the AutoIt info tool tells you about the window. It may have different text or a way to identify it. If they are the same program however, just enum all the windows, pick the ones with the correct titles, and name one hwnd1 and the other hwnd2 etc... Hope that gives you some ideas... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Jefferds44 Posted February 12, 2009 Author Posted February 12, 2009 BrettF,Thanks for the reply. I'm back to this problem again. I have a strategy to rename the windows to different names. It works fine. But the program seems to reset the window titles at some point. Is there a way to manage windows w/o resorting to renaming strategies? Also, I searched the FAQ for the example you refer to but couldn't find it.Thanks,JeffIf you are running the processes, check out a method in the FAQ... its near the bottom of page 1. You can find it in the sticky in this forum... Otherwise are there differences with the windows? Check out what the AutoIt info tool tells you about the window. It may have different text or a way to identify it. If they are the same program however, just enum all the windows, pick the ones with the correct titles, and name one hwnd1 and the other hwnd2 etc... Hope that gives you some ideas... Cheers,Brett
Inverted Posted February 12, 2009 Posted February 12, 2009 What about his idea to enumerate all the windows of that process ?
Jefferds44 Posted February 12, 2009 Author Posted February 12, 2009 I'm not sure exactly what that means... ?What about his idea to enumerate all the windows of that process ?
BrettF Posted February 12, 2009 Posted February 12, 2009 Please read the FAQ post I directed you to, then have a go, and post your code. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
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