We Recommend

Learning Python Learning Python
The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation.


Posted By

buscarini on 07/13/06


Tagged

trabajo pywinauto powerpoint


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

anayhk


Manejar el powerpoint


Published in: Python 


  1. from pywinauto import *
  2. from pywinauto import application
  3.  
  4.  
  5. office = "c:\\archivos de programa\microsoft office"
  6. ppt = "\powerpnt.exe"
  7.  
  8. # Arrancar la aplicacion
  9. app.start_(office + "\office11" + ppt);
  10.  
  11. win = app.window_(title_re = ".*Microsoft PowerPoint.*")
  12.  
  13. # Seleccionar todo para que al pasar las transparencias en modo presentacion se pase #
  14.  
  15. tambien en la vista de diseƱo
  16. win.TypeKeys ("%ES")
  17.  
  18. # Arrancar la presentacion
  19. win.TypeKeys("{F5}")

Report this snippet 

You need to login to post a comment.