When starting coding in VS Code it does not recognize the AutoIt library, giving me the error below:
Unresolved library: AutoItLibrary.
Error generating libspec:
Getting keyword names from library ‘AutoItLibrary’ failed: Initializing library ‘AutoItLibrary’ with no arguments failed: com_error: (-2147221164, ‘Class not registered’, None, None).
using the command pip install robotframework-autoitlibrary the library was installed, I checked the PYTHONPATH environment variable. The problem may be related to the way the Robot Framework is accessing the library or the environment configuration
Have you seen this yet?
Does not work, Any update about this?
There’s multiple threads here and more can be found via google;
Main issue with AutoIT is that it needs to be installed with admin rights because it ships with a DLL that needs to be registered. This registration happens during the installation and no admin rights, registration will fail and autoit doesn’t contain any keywords …
Even the docs point it out here; GitHub - nokia/robotframework-autoitlibrary
Make sure you run the installation command with administrative privilages.
If this is the case, your best bet is to install with admin rights or dig the commands out from robotframework-autoitlibrary/setup.py at master · nokia/robotframework-autoitlibrary · GitHub and run those manually with admin shell.