Jump to content

Get ControlHandle or WindowTitle. How to?


Recommended Posts

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

  • Moderators

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. :naughty:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...