Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Accessible objects?!?!?!
#14
Alright, well i continued with my script. Got the basics done. Seems like everything should work properly, and now im going back and adding more "features" to the script. WHich brings me back to the place i was having a problem before, heres a peice of the code again:

Code:
Copy      Help
rep 99999
    13
    key+ R
    0.1
    key- R
    key (VK_F8)
    int d=pixel(87 99) ;;look for color at this location
    if(d=0xFFBE00) ;;if color is blue, stop script here, and go back to the begining.
    else if(d=0xFFFFFF) ;;if color is White, stop script here, and go back to the begining.
    else if(d=0x40FF40) ;;if color is green, stop script here, and go back to the begining.
    key v
    int c=pixel(53 619) ;;get color of pixel 53 619 (location)
    if(c=0xFFBE00) ;;if color is 0xFFBE00 (blue)
    ,key e
    ,rep 12
    ,,key 1
    ,,key 3
    else if(c=0xFFFFFF) ;;White
    ,key e
    ,rep 12
    ,,key 1
    ,,key 3
    else if(c=0x40FF40) ;;green
    ,key e
    ,rep 12
    ,,key 1
    ,,key 3
alright well what i want it to do is all where the d=pixel is, if it finds any one of those colors at that location, to stop running the rest of the script, and start the script again from the beginging. If it dosnt find one of those colors, to continue on with the script. I also made it d=pixel, because when i had c, an error came up saying: "name already exists."
(right now i beleive im telling the script to look for those, and when found, to continue, thats not what i want happening)

Thanks again for the help


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)