Skip to content

Instantly share code, notes, and snippets.

@khchen
Created November 9, 2021 18:24
Show Gist options
  • Select an option

  • Save khchen/2f398c5fe1b3ff9ef83b3ee37258698a to your computer and use it in GitHub Desktop.

Select an option

Save khchen/2f398c5fe1b3ff9ef83b3ee37258698a to your computer and use it in GitHub Desktop.
#[
Author: Ward
Example of FindWindow
References:
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-findwindowa
]#
import winim/lean
# This code is extract from https://github.com/khchen/wAuto
# Minimizes all windows. Equal to send("#m").
PostMessage(FindWindow("Shell_TrayWnd", NULL), WM_COMMAND, 419, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment