title: Hide all taskbars and System tray on all connected monitors using Ctypes
body: <p>I am trying to hide the taskbar and the system tray on all the monitors I have connected (in this case 2 monitors).</p>
  
  <p>When I try to do it on the foreground monitor there is no problem and everything works as expected. </p>
  
  <p>Here is an example:</p>
  
  <pre><code>import ctypes
  from ctypes import wintypes
  import time
  
  user32 = ctypes.WinDLL("user32")
  
  SW_HIDE = 0
  SW_SHOW = 5
  
  user32.FindWindowW.restype = wintypes.HWND
  user32.FindWindowW.argtypes = (
      wintypes.LPCWSTR, # lpClassName
      wintypes.LPCWSTR) # lpWindowName
  
  user32.ShowWindow.argtypes = (
      wintypes.HWND, # hWnd
      ctypes.c_int)  # nCmdShow
  
  def hide_taskbar():
      hWnd = user32.FindWindowW(u"Shell_traywnd", None)
      user32.ShowWindow(hWnd, SW_HIDE)
  
  def unhide_taskbar():
      hWnd = user32.FindWindowW(u"Shell_traywnd", None)
      user32.ShowWindow(hWnd, SW_SHOW)
  
  # Testing:
  hide_taskbar()
  time.sleep(2)
  unhide_taskbar()
  </code></pre>
  
  <p>But this only works with the foreground Monitor (or monitor 1). </p>
  
  <p>How could I do this for all monitors?</p>