Advertisement
glauco486

Untitled

Apr 19th, 2011
3,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PyCon 0.37 KB | None | 0 0
  1. #coded, by Glauco Marques
  2. #19-04-11
  3.  
  4. import win32gui, win32con
  5.  
  6. janela = win32gui.FindWindow("SciCalc","Calculadora")
  7.  
  8. print ("O Handle da janela e:")
  9. print (janela) 
  10.  
  11. ### Fecha o programa...
  12. print("Destruir..")
  13. win32gui.SendMessage(janela, win32con.WM_DESTROY)
  14.  
  15.  
  16. ### Ou mostra o programa...
  17. print("ou mostrar...")
  18. win32gui.SendMessage(janela, win32con.WM_SHOW)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement