[requesting] quick clean up of my script

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
nguitau
Newbie
Posts: 2
Joined: Sat Dec 29, 2007 10:52 pm

[requesting] quick clean up of my script

Post by nguitau » Mon Dec 31, 2007 8:10 am

here is the script, if you can make it shorter,cleaner, and any unnecessary part pleases, thank you.

Code: Select all

setfocus>something
label>repeata
MouseMove>281,300
 Lclick
 wait>1.8
MouseMove>448,351
 Lclick
 wait>1.5
MouseMove>376,253
  Lclick
  wait>1.5
MouseMove>604,344
  Lclick
  wait>1.75
  Send>3
  wait>1.75
  Press Enter
MouseMove>376,253
  Lclick
  wait>1.75
MouseMove> 604,344
  Lclick
  wait>1.75
  Send>5
  wait>1
  Press Enter
MouseMove>376,253
  Lclick
  wait>1.75
MouseMove> 604,344
  Lclick
  wait>1.75
  Send>5
  wait>1
  Press Enter
  MouseMove>376,253
  Lclick
  wait>1.75
MouseMove> 604,344
  Lclick
  wait>1.75
  Send>5
  wait>1
  Press Enter
  MouseMove>376,253
  Lclick
  wait>1.75
MouseMove> 604,344
  Lclick
  wait>1.75
  Send>5
  wait>1
  Press Enter
  MouseMove>376,253
  Lclick
  wait>1.75
MouseMove> 604,344
  Lclick
  wait>1.75
  Send>5
  wait>1
  Press Enter
  wait>1.2
  Press Esc
MouseMove>235,301
wait>2
WaitScreenImage>C:\weapon int.bmp
send>y
wait>1
label>redw
Let>x=1
  ScreenCapture>0,0,1018,767,C:\wholegame.bmp
  FindImagePos>C:\red weapon.bmp,C:\wholegame.bmp,20,1,XPos,YPos,redweapon
  FindImagePos>C:\empty.bmp,C:\wholegame.bmp,20,1,XPos,YPos,rep
  FindImagePos>C:\empty slot.bmp,C:\wholegame.bmp,20,1,,,break
  FindImagePos>C:\stuck.bmp,C:\wholegame.bmp,20,1,,,stuck
   if>stuck>0
     send>y
	 wait>.8
	 send>y
	 goto>stuck1
   endif
     label>stuck1
   if>break>0
     wait>1
	 mousemove>634,492
     lclick
     wait>1.3
     mousemove>184,435
     lclick
     wait>2
     mousemove>194,156
     wait>1
	 goto>red
   endif
	if>rep>0
    wait>1.5
    send>y
    goto>repeata
   endif
  label>red
  If>redweapon>0
  MouseMove>XPos_0,YPos_0
  wait>0.4
  lclick
  wait>0.4
  MouseMove>297,421
  lclick
  wait>0.4
  MouseMove>196,545
  lclick
  wait>1
  Endif
  Let>28=x+1
  wait>1
Goto>redw


idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Fri Feb 08, 2008 12:21 am

might help if we knew what you are trying to do with this script
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

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