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 

Removing the Toolbar from WinGet,,List

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
canta



Joined: 30 May 2006
Posts: 49

PostPosted: Tue Mar 25, 2008 2:10 am    Post subject: Removing the Toolbar from WinGet,,List Reply with quote

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
View user's profile Send private message Visit poster's website
Superfraggle



Joined: 02 Nov 2004
Posts: 1019
Location: London, UK

PostPosted: Tue Mar 25, 2008 2:23 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
canta



Joined: 30 May 2006
Posts: 49

PostPosted: Tue Mar 25, 2008 2:37 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Tue Mar 25, 2008 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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