Results 1 to 4 of 4

Thread: Detecting change/motion?

  1. #1
    Join Date
    Dec 2011
    Location
    College Station, Texas
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Detecting change/motion?

    How would I detect change/motion in a given window such as the chat window or inventory. For example if a random food item in a certain inventory slot was eaten, how would I detect the motion/change in the inventory slot to then produce a result. I want to use it in a simple script that can be used for a variety of reasons and that uses different windows. I'm fairly new so I'm still learning, but would I have to work with bitmaps? Or is there a simple command for this?

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Compare inventory count before/after for inventory cahnges.

  3. #3
    Join Date
    Dec 2011
    Location
    College Station, Texas
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    What if I just wanted to check if there was any change at all in the chat window, like if someone said anything in the public chat.

  4. #4
    Join Date
    Sep 2007
    Location
    Australia, NSW
    Posts
    934
    Mentioned
    6 Post(s)
    Quoted
    145 Post(s)

    Default

    Quote Originally Posted by goreguy11 View Post
    What if I just wanted to check if there was any change at all in the chat window, like if someone said anything in the public chat.
    I've never used it before, but I believe you use:
    Simba Code:
    {*******************************************************************************
    function GetLastChatText(var chat: String): Boolean;
    By: masquerader / Wizzup?
    Description: Returns true if blue chat text was found
    *******************************************************************************}
    You could check what this function returns, and if it's different to the last result, you'll know someone said something new!

    INACTIVE
    How-to: Make S.M.A.R.T. less laggy

    Sell me your Maple Shieldbows (u)! Up to 95gp ea!

    My Scripts:
    Ivy Chopper Ultra [RS3] | Fantastic Fletcher [RS3]
    99 x78 | 99 x10 | 99 x2 | 99 x12


    Use the REPORT tags when posting progress reports to make life easier (:
    [REPORT]Put progress report in here![/REPORT]

    Super Savvy Smither V1.06Cool Classy Cooker V1.02 [EoC]

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
  •