Gas Detection in VB6?

Discussion in 'Programming General' started by AccCrack, Jan 3, 2008.

Gas Detection in VB6?
  1. Unread #1 - Jan 3, 2008 at 8:13 AM
  2. AccCrack
    Referrals:
    0

    AccCrack Guest

    Gas Detection in VB6?

    Hello

    Is there any gas detections what are made with VB6?
    My old one is laggy and i got idea for new:

    1. Autominer moves mouse over rock's color
    2. if there is "Mine" in uptext (or cyan color...) it continues
    3. If Not FoundGas Then LClick

    FoundGas function:

    A. GetDC
    B. Get color (GetPixel) of every pixel in 20 pixels around the mouse and save color of each pixel to two-dimensional array (2D Matrix) for comparing.
    C. GetDC
    D. Do "B." again but different way, it calculates how many pixels' color is changed from those what was saved in "B." and calculates the amount to percents.
    E. If percents are over 30% then FoundGas = True

    Do you like it? That gas detection could check gas in under 100ms.

    Sorry my bad english. I hope you understood. :p

    Btw with that pixel saving thing you could check is the character walking already.. to not click rock if it havent even walk to latest one.
     
  3. Unread #2 - Jan 3, 2008 at 9:57 AM
  4. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    Gas Detection in VB6?

    I think you can do a FindColorTolerance for some of the colors that appear in the gas, I believe they are quite unique.
     
  5. Unread #3 - Jan 3, 2008 at 12:22 PM
  6. AccCrack
    Referrals:
    0

    AccCrack Guest

    Gas Detection in VB6?

    I think it will not work, why doesn't scar's work like then then?
    possibly some armor stuff are with almost same color and copper.
     
  7. Unread #4 - Jan 3, 2008 at 6:44 PM
  8. JackPot
    Referrals:
    0

    JackPot Guest

    Gas Detection in VB6?

    No, you cannot detect farts irl. XD
     
  9. Unread #5 - Jan 4, 2008 at 1:25 AM
  10. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Gas Detection in VB6?

    Hello Nunk, goodbye nunk.
     
  11. Unread #6 - Jan 4, 2008 at 4:15 AM
  12. r0b0t1
    Joined:
    Jan 23, 2007
    Posts:
    124
    Referrals:
    0
    Sythe Gold:
    0

    r0b0t1 Active Member

    Gas Detection in VB6?

    You should look at the SRL library's FindGas functions. Delphi and VB are very similar, but here is how you might want to do it in VB.

    1). Somehow get a box above the rock where the gas should be. You could do this by finding the topmost ore colour of the rock and using that as the x position. Use your common sense to figure out how big the box will be.

    2). Use GetDIBits to move the colours to an array. Search the array for the gas colors, probably about five of them. Re-sample and search the array of colours when done searching or every 250-500 ms about 10 times.

    3). If you find about five of the colours, you may stop, or you can continue checking somehow...


    EDIT: Forgot the guy was banned, someone might like this idea anyhow.
     
< GOOD destructive code. | Scheme >

Users viewing this thread
1 guest


 
 
Adblock breaks this site