Sign in to follow this  
Followers 0
Darkalpha

Total newb at this (need help)

7 posts in this topic

Alright Im looking to do something simple, click and drag a item from one window to another from over and over again.

Ive toyed with Autoit before but that was through editing a pre-existing autoit script. So now that I have to start from scratch I have no clue how to work this wonderfully complex program.

I know how to figure out coordinates to designate point A to point B just lack the programing knowledge to get this done.

Can I get some help or at the very least a n00b friendly guide?

Share this post


Link to post
Share on other sites



Have a look at this function, MouseClickDrag, I believe it will be the 'backbone' in your script.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Have a look at this function, MouseClickDrag, I believe it will be the 'backbone' in your script.

Alright this is what I got so far.

While 1;infinite loop

; Left click drag from 881, 709 to 1136, 707

MouseClickDrag("left", 881, 709, 1136, 707)

sleep(1200)

wend

How do I make it loop infinitely every few seconds? Im not sure how fast 1200 is but it seems fast enough.

Share this post


Link to post
Share on other sites

1000 = 1 sec, so 1200 would be just under a second and a half


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

1000 = 1 sec, so 1200 would be just under a second and a half

alright but how should I set it to auto loop?

Share this post


Link to post
Share on other sites

Opt("MouseCoordMode", 1)

HotKeySet("^!u", "DoIt")  ; HotKey is Ctrl + Alt + U
HotKeySet("^{F2}", "Wait"); HotKey is Ctrl + F2

Func Wait()
    while 1
        Sleep(100)
    WEnd
    EndFunc

    While 1
        Sleep(100)
    WEnd

Func DoIt()
While 1
; Left click drag from 881, 709 to 1136, 707
MouseClickDrag("left", 881, 709, 1136, 707)
sleep(1200)
WEnd
EndFunc

Hope this helps.

Share this post


Link to post
Share on other sites

alright but how should I set it to auto loop?

Awesome gonna test this immediatly, Many thanks to both of you =D

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  
Followers 0