Comments (7)
Is your script only partially working or entirely broken? I notice an issue with your sleep command. Timing is gauged in milliseconds. Also, to use sleep, you must call it from within 'autoit'.
Example: 'autoit.sleep(param)'
Instead of "2", sleep should be "2000". Hope this helps. Keep me posted.
from pyautoit.
@Aareon Thanks for your answer.
Now I have tried with below code:
autoit.mouse_click("$MOUSE_CLICK_LEFT, 890, 574, 2")
autoit.sleep(2000)
But same issue. I mean its not clicking the LEFT button.
Could you please help me with the format that I am using here. is it correct "autoit.mouse_click("$MOUSE_CLICK_LEFT, 890, 574, 2") ".
Thanks in advance.
from pyautoit.
@Aareon . I found the working code.
Its works with :
autoit.mouse_click("",890, 574, 2)
sleep(3)
NOTE : If I use autoit.sleep(2000), I am getting following error:
AttributeError: 'module' object has no attribute 'sleep'
from pyautoit.
I have referred following link "http://software-test-knowledge.blogspot.in/2014/01/automate-mouse-click-using-autoit.html". By default its choosing left button. That is why my code autoit.mouse_click("",890, 574, 2) is working.
What if somebody want to press RIGHT mouse button here?
Please guide me how to send mouse key info in this code.
Thanks.
from pyautoit.
Got the answer for above question too... :)
autoit.mouse_click("left",890, 574, 2)
from pyautoit.
Glad you found what you were looking for. Is there an explanation for why
2000ms didn't work, but 2 or 3 does?
On Nov 9, 2015 5:53 AM, "balup34" [email protected] wrote:
Got the answer for above question too... :)
autoit.mouse_click("left",890, 574, 2)
—
Reply to this email directly or view it on GitHub
#10 (comment).
from pyautoit.
use time.sleep(2)
instead of autoit.sleep()
I did not add sleep
interface in pyautoit
from pyautoit.
Related Issues (20)
- control_tree_view command "GetText" return Error when using pyautoit module, return None when using win32com module
- Installation problem HOT 2
- AutoIT control_click not working HOT 1
- Does not detect the windows HOT 1
- PyAutoIt wants to import fcntl module but it doesn't exist on Windows?!?
- PyAutoit on windows installs directly on AppData\Local\... directory instead of the env\Lib\site-packages directory.
- win_get_tittle 获取中文会出现乱码 HOT 2
- autoit.autoit.AutoItError: Window/Control could not be found HOT 2
- control_click and control_send in Bluestacks HOT 7
- It´s only writing the filename.ext on file manager, not the full path. HOT 1
- How to call the macro of autoti use pyautoit?(如何用pyautoit调用autoit的宏?)
- AutoIt Options HOT 3
- v0.6.4 missing lib HOT 1
- pyautoit does not work with pyoxidizer due to reliance on __file__
- control click not working on LDPlayer? HOT 1
- What does h_ctrl mean?
- mouse wont move
- How to send function keys for F1 - F12 to current window
- tooltip not working python 2.7 ?
- Clicking occasionally fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyautoit.