Results 1 to 2 of 2

Thread: help if then else

  1. #1
    Join Date
    Jun 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help if then else

    how do u make something to click a color but if there is no color to do something else please help?

    if(findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2 = true) then
    begin

    this is what i want it to do when i clicked the color

    if(findcolortolerance(x , y, Bluecolor, 534, 570, 573, 587, 2 = false) then
    begin

    this is what i want it to do if it dusnt click the color

  2. #2
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    SCAR Code:
    procedure Something;
    begin
      if(FindColorTolerance(x,y,BlueColor, 534, 570, 573, 587, 2))then
      begin
        Whatever;
      end else
      begin
        YourFailsafe;
      end;
    end;

    Something like that? hope this helps
    METAL HEAD FOR LIFE!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •