Lipstick Posted January 9, 2013 Share Posted January 9, 2013 So, I'm very new to AutoIt and programming overall. I've encountered a problem when I was trying to make a script for automation of several windows at the same time, some windows in which the title is always changing and never the same. It requires me to ControlSend/ControlClick several windows at the same time. I can easily get the PID with ProcessExists, but can I use the PID somehow to find out what the ControlHWND is or what the Window Title is? The windowtitle is constantly changing. And as I've understood the controlHWND is different every time I start the application anew? I've been around google quite a bit and I've just been going in circles trying to find a solution. Tried WinList(), tried _ProcessGetName, WinGetHandle(Can't use this since the title changes) and a few more. If only I could use the PID to fetch the WindowTitle.. Any help is greatly appreciated, or tips/pointers in the right direction. Thanks in advance /Lip. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 9, 2013 Moderators Share Posted January 9, 2013 Lipstick,I see you did not read the Forum rules very carefully - you missed the bit which says:"Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above"Do not try it again - we are not stupid and our patience has limits. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts