tests.py 501 B

123456789101112131415161718192021
  1. '''
  2. Created on Jan 28, 2020 @author: levente.marton
  3. '''
  4. import pyautogui as gu
  5. import pywinctl as gw
  6. import unittest
  7. import re
  8. # from hotboards import ciel_keys
  9. from time import sleep
  10. # t = 5
  11. # while t > 0:
  12. # print(gw.getAllTitles())
  13. # sleep(1)
  14. # t -= 1
  15. if __name__ == "__main__":
  16. print(gw.getAllTitles())
  17. # active_win = gw.getActiveWindowTitle()
  18. # print(active_win)
  19. # my_win = gw.getWindowsWithTitle('ECLIPSE')[0]
  20. # print(my_win.title in active_win)