AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get Information of all windows in listview

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
philz



Joined: 05 Jun 2007
Posts: 87
Location: USA

PostPosted: Thu Apr 17, 2008 11:50 am    Post subject: Get Information of all windows in listview Reply with quote

I don't know why something like this hasn't been posted already. I have seen many people trying to do something to all windows when they only intend to make it happen to all active windows. I too have had problems like this. In my shifty window script I also came across these problems, particulary with vista's sidebar gadgets. This script will show all relevent information for open windows.

I imagine the only reason something like this hasn't been posted is because it only took me about 5 minutes to write.

here is the code:
Code:
Gui, Add, ListView, r20 w700 gMyListView, Title|Class|ID|PID|Process Name|Count|Maxmin|Transparent|Style

winget, allwindows, list
Loop, %allwindows% {
   win := allwindows%A_index%
   wingettitle, tit, ahk_id %win%
   wingetclass, cls,ahk_id %win%
   winget, id,id,ahk_id %win%
   winget, pid,pid, ahk_id %win%
   winget, pn,processname,ahk_id %win%
   winget, cnt,count,ahk_id %win%
   winget, mm,minmax,ahk_id %win%
   winget, tsp,transparent,ahk_id %win%
   winget, st,style,ahk_id %win%
    LV_Add("", tit,cls,id,pid,pn,cnt,mm,tsp,st)
   }

LV_ModifyCol()  ; Auto-size each column to fit its contents.
LV_ModifyCol(3, "Integer")
LV_ModifyCol(4, "Integer")
LV_ModifyCol(6, "Integer")
LV_ModifyCol(8, "Integer")
Gui, Show
return

MyListView:
if A_GuiEvent = DoubleClick
{
    LV_GetText(RowText, A_EventInfo)  ; Get the text from the row's first field.
    ToolTip You double-clicked row number %A_EventInfo%. Text: "%RowText%"
   sleep, 1000
   tooltip
}
return

GuiClose:
ExitApp
Back to top
View user's profile Send private message Send e-mail
fivekitten



Joined: 17 Apr 2008
Posts: 3

PostPosted: Thu Apr 17, 2008 8:43 pm    Post subject: Thanks Possible to Click to Open? Reply with quote

That's handy dandy script - Thanks! Is it possible for someone to script it to open a selected windows in the column? (I'm clueless.) Just curious. Very convenient when you have ten thousand windows open.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group