AutoitLibrary - contains only 9 of 113 documented calls

899 views
Skip to first unread message

Greg Parsons

unread,
May 31, 2014, 1:05:27 PM5/31/14
to robotframe...@googlegroups.com

Hi All,

I read thread "expand autoitlibrary"

           (https://groups.google.com/forum/#!searchin/robotframework-users/autoitlibrary/robotframework-users/GeEJSUMnlmA/jF0g35sHK3EJ)
but that was from 2012  and did not exactly answer my question,  other than doing it myself, which maybe is still the answer.


====


I realize that the AutoitLibrary does only a subset of what is available from Autoit itself.
However, the doc shows all these as being available
http://robotframework-autoitlibrary.googlecode.com/svn-history/r15/trunk/doc/AutoItLibrary.html
113 methods available overall.

When I am in RIDE and I key in "auto" and hit Cntrl-Space it shows only 9 (NINE) available,
and those are the only ones that indeed work.

AutoItLibrary.Get Active Window Image
AutoItLibrary.Get Auto It Version
AutoItLibrary.Get Screen Image
AutoItLibrary.Run
AutoItLibrary.Get Version
AutoItLibrary.Wait For Active Window
AutoItLibrary.Win Wait
AutoItLibrary.Win Wait Active
AutoItLibrary.Win Wait Close

Ideas?

Is this a dead library, no work on it being done and left abandoned and unfinished even at the time of last version?
Thanks in Advance

I am running:

ENV
Parallels VM (on mac) 
with ModernIE's IE9/Win7 Build 20131127 for VirtualBox install as an Appliance

PYTHON
ActivePython-2.7.6.9-win32-x86
pywin32-219.win32-py2.7 
wxPython2.8-win32-unicode-2.8.11.0-py27 (this version needed for RIDE to work)
PIL-1.1.7.win32-py2.7 (for screen cap to work)

ROBOT
robotframework-2.8.4.win32
robotframework-seleniumlibrary-2.9.1.win32
robotframework-ride-1.2.3.win32

AUTOIT
AutoItLibrary-1.1


Taylor, Martin

unread,
Jun 2, 2014, 8:47:30 AM6/2/14
to gregp...@gmail.com, robotframe...@googlegroups.com

Two possibilities here:

1.      You’re doing something wrong.

2.      I’ve got a more up-to-date version and need to do a release.

 

AutoItLibrary is “not dead yet”, but languishes because I have no work-related reason to use it. My very small Test Automation team is overloaded with developing and maintaining proprietary Robot Framework libraries that we use to test our products, so finding time to maintain and release a library that we don’t use is rather difficult.

 

That said, when I invoke the AutoItLibrary self-test suite in RIDE I and type auto<ctrl-space> I get the full list of all supported keywords, not the short list that you claim. AutoItLibrary has two kinds of KWs that it supports, as stated in the class documentation: “The

    *AutoItLibrary* class provides a proxy for the AutoIt keywords callable on the AutoIt COM object and

    provides additional high-level keywords implemented as methods in this class.”

I suspect that somehow in RIDE you’re seeing only the native KWs implemented in the __init__.py module and not the KWs in the underlying COM object that AutoItLibrary provides proxy access to. One possibility of why this might be happening is that you have either a different Python setup that I’m familiar with, and thus AutoItLibrary didn’t find the right place to put its .xml documentation file, or that you didn’t install AutoItLibrary using the standard “python setup.py install” procedure. To verify both of these possibilities, check your system for the existence of:

    C:\Python27\Lib\site-packages\robotide\spec\AutoItLibrary.xml

If that file path doesn’t exist, then that’s why you’re not seeing all the AutoItLibrary KW names in RIDE.

 

Please look for that file and let me know what you find. I’d also be interested in details about your system configuration and Python version.

 

Thanks,

Martin

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Greg Parsons

unread,
Jun 3, 2014, 9:39:16 AM6/3/14
to robotframe...@googlegroups.com, gregp...@gmail.com
Hi Martin, 

Thanks for the reply.

>Two possibilities here:

      You’re doing something wrong.
always a possibility, and especially here as this is all new to me.
 

 >AutoItLibrary is “not dead yet”, but languishes because I have no work-related reason to use it. My very small Test 

that is  good news over all.

>    *AutoItLibrary* class provides a proxy for the AutoIt keywords callable on the AutoIt COM object and

  >  provides additional high-level keywords implemented as methods in this class.”

I just saw that before I saw your reply there... that could be  part of it.
 

>I suspect that somehow in RIDE you’re seeing only the native KWs implemented in the __init__.py module

that seems to be the case, the ones that work are the ones that are in that file

>check your system for the existence of:

>    C:\Python27\Lib\site-packages\robotide\spec\AutoItLibrary.xml

>If that file path doesn’t exist, then that’s why you’re not seeing all the AutoItLibrary KW names in RIDE. 

>Please look for that file and let me know what you find. I’d also be interested in details about your system configuration and Python version.

so when I check     C:\Python27\Lib\site-packages\robotide\spec 

    I do not see  AutoItLibrary.xml

 

the python is (I tried with with the standard python release and had the same results so I switch over to Active after reading it was the preferred solution)


ActivePython 2.7.6.9 (ActiveState Software Inc.) based on
Python 2.7.6 (default, Feb 27 2014, 14:15:49) [MSC v.1500 32 bit (Intel)] on win32

When I reinstall the autoitlibrary I get



PS C:\users\ieuser\Downloads\AutoItLibrary-1.1\AutoItLibrary-1.1>    python setup.py install
Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
python C:\Python27\Lib\site-packages\win32com\client\makepy.py C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.
dll
Generating to C:\Python27\lib\site-packages\win32com\gen_py\F8937E53-D444-4E71-9275-35B64210CC3Bx0x1x0.py
Building definitions from type library...
Generating...
Importing module
running install
running build
running build_py
running install_lib
running install_data
running install_egg_info
Removing C:\Python27\Lib\site-packages\AutoItLibrary-1.1-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\AutoItLibrary-1.1-py2.7.egg-info



The following files are in  C:\Python27\Lib\site-packages\robotide\spec\

    Directory: C:\Python27\Lib\site-packages\robotide\spec


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---         12/9/2013   9:11 AM       8040 iteminfo.py
-a---         5/21/2014   9:41 AM      13070 iteminfo.pyc
-a---         5/21/2014   9:41 AM      13070 iteminfo.pyo
-a---          6/2/2014   9:01 PM      23489 libdoc.py
-a---         12/9/2013   9:11 AM       5262 librarydatabase.py
-a---         5/21/2014   9:41 AM       6482 librarydatabase.pyc
-a---         5/21/2014   9:41 AM       6482 librarydatabase.pyo
-a---         12/9/2013   9:11 AM       1527 libraryfetcher.py
-a---         5/21/2014   9:41 AM       1285 libraryfetcher.pyc
-a---         5/21/2014   9:41 AM       1285 libraryfetcher.pyo
-a---         12/9/2013   9:11 AM       5613 librarymanager.py
-a---         5/21/2014   9:41 AM       6499 librarymanager.pyc
-a---         5/21/2014   9:41 AM       6499 librarymanager.pyo
-a---         12/9/2013   9:11 AM       2489 specimporter.py
-a---         5/21/2014   9:41 AM       2973 specimporter.pyc
-a---         5/21/2014   9:41 AM       2973 specimporter.pyo
-a---         12/9/2013   9:11 AM       4364 xmlreaders.py
-a---         5/21/2014   9:41 AM       5426 xmlreaders.pyc
-a---         5/21/2014   9:41 AM       5426 xmlreaders.pyo
-a---         12/9/2013   9:11 AM        607 __init__.py
-a---         5/21/2014   9:41 AM        142 __init__.pyc
-a---         5/21/2014   9:41 AM        142 __init__.pyo


and the contents of     C:\Python27\Lib\site-packages\AutoItLibrary-1.1-py2.7.egg-info
are

Metadata-Version: 1.1
Name: AutoItLibrary
Version: 1.1
Summary: AutoItLibrary for Robot Framework
Author: Martin Taylor
Author-email: cmta...@ti.com
License: Apache License 2.0
Description: AutoItLibrary is a Robot Framework keyword library wrapper for for the
        freeware AutoIt tool (http://www.autoitscript.com/autoit3/index.shtml)
        using AutoIt's AutoItX.dll COM object. The AutoItLibrary class
        provides a proxy for the AutoIt keywords callable on the AutoIt COM
        object and provides additional high-level keywords implemented as
        methods in this class.
Platform: Microsoft Windows
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Testing



All that said and done I cannot find an AuotiLibrary.xml anywhere on the disk.
Ideas?

Thanks again

Taylor, Martin

unread,
Jun 3, 2014, 10:27:21 AM6/3/14
to gregp...@gmail.com, robotframe...@googlegroups.com

I’m not sure what’s going wrong here but could you check and try the following.

Look inside the .zip file for doc/AutoItLibrary.xml. If it is NOT in the zip file then the public AutoItLibrary must be very old and I need to do an update ASAP.

If AutoItLibrary.xml is present, then try copying it manually to C:\Python27\Lib\site-packages\robotide\spec, then run RIDE and see what KWs you see for AutoItLibrary.  This is a workaround for an install issue that I’m not sure what’s causing it. If you have to do this, and it works, could you please post the setup.py file from AutoItLibrary here so I can suggest a better fix.

 

Thanks,

Martin

--

Kimlam Kim

unread,
Jun 4, 2014, 12:35:31 AM6/4/14
to cmta...@ti.com, gregp...@gmail.com, robotframe...@googlegroups.com
Hi Greg,

I had already the same result long time ago, then can you try to install AutoItLibrary with ADMINISTRATOR, you can see the full KWs.

Thanks,
Kim

Greg Parsons

unread,
Jun 4, 2014, 8:56:46 AM6/4/14
to robotframe...@googlegroups.com, cmta...@ti.com, gregp...@gmail.com
Thanks for the suggestion.
I tried running the cmd/dos boas as admin.
I tried running the powershell as admin
I tried downloading windows sudo app - sudown and running that in each of the above
Still no go. No AuotiLibrary.xml  appears anywhere

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotfram...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Greg Parsons

unread,
Jun 4, 2014, 9:22:54 AM6/4/14
to robotframe...@googlegroups.com, gregp...@gmail.com

Hi Martin.

Thanks again for your further help with this.
Attached is the setup.py

Also, I find no  AutoitLibrary in the zip - I got it from 
directly at 

File contents
C:.
│   COPYRIGHT.txt
│   filelist.txt
│   LICENSE.txt
│   PKG-INFO
│   README.txt
│   setup - Shortcut.lnk
│   setup.py
├───3rdPartyTools
│   └───AutoIt
│           Au3Info.exe
│           AutoItX.chm
│           AutoItX3.dll
│           AutoIt_License.html
├───build
│   └───lib
│       └───AutoItLibrary
│               Counter.py
│               Logger.py
│               __init__.py
├───doc
│       AutoItLibrary.html
├───src
│   └───AutoItLibrary
│           Counter.py
│           Logger.py
│           __init__.py
└───tests
    │   CalculatorGUIMap.py
    │   CalculatorGUIMap.pyc
    │   Calculator_Test_Cases.html
    │   RobotIDE.bat
    │   RunTests.bat
    │   __init__.html
    │
    └───results
            FAIL_WinWait_1.png
            log.html
            output.xml
            report.html



-gregp

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotfram...@googlegroups.com.

setup.py

Taylor, Martin

unread,
Jun 4, 2014, 10:34:23 AM6/4/14
to gregp...@gmail.com, robotframe...@googlegroups.com

OK, I guess I really need to get a new release of AutoItLibrary done. I’ll see what I can do, but no promises on timing…

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.


To post to this group, send email to robotfram...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--

You received this message because you are subscribed to the Google Groups "robotframework-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

Greg Parsons

unread,
Jun 4, 2014, 11:42:22 AM6/4/14
to robotframe...@googlegroups.com, gregp...@gmail.com
I appreciate anything you can offer.
Would you consider emailing or posting just your current xml short term for me to try?

Thanks.

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.


To post to this group, send email to robotfram...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Taylor, Martin

unread,
Jun 4, 2014, 12:51:05 PM6/4/14
to gregp...@gmail.com, robotframe...@googlegroups.com

Sure, try this (if it attaches OK). It may not TOTALLY match the code you have. I’m at version 1.2.4. I could probably just send out a new installer ZIP this way, too. The problem with a proper “re-release” is that I don’t remember how I did it all on googlecode before, and I know installer files can’t be put there anymore. And I’m extremely lame with GitHub. So I’ve got a big learning curve to go through to do a proper open source release again of AutoItLibrary.

 

Cheers,

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.


To post to this group, send email to robotfram...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.


To post to this group, send email to robotfram...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

AutoItLibrary.xml

Greg Parsons

unread,
Jun 4, 2014, 1:34:21 PM6/4/14
to robotframe...@googlegroups.com, gregp...@gmail.com

Thanks, I hear you on the changes at google and "one more thing to learn"ing curve vs time for all ;--)
I will give this a shot and let you know how it goes.

-gregp
...

Greg Parsons

unread,
Jun 5, 2014, 8:59:18 AM6/5/14
to robotframe...@googlegroups.com, gregp...@gmail.com
I dropped the AutoitLibrary.xml in the  C:\Python27\Lib\site-packages\robotide\spec\
(ho that is not in the windows PATH now that I think of it)

Is it possible the version of Autoit I have loaded (sine I loaded the standalone version) is too new?
Maybe it is a conflict? Not backward compatible to the version that was available then?
When I call the __init__ calls

${autoitComVersion} Get Auto It Version
Log To Console ${autoitComVersion}
${autoVersion} Get Version
Log To Console ${autoVersion}

I get
AutoItX 3.3.6.1 (COM object)
File: C:\Python27\lib\site-packages\AutoItLibrary\__init__.pyc, Version: 1.1


oddly some work...
${xPos} AutoItLibrary.Control Get Pos X ${wHandle} {EMPTY} WindowsForms10.EDIT.app.0.378734a1
${yPos} AutoItLibrary.Control Get Pos Y ${wHandle} {EMPTY} WindowsForms10.EDIT.app.0.378734a1
${xPos2} AutoItLibrary.Mouse Get Pos X
${yPos2} AutoItLibrary.Mouse Get Pos Y

work providing
"xPos " 1
"yPos " 1
"xPos2 "  753
"yPos2 "  507

but others do not no matter how I call them
AutoItLibrary.Control Set Text
or
Control Set Text

They fail to work, and yet Robot reports no error

Taylor, Martin

unread,
Jun 5, 2014, 9:55:21 AM6/5/14
to gregp...@gmail.com, robotframe...@googlegroups.com

Yes, the way AutoItLibrary works is by using some “Python magic” to scan and expose the APIs in a .dll. You MUST have the same version of AutoItX.dll as AutoItLibrary expects, and the AutoItLibrary setup.py installer should set this up for you correctly. When I mentioned version I meant the AutoItLibrary version, corresponding to the RIDE .xml file that I sent. The .xml file shouldn’t matter, except that it may tell you that some KWs exist in AutoItLibrary that do not exist in your earlier version.

--

Greg Parsons

unread,
Jun 6, 2014, 3:19:13 PM6/6/14
to robotframe...@googlegroups.com, gregp...@gmail.com

Do you have a sense of what earlier version might work?

I will try to hunt and peck to find one as none are matching the date of the AutoitLibrary last release date from 2010
All the auto it's are marked as 2012 at the latest

Yet the AutoitX3.dll also has a signed date or 4/16/2013  in the properties... so maybe this is not the issue.
C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoitX3.dll
v.3.3.6.1

Just Curious

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotfram...@googlegroups.com.

Ivan Nogi

unread,
Nov 26, 2018, 10:51:21 AM11/26/18
to robotframework-users
Hi, I'm currently encountering the same issues (not all KWs available) for autoitlibrary.
I was hoping someone can assist me on this.
I'll be sending the details as soon as I get a reply.
Thank you.

Ivan
Reply all
Reply to author
Forward
0 new messages