Jump to content

Help With Postion clicks.


King
 Share

Recommended Posts

I am pretty scrub at Scriping, I can take a script that somone else has written and change it around, but that it all. I harly use it, but when i do it is so helpful.

What i want to do is make a script that will basically do this.

Goto postion 437,218 and left click wait 4 seconds.

Goto postion 488,445 and left click wait 2 seconds.

Goto postion 351,423 and left click wait 2 seconds.

Press Left arrow 12 times and wait 2 seconds.

Goto 331,29 and left click. wait 2 seconds.

Goto 1015,537 and left click wait 2 seconds.

And then repeat it over and over. I would liek to use this format so i can press Alt+Ctrl+Z to start it.

Thanks in advance,

Chris

HotKeySet("^!z","Movment");^!z is Ctrl+Alt+'z' to run the Movment 
HotKeySet("^!x","End");^!x is Ctrl+Alt+'x' to close the Movment 
While 1 
    Sleep(100) 
WEnd 
Func Movment() 
    While 1 
        Sleep(120000) 
        Send("{A}") 
        Sleep(140000) 
        Send("{D}") 

    WEnd 
EndFunc 
Func End() 
    Exit 
EndFunc
Link to comment
Share on other sites

. . . I can take a script that somone else has written and change it around,

Suggestions would be to change around the example scripts in the Help file. Look up MouseMove(), MouseClick(), Send(), and For... Next. That should give you give you more than enough to do what you want.
Link to comment
Share on other sites

Suggestions would be to change around the example scripts in the Help file. Look up MouseMove(), MouseClick(), Send(), and For... Next. That should give you give you more than enough to do what you want.

I will try that thanks.
Link to comment
Share on other sites

Ok, I know this is a horrid code. But it is working half way. It does all the clicks and goes exactly where it needs to be. the only thing is, It doesn't send the left arrows. What am I missing?

HotKeySet("^!z","Movment");^!z is Ctrl+Alt+'z' to run the Movment 
HotKeySet("^!x","End");^!x is Ctrl+Alt+'x' to close the Movment 
While 1 
    Sleep(100) 
WEnd 
Func Movment() 
    While 1
    MouseMove (437,383) 
        Sleep(250)
    MouseClick ("Left")
    sleep(3000)
    MouseMove (444,417) 
        Sleep(250)
    MouseClick ("Left")
    sleep(1000)
    MouseMove (488,614) 
        Sleep(250)
    MouseClick ("Left")
    sleep(3000)
    MouseMove (308,614) 
        Sleep(1000)   
    MouseClick ("Left")
    sleep(1000)
        Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600)
    Send("{Left Arrow}") 
        Sleep(600) 
        MouseMove (840,218) 
        Sleep(1000)
    MouseClick ("Left")
    sleep(250) 
    MouseMove (504,510) 
        Sleep(1000)
    MouseClick ("Left")
    sleep(250)  

    WEnd 
EndFunc 
Func End() 
    Exit 
EndFunc
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...