A question for the old folks

Discussion in 'Programming General' started by rsans, Mar 27, 2016.

A question for the old folks
  1. Unread #1 - Mar 27, 2016 at 9:22 PM
  2. rsans
    Joined:
    Mar 25, 2016
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    rsans Newcomer

    A question for the old folks

    I never thought I'd see myself coming back here after so long, but here I am. I'll try to keep this short.

    I'm writing a little program (with good old vb6) that automatically takes a picture of an area of bitmaps when they appear on a selected window. It is very, very much like the old Runescape bots back from 2005-2006.

    But here's the thing I'm having trouble with. I WAS going to just end up using CruelLibs or something similar to help with what I'm doing, but time has passed. Surprise! Cruels website is down, and unfortunately Web Archive didn't save the CruelLib documentation.

    My questions:
    How would I go around having my program detect bitmaps?
    How would I do that in a specified window?

    I couldn't think of a better place to ask these questions. Can I ask for a nudge in the right direction here? I know you guys can help.
     
  3. Unread #2 - Mar 28, 2016 at 12:02 AM
  4. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    A question for the old folks

    "I never thought I'd see myself coming back here after so long, but here I am."

    What's your other account so I can ban you?

    Regarding your question:
    If I understand you correctly, you want to take a picture of a window when a certain bitmap shows up?

    Tips for your question though:
    1. Use .NET, VB6 is an 18 year old language and is thus a total dead end to be wasting any time with. C++ will get you good performance.
    2. Win32 libraries are probably what you'll have to look at. Things like Bitblt, getpixel, findwindow, findwindowex. You can either grab the window's hwnd (window handle) and perform operations based on that, or make a rectangle object that performs a getpixel on-screen to try and assemble the bitmap you're searching for.
     
    ^ Minted likes this.
< Icons8 - Free software for icons for program development | >

Users viewing this thread
1 guest


 
 
Adblock breaks this site