Sign in to follow this  
Followers 0
Lipstick

Get ControlHandle or WindowTitle. How to?

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0