grafikm Posted December 16, 2010 Posted December 16, 2010 Hy! I'm trying to use AutoItX on Windows 7 x64, with Python 2.6 (I need this version) but it won't work. It keep giving me this message : File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 84, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) pywintypes.com_error: (-2147221164, 'Class not registered', None, None) The first lines of my .py file are : from win32com.client import Dispatch Auto = Dispatch("AutoItX3.Control") Thanks for your help
trancexx Posted December 16, 2010 Posted December 16, 2010 You probably should register the server first for your system. I don't know how's that done with python but with dumber scripting languages it's usually done by running regsvr32.exe. ♡♡♡ . eMyvnE
grafikm Posted December 18, 2010 Author Posted December 18, 2010 You probably should register the server first for your system. I don't know how's that done with python but with dumber scripting languages it's usually done by running regsvr32.exe.Thanks trancexx! You were right.To register the COM interface you simply need to do this : Open a command prompt window (cmd) as an administrator Go to AutoItX directory (default on Windows 7 : cd C:\Program Files (x86)\AutoIt3\AutoItX\) Type these two commands : regsvr32.exe AutoItX3.dll regsvr32.exe AutoItX3_x64.dllIl suffit d'enregistrer l'interface COM de cette manière : Ouvrir une fenêtre d'invite de commande (cmd) en mode administrateur Accéder au répertoire de AutoItX (par défaut sur Windows 7 : cd C:\Program Files (x86)\AutoIt3\AutoItX\) Saisir ces deux commandes: regsvr32.exe AutoItX3.dll regsvr32.exe AutoItX3_x64.dllgrafik.muzik
grafikm Posted December 18, 2010 Author Posted December 18, 2010 This may sound stupid but... where is the « SOLVED » button on this forum?
Richard Robertson Posted December 18, 2010 Posted December 18, 2010 There is no solved button. You just have to edit the first post in the thread and change the title.
grafikm Posted December 18, 2010 Author Posted December 18, 2010 There is no solved button. You just have to edit the first post in the thread and change the title.I would like to, but there's no EDIT button.
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