Treat windows or at least window identities as first class objects.

 Store window identities in variables, compare them for equality.
 Provide examples of performing some of the following:
 hide, 
 show, 
 close, 
 minimize, 
 maximize, 
 move,     and 
 resize a window. 


The window of interest may or may not have been created by your program.




      SWP_NOMOVE = 2
      SWP_NOZORDER = 4
      SW_MAXIMIZE = 3
      SW_MINIMIZE = 6
      SW_RESTORE = 9
      SW_HIDE = 0
      SW_SHOW = 5
 
      REM Store window handle in a variable:
      myWindowHandle% = @hwnd%
 
      PRINT "Hiding the window in two seconds..."
      WAIT 200
      SYS "ShowWindow", myWindowHandle%, SW_HIDE
      WAIT 200
      SYS "ShowWindow", myWindowHandle%, SW_SHOW
      PRINT "Windows shown again."
 
      PRINT "Minimizing the window in two seconds..."
      WAIT 200
      SYS "ShowWindow", myWindowHandle%, SW_MINIMIZE
      WAIT 200
      SYS "ShowWindow", myWindowHandle%, SW_RESTORE
      PRINT "Maximizing the window in two seconds..."
      WAIT 200
      SYS "ShowWindow", myWindowHandle%, SW_MAXIMIZE
      WAIT 200
      SYS "ShowWindow", myWindowHandle%, SW_RESTORE
      PRINT "Now restored to its normal size."
 
      PRINT "Resizing the window in two seconds..."
      WAIT 200
      SYS "SetWindowPos", myWindowHandle%, 0, 0, 0, 400, 200, \
      \    SWP_NOMOVE OR SWP_NOZORDER
 
      PRINT "Closing the window in two seconds..."
      WAIT 200
      QUIT