Posts: 51
Threads: 6
Joined: Jan 2005
mac "Function_1"
mac "Function_2"
3
rep 99999
,
,WaitPixelColor(0 0xD6565E 68 43)
,
,key+ R; 0.1; key- R; key F8
,
,sel pixel(87 99)
,,case [0xFFBE00,0xAAFFFF,0x40FF40,0x40FFFF] continue
,
,key v ;; con
,
,sel pixel(53 619) ;;Look at this location
,,case [0xFFBE00,0xAAFFFF,0x40FF40,0x40FFFF]
,key e
,key Y ;;press enter
,key (VK_DIVIDE)
,key {petVattack}
,key Y
,key 2
,,if(pixel(731 592)=0xFFFF64)
,,,key+ U; 0.1; key- U
,,,0.5
,key 2
,sel pixel(675 592)
,,case [0xFFFF64] continue
,
,WaitPixelColor(0 0xFFFF 417 148)
,
Thats the code for my macro, however im having problems with it skipping parts. Right now how i have it, everything seems to be working great, expect it seems to skip this part:
,sel pixel(87 99)
,,case [0xFFBE00,0xAAFFFF,0x40FF40,0x40FFFF] continue
Could anyone help me out with the problem? And help me clean up with my code.
(all the locations and pixel colors there are correct)
Thanks
Posts: 51
Threads: 6
Joined: Jan 2005
anyone? I try adding and subtracting the "," but takes alot of time to test it to see if it works, and most of the time, it fixes one thing, and ruins another. Any help would be appreciated. Thanks
Posts: 12,073
Threads: 140
Joined: Dec 2002
Start learning rep, sel etc by reading help and experimenting with simple macros.
Posts: 51
Threads: 6
Joined: Jan 2005
Gintaras Wrote:Start learning rep, sel etc by reading help and experimenting with simple macros.
I try, but like i said, i change one thing...test it...testing takes about 20min minimum(alot longer usally)..to see if everything works right, as not everything happends in one cycle. So i try something else...and i have to keep trying until i figure it out. Once i do,a nd i add somethng else...the whole proccess starts again, which is extremely time consuming.
Posts: 12,073
Threads: 140
Joined: Dec 2002
I see two weak places in the macro.
1.
,sel pixel(53 619) ;;Look at this location
,,case [0xFFBE00,0xAAFFFF,0x40FF40,0x40FFFF]
There is no code to execute when the color is one of these colors. Place the code either in the same line, or in the subsequent lines with the same number of commas as the case line.
2.
,key {petVattack}
{ and } are special symbols. Use [ and ] instead. Or enclose in quotes: key "pet attack"
Posts: 51
Threads: 6
Joined: Jan 2005
Ah alright thanks, i understand now what you mean.
|