Jump to content

Total newb at this (need help)


Recommended Posts

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?

Link to comment
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.

Link to comment
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.

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