PDA

View Full Version : Get name and handle of applications



nrgyzer
08-15-2009, 01:01 PM
Hey,

is it possible to get a list of all running applications with the task name (for example Notepad) and the window handle - perhaps with DLL or better -> with plugin? :lol

thanks in advance :)

Imagine Programming
08-15-2009, 01:13 PM
local tWindows = Window.EnumerateTitles(true);
if(tWindows)then
for hWnd, sTitle in tWindows do
--hWnd = Window Handle
--sTitle = Window Title.
end
end


It's in the manual :) look for Window.EnumerateTitles

nrgyzer
08-15-2009, 01:30 PM
Great, I didn't know that there is such a function :rolleyes

Imagine Programming
08-15-2009, 02:43 PM
Great, I didn't know that there is such a function :rolleyes

Sometimes if you want to do something in AMS, just open the helpfile and search for a few words that match your plans. :)