Mouse Move repeat help

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
jj45410
Junior Coder
Posts: 38
Joined: Tue Nov 18, 2008 8:14 pm

Mouse Move repeat help

Post by jj45410 » Tue Jun 23, 2009 11:50 pm

Code: Select all

Let>k=0
REPEAT>k
//Hello again traveller. What can I do for you?
MouseMove>429,492
    WAIT>.50
LCLICK
    WAIT>1
//Can I buy some Climbing boots?
MouseMove>376,429
    WAIT>.50
LCLICK
    WAIT>1
//Can I buy some Climbing boots?
MouseMove>342,495
    WAIT>.50
LCLICK
    WAIT>1
//Sure, I'll sell you some in your size for 12 gold.
MouseMove>437,494
    WAIT>.50
LCLICK
    WAIT>1
//OK, sounds good.
MouseMove>393,444
    WAIT.50
LCLICK
    WAIT>1
//OK, sounds good. (P2 -> The character)
MouseMove>360,492
    WAIT>.50
LCLICK
    WAIT>1
//Tenzing has given you some Climbing boots. 
MouseMove>434,492
    WAIT>.50
LCLICK
    WAIT>1
Let>k=1+1
Until>k=25
It doesn't stop repeating itself. just keeps repeating and repeating and doesn't stop at 25.
[/code]

User avatar
JRL
Automation Wizard
Posts: 3518
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Wed Jun 24, 2009 12:25 am

Your second to last line is:
Let>k=1+1

Should probably be:
Let>k=k+1

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts