GithubHelp home page GithubHelp logo

Comments (7)

Aareon avatar Aareon commented on August 16, 2024

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.

balup34 avatar balup34 commented on August 16, 2024

@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.

balup34 avatar balup34 commented on August 16, 2024

@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.

balup34 avatar balup34 commented on August 16, 2024

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.

balup34 avatar balup34 commented on August 16, 2024

Got the answer for above question too... :)

autoit.mouse_click("left",890, 574, 2)

from pyautoit.

Aareon avatar Aareon commented on August 16, 2024

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.

jacexh avatar jacexh commented on August 16, 2024

use time.sleep(2) instead of autoit.sleep()
I did not add sleep interface in pyautoit

from pyautoit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.