Results 1 to 2 of 2

Thread: [RESOLVED] [2005] if Cursortype = that type

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2007
    Location
    Mechelen
    Posts
    119

    Resolved [RESOLVED] [2005] if Cursortype = that type

    Hello

    I am making a Auto grind programm for a game . But i am kinda stuck with finding out when my app is targeting a Mob. So i let my cursor scan the screen so if the cursor become red(there is a mob) with a kinda icon i wanne press click. I know how to click and to scan. But the cursor is a .ani file and got no idea how to let my prog know that it changed. I Tried to check for pixel but it doesn t check it : /.

    Greetings

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2007
    Location
    Mechelen
    Posts
    119

    Resolved Re: [2005] if Cursortype = that type

    After good looking in the forum found the solution myself .


    Code:
       1.
          Declare first for VB.net
       2.
           
       3.
          Declare Function GetCursorInfo Lib "user32" (ByRef pCI As cursorInfo) As Integer
       4.
           
       5.
              Public Structure cursorInfo
       6.
                  Dim cbSize As Integer
       7.
                  Dim flags As Integer
       8.
                  Dim hCursor As Integer
       9.
                  Dim ptScreenPos As PointAPI
      10.
              End Structure
      11.
           
      12.
          Then Use:
      13.
           
      14.
          Dim CurInf As cursorInfo
      15.
          CurInf.cbSize = Len(CurInf)
      16.
          GetCursorInfo(CurInf)
      17.
          msgbox(CurInf.hCursor)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width