Kratos Posted March 9, 2009 at 02:42 PM Report Share #249393 Posted March 9, 2009 at 02:42 PM 😛 Pequeno script que faz uso da lib Ctype, abre a gaveta do Driver de CD. Esta poderosa lib, ente outas coisas, permite acessar funções em DLL's. # Exemplo pra abrir e fechar porta do driver de CD: from ctypes import * import time print "abrindo...." windll.winmm.mciSendStringA("set cdaudio door open", None, 0, 0) time.sleep(3) print "fechando..." windll.winmm.mciSendStringA("set cdaudio door closed", None, 0, 0) 🙂 "Vejo sempre além, pois me apóio em ombro de Gigantes" Link to comment Share on other sites More sharing options...
fnds Posted March 9, 2009 at 05:32 PM Report Share #249435 Posted March 9, 2009 at 05:32 PM Bons olhos te vejam Kratos 😛 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now