 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
canta
Joined: 30 May 2006 Posts: 49
|
Posted: Tue Mar 25, 2008 2:10 am Post subject: Removing the Toolbar from WinGet,,List |
|
|
I use WinGet to get a list of all windows.I manage to exclude the Program Manager and other unwanted windows, but i cant get rid of the toolbar. It comes with a blank title and WinGet's exclude parameter doesnt use ahk_class. What to do? | Code: | SetTitleMatchmode, RegEx
excludelist = Program Manager|How do i get toolbar here, it has a blank title?
WinGet,list, List,,, %excludelist%
Loop, %list%
{
id:=list%A_Index%
WinGetTitle, title, ahk_id %id%
MsgBox %title%
}
return |
|
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 1019 Location: London, UK
|
Posted: Tue Mar 25, 2008 2:23 am Post subject: |
|
|
| Code: | SetTitleMatchmode, RegEx
excludelist = Program Manager|How do i get toolbar here, it has a blank title?
WinGet,list, List,\w,, %excludelist%
Loop, %list%
{
id:=list%A_Index%
WinGetTitle, title, ahk_id %id%
MsgBox %title%
}
return |
Will only match titles with characters in their titles. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
canta
Joined: 30 May 2006 Posts: 49
|
Posted: Tue Mar 25, 2008 2:37 am Post subject: |
|
|
| Thanks a lot. Does this exist in the documentation or is it just something a programmer (not me) would know. I couldnt find any info on it. |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Tue Mar 25, 2008 11:51 am Post subject: |
|
|
Regular Expressions (RegEx) - Quick Reference
| AHK Help File wrote: | | \w Matches any single "word" character, namely alphanumeric or underscore. This is equivalent to [a-zA-Z0-9_]. Conversely, capital \W means "any non-word character". |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|