Conditional Macros??

Discussion in 'OT Technology' started by SixFour, Apr 27, 2006.

  1. SixFour

    SixFour Get on your knees and smile like a doughnut! OT Supporter

    Joined:
    Sep 2, 2004
    Messages:
    2,157
    Likes Received:
    0
    Location:
    /home/sixfour
    I'm not sure if this would be the proper solution for my problem but maybe you guys can help. I want a macro or something similar that will take an action based on a certain condition. Let's say I'm surfing the web and a blue picture loads in my web browser, I would want my mouse to automatically close the browser. Is it possible to do this based on colors being printed to the screen? Most of the macro programs I have seen only allow you to record specific actions and then play them back verbatim. Anyone have any ideas? :x:
     
  2. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    WHy do I feel you're attacking this problem from the wrong way? What's the real problem?
     
  3. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    is someone sending you gay porn?

    Or do you have a gay porn addiction, and need a program to prevent you from looking at it?
     
  4. ChatChai

    ChatChai OT Supporter

    Joined:
    May 6, 2005
    Messages:
    376
    Likes Received:
    0
    Location:
    Corona, CA
    i agree...even if you could block out the color blue for example, why would you want to do that and not ever have windows containing blue ever again? If we broke down more why would you create a macro that specifies only when 100% of blue is shown or 90% of blue is shown. The question should be why are you getting them at all. Is it a pop-up use a pop up blocker. Is is it spyware use the various spyware removal tools. Did you browser get hijacked used hijackthis. There should be other ways of dealing with this. Then again I'm not 100% sure what you are trying to accomplish here so you may want to explain.
     
  5. SixFour

    SixFour Get on your knees and smile like a doughnut! OT Supporter

    Joined:
    Sep 2, 2004
    Messages:
    2,157
    Likes Received:
    0
    Location:
    /home/sixfour
    Forget closing windows containing the color blue. I was using that as an example. What I'm trying to do is create a conditional macro to do certain things based on what's happening in a game. Another example would be lets say my health in a game were to get below a certain point, I want to cast a heal spell. Making more sense now? Is this possible and if so would it be a feasible solution to my problem.
     
  6. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    possible? Yes. Easy? No.

    You would need to take a screencap of the area in question, and do a bitmap comparison to a known value... Anything within a certain % of match and you perform an action... Definitely outside the scope of any automated macro program I know of.

    The other option would be to find out how the game information is stored in RAM. If you could know that, you could probably access that information programatically, which would be much more efficient, and probably easier.
     
  7. SixFour

    SixFour Get on your knees and smile like a doughnut! OT Supporter

    Joined:
    Sep 2, 2004
    Messages:
    2,157
    Likes Received:
    0
    Location:
    /home/sixfour
    I pretty much assumed I would have to pull the information from RAM, but was trying to come up with another solution. thanks :bigthumb:
     
  8. Yep

    Yep Knick knack paddy whack, give the old dog a bone

    Joined:
    Jan 22, 2001
    Messages:
    4,603
    Likes Received:
    0
    Location:
    South Jersey
    I've done something like this in VB6 to automate one of those games on playpogo.com. It was incredibly watching how fast it was able to play the game.

    You would have to write your own program for this as I've never seen anything around.
     
  9. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Stop PLing!
     

Share This Page