Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 functions, 1 macro?
#6
ken gray Wrote:post them both so we can see them...
yeah sorry was jsut testing them on other macros to see if they work there. Right now seems its only having problems with this macro:
Code:
Copy      Help
mac "Move_up"
3
rep 99999 ;;How many times to do script over
,
,WaitPixelColor(0 0xD6565E 68 43)
,
,key+ R; 0.1; key- R; key F8 ;; Turn right for 0.1 seconds, and press F8
,
,sel pixel(87 99) ;;Look at this location
,,case [0xFFBE00,0xAAFFFF,0x40FF40,0x40FFFF] continue ;; If colors at the location, stop
,
,key v ;; con
,
,sel pixel(53 619) ;;Look at this location
,,case [0xFFBE00,0xAAFFFF,0x40FF40,0x40FFFF] ;;If you see any of these colors, continue
,,key e
,,rep 9
,,,key 1
,,,key 2
,,,key 3
,key e

Then the function is:

Code:
Copy      Help
rep
,if(pixel(731 592)=0xFFFF64)
,,key+ U; 0.1; key- U
,0.5

The only time the function will ever be activated, is when it gets to this part of the macro:

Code:
Copy      Help
,,rep 9
,,,key 1
,,,key 2
,,,key 3

So while its pressing 1,2,3 repeatidly in the macro, the function will get activated, and move up. is it possible for it to press 1 2 3 and move up at the same time?
[Image: banner-grunge2.jpg]


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)