Skip to content

Instantly share code, notes, and snippets.

@yuujii
Created April 26, 2021 07:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuujii/79f97ab3345c2c4be89f016021347d78 to your computer and use it in GitHub Desktop.
Save yuujii/79f97ab3345c2c4be89f016021347d78 to your computer and use it in GitHub Desktop.
Teamsのスレッド折りたたみと詳細表示を(擬似的に)OFFにする方法(sikulix)
# カーソル移動速度
Settings.MoveMouseDelay = 0.1
while True:
time.sleep(1)
chkApp = App(u"Microsoft Teams")
# Teamsアプリ起動時のみ実行
if chkApp.window():
tR = Region(chkApp.window())
aR = App.focusedWindow()
# Teamsウインドウフォーカス時のみ実行
if tR.getX() == aR.getX() and tR.getY() == aR.getY() and tR.getW() == aR.getW() and tR.getH() == aR.getH():
# findAllで対象がないときの待ち時間
tR.setAutoWaitTimeout(0.1)
# [件の返信]
thList = tR.findAll("1619419447356.png")
for th in thList:
click(th)
# [詳細表示]
miList = tR.findAll("1619413751495.png")
for mi in miList:
click(mi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment