Adblock breaks this site

FindBitmapIn in vb?

Discussion in 'Archives' started by -------owned-------, Jul 7, 2007.

  1. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Title says it all.
     
  2. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

  3. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    um.. explain pl0x? :p
    I need a thing to search for 8 different bitmaps in 8 different locations.
     
  4. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

  5. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    FindBitmapIn in vb?

    Hey jazz whats the difference between mask and normal find bitmap? is the mask more effecient and faster? or a different technique altogether?
     
  6. Cruel__Machine

    Cruel__Machine Guest

    Referrals:
    100
    FindBitmapIn in vb?

  7. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    FindBitmapIn in vb?

    ahh i see, so its great for things with alternating backgrounds.
     
  8. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Still, I need an exact copy of Scar divi 3.06's findbitmapin.
     
  9. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    FindBitmapIn in vb?

    thats not even made in Vb, correct me if im wrong.
     
  10. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    FindBitmapIn in vb?

    Scar is mostly written in Delphi (if that's what you're asking). www.freddy1990.com, might help you.
     
  11. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Yeah but is it possible to do in VB? I really need it to locate some stuff in a flash game... >.<
     
  12. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Then use what we posted. It's almost the same, maybe a bit slower (we are talking milliseconds here, not hours)
     
  13. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Mr I couldn't see how it searches in an area? Maybe (probably) I'm just stupid... >.<
     
  14. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Silly question I think, but does anyone have any idea how to get it to work outside of that PictureBox?
     
  15. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    change the selected window (I think it uses picture1.hwnd) so use the normal get window from mouse functions
     
  16. Cruel__Machine

    Cruel__Machine Guest

    Referrals:
    100
    FindBitmapIn in vb?

  17. Chezcorp

    Chezcorp Guest

    Referrals:
    0
    FindBitmapIn in vb?

    Usualy if I want to find colors etc. I use cruel.dll... Its wicked
     
  18. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Does anyone know how to make a Drag and Drop style way of getting a windows hWnd?
     
  19. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    FindBitmapIn in vb?

    what? you mean like
    Code:
    
    Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
    Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
    Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
    Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
    
    
    Private Type POINTAPI
        X As Long
        Y As Long
    End Type
    Private Type RECT
        Left As Long
        Top As Long
        Right As Long
        Bottom As Long
    End Type
    
    Private Sub Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Call DrawRecthWnd
    End Sub
    
    Sub DrawRecthWnd()
    Dim mousexy As POINTAPI, wndrect As RECT
        GetCursorPos mousexy
        SelWND = WindowFromPoint(mousexy.X, mousexy.Y)
        GetWindowRect SelWND, wndrect
        window = GetDC(SelWND)
        Debug.Print window
    End Sub
     
  20. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    FindBitmapIn in vb?

    Yeah except when that is used it doesn't work (maybe because you are not using a long?) But yeah, that is the basic gist I am trying to get at.
     
< gd ranger blizer | rulerjames1 free mming and training >


 
 
Adblock breaks this site