Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def win_get(self, title='', text='', exclude_title='', exclude_text='', encoding=None):
encoding = encoding or self.window_encoding
script = self.render_template('window/get.ahk',
subcommand='ID',
title=title,
text=text,
exclude_text=exclude_text,
exclude_title=exclude_title)
ahk_id = self.run_script(script)
return Window(engine=self, ahk_id=ahk_id, encoding=encoding)
def windows(self):
"""
Returns a list of windows
:return:
"""
windowze = []
for ahk_id in self._all_window_ids():
win = Window(engine=self, ahk_id=ahk_id, encoding=self.window_encoding)
windowze.append(win)
return windowze
def __eq__(self, other):
if not isinstance(other, Window):
return False
return self.id == other.id