Have to find if some window name has some string on it with python
        Posted  
        
            by Shady
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Shady
        
        
        
        Published on 2010-05-07T06:01:40Z
        Indexed on 
            2010/05/07
            6:08 UTC
        
        
        Read the original article
        Hit count: 358
        
First of all, I get the name of the current window
win32gui.GetWindowText(win32gui.GetForegroundWindow())
k, no problem with that...
But now, how can I make an if with the result for having an specific string on it...
For example, the result gave me
C:/Python26/
How can I make an True of False for the result containing the word, 'python' ?
I'm trying with re.search, but I'm not being able to make it do it
© Stack Overflow or respective owner