jacexh / pyautoit

Python binding for AutoItX3.dll
MIT License
269 stars 74 forks source link

control_click() takes exactly 2 arguments #6

Closed sn6uv closed 9 years ago

sn6uv commented 9 years ago

Control click takes two arguments yet the docstring implies otherwise:

In [2]: autoit.control_click?
Type:        function
String form: <function control_click at 0x031C40B0>
File:        c:\python27\lib\site-packages\autoit\autoit.py
Definition:  autoit.control_click(*args, **kwargs)
Docstring:
:param title:
:param text:
:param control:
:param button:
:param clicks:
:param x:
:param y:
:return:

Came accross trying to right click on something.

sn6uv commented 9 years ago

I got this working using kwargs button='right'. This issue is invalid, but I guess some more documentaion/examples would be helpful since the interface is different to AutoIt. See the AutoIt docs.

jacexh commented 9 years ago

pyautoit is a wrapper of AutoItX.dll, the interfaces are a few different to AutoIt. You can get the AutoItX document in the installation folder of AutoIt.

sn6uv commented 9 years ago

Ah, I wasn't aware that AutoItX was different to AutoIt. Thanks!