Jump to content
Sign in to follow this  
p00pies

Why dosent this work

Recommended Posts

p00pies

this is what I'm attempting and I dont know why it will not work.

Func moving()
  MouseMove(123, 456, 10)
  Sleep(2000)
  MouseClick("Left")
Endfunc

The script will run but the mouse will not move or click on anything.

Any assistance or guideance will be helpfu

Thank You

Share this post


Link to post
Share on other sites
BrettF

You forgot one vital thing. AutoIt will not just execute whats in moving() unless you tell it to.

moving ()

Func moving()
    MouseMove(123, 456, 10)
    Sleep(2000)
    MouseClick("Left")
EndFunc   ;==>moving

Cheers,

Brett

Share this post


Link to post
Share on other sites
p00pies

Ive just tried what you said and it still does not work.

Below is all that I have in the script and all Im trying to do is get it to click on my start button.

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.2.0
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

Moving()
Func Moving()
    MouseMove(50, 785, 10)
    Sleep(2000)
    MouseClick("Left")
    Sleep(70000)
EndFunc   ;==>Moving

Share this post


Link to post
Share on other sites
p00pies

My bad it finally worked and thats because I noiced that I had 4 other instances of the sae script running.

Thank you Brett

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×