FindBitmapIn in vb?

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

FindBitmapIn in vb?
  1. Unread #1 - Jul 7, 2007 at 7:10 AM
  2. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

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

    FindBitmapIn in vb?

    Title says it all.
     
  3. Unread #2 - Jul 7, 2007 at 8:15 AM
  4. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    FindBitmapIn in vb?

  5. Unread #3 - Jul 7, 2007 at 8:59 AM
  6. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

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

    FindBitmapIn in vb?

    um.. explain pl0x? :p
    I need a thing to search for 8 different bitmaps in 8 different locations.
     
  7. Unread #4 - Jul 7, 2007 at 9:13 AM
  8. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    FindBitmapIn in vb?

  9. Unread #5 - Jul 7, 2007 at 9:56 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

    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?
     
  11. Unread #6 - Jul 7, 2007 at 10:06 AM
  12. Cruel__Machine
    Referrals:
    100

    Cruel__Machine Guest

    FindBitmapIn in vb?

  13. Unread #7 - Jul 7, 2007 at 10:11 AM
  14. 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

    FindBitmapIn in vb?

    ahh i see, so its great for things with alternating backgrounds.
     
  15. Unread #8 - Jul 7, 2007 at 10:22 AM
  16. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

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

    FindBitmapIn in vb?

    Still, I need an exact copy of Scar divi 3.06's findbitmapin.
     
  17. Unread #9 - Jul 7, 2007 at 10:48 AM
  18. 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

    FindBitmapIn in vb?

    thats not even made in Vb, correct me if im wrong.
     
  19. Unread #10 - Jul 7, 2007 at 11:01 AM
  20. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    FindBitmapIn in vb?

    Scar is mostly written in Delphi (if that's what you're asking). www.freddy1990.com, might help you.
     
  21. Unread #11 - Jul 7, 2007 at 11:07 AM
  22. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

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

    FindBitmapIn in vb?

    Yeah but is it possible to do in VB? I really need it to locate some stuff in a flash game... >.<
     
  23. Unread #12 - Jul 7, 2007 at 11:22 AM
  24. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    FindBitmapIn in vb?

    Then use what we posted. It's almost the same, maybe a bit slower (we are talking milliseconds here, not hours)
     
  25. Unread #13 - Jul 7, 2007 at 11:24 AM
  26. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

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

    FindBitmapIn in vb?

    Mr I couldn't see how it searches in an area? Maybe (probably) I'm just stupid... >.<
     
  27. Unread #14 - Jul 8, 2007 at 6:09 AM
  28. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    FindBitmapIn in vb?

    Silly question I think, but does anyone have any idea how to get it to work outside of that PictureBox?
     
  29. Unread #15 - Jul 8, 2007 at 6:38 AM
  30. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    FindBitmapIn in vb?

    change the selected window (I think it uses picture1.hwnd) so use the normal get window from mouse functions
     
  31. Unread #16 - Jul 8, 2007 at 3:23 PM
  32. Cruel__Machine
    Referrals:
    100

    Cruel__Machine Guest

    FindBitmapIn in vb?

  33. Unread #17 - Jul 8, 2007 at 5:09 PM
  34. Chezcorp
    Referrals:
    0

    Chezcorp Guest

    FindBitmapIn in vb?

    Usualy if I want to find colors etc. I use cruel.dll... Its wicked
     
  35. Unread #18 - Jul 9, 2007 at 5:19 AM
  36. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    FindBitmapIn in vb?

    Does anyone know how to make a Drag and Drop style way of getting a windows hWnd?
     
  37. Unread #19 - Jul 9, 2007 at 5:46 AM
  38. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    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
     
  39. Unread #20 - Jul 9, 2007 at 6:04 AM
  40. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site