Skip to content

Commit

Permalink
more window examples
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Dec 18, 2018
1 parent 9df095b commit 01408cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ Working with windows
win.activate() # give the window focus
win.disable() # make the window non-interactable
win.enable() # enable it again
win.to_top() # moves window on top of other windows
win.to_bottom()
win.always_on_top = True # make the windows always on top
win.close()

for window in ahk.windows():
print(window.title)
Expand All @@ -93,7 +96,6 @@ print(window.rect) # (x, y, width, height)
print(window.id) # ahk_id
print(window.pid)
print(window.process)
win.close()
```


Expand Down

0 comments on commit 01408cd

Please sign in to comment.