DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: Mouse X,Y position with API call

  1. #1
    BIG T Guest

    Mouse X,Y position with API call


    What is the API call to get the mouse pointer's X , y position?

  2. #2
    Mattias Sjögren Guest

    Re: Mouse X,Y position with API call

    >What is the API call to get the mouse pointer's X , y position?

    Yep, GetCursorPos


    Dim pt As POINTAPI

    Call GetCursorPos(pt)
    MsgBox pt.x & vbTab & pt.y


    You can find the declare in API Viewer.


    Mattias

    ____________________________________________
    Mattias Sjögren - mattiass @ hem.passagen.se
    http://hem.spray.se/mattias.sjogren/
    Docendo discimus

  3. #3
    Mattias Sjögren Guest

    Re: Mouse X,Y position with API call

    >What is the API call to get the mouse pointer's X , y position?

    Yep, GetCursorPos


    Dim pt As POINTAPI

    Call GetCursorPos(pt)
    MsgBox pt.x & vbTab & pt.y


    You can find the declare in API Viewer.


    Mattias

    ____________________________________________
    Mattias Sjögren - mattiass @ hem.passagen.se
    http://hem.spray.se/mattias.sjogren/
    Docendo discimus

  4. #4
    Mike Culley Guest

    Re: Mouse X,Y position with API call


    Should we call you Big, T, Mr Big or Mr T?

    "BIG T" <anthonyguzzo@yahoo.com> wrote:
    >
    >What is the API call to get the mouse pointer's X , y position?



  5. #5
    Mike Culley Guest

    Re: Mouse X,Y position with API call


    Should we call you Big, T, Mr Big or Mr T?

    "BIG T" <anthonyguzzo@yahoo.com> wrote:
    >
    >What is the API call to get the mouse pointer's X , y position?



  6. #6
    Phil Weber Guest

    Re: Mouse X,Y position with API call

    > Should we call you Big, T, Mr Big or Mr T?

    Mike: How about "Tony"? (His name is Anthony Guzzo.)
    ---
    Phil Weber



  7. #7
    Phil Weber Guest

    Re: Mouse X,Y position with API call

    > Should we call you Big, T, Mr Big or Mr T?

    Mike: How about "Tony"? (His name is Anthony Guzzo.)
    ---
    Phil Weber



  8. #8
    Mike Culley Guest

    Re: Mouse X,Y position with API call


    Tony did post his name as Big T.

    "Phil Weber" <pweber@teleport.com> wrote:
    > > Should we call you Big, T, Mr Big or Mr T?

    >
    >Mike: How about "Tony"? (His name is Anthony Guzzo.)
    >---
    >Phil Weber
    >
    >



  9. #9
    Mike Culley Guest

    Re: Mouse X,Y position with API call


    Tony did post his name as Big T.

    "Phil Weber" <pweber@teleport.com> wrote:
    > > Should we call you Big, T, Mr Big or Mr T?

    >
    >Mike: How about "Tony"? (His name is Anthony Guzzo.)
    >---
    >Phil Weber
    >
    >



  10. #10
    Phil Weber Guest

    Re: Mouse X,Y position with API call

    > Tony did post his name as Big T.

    Yes, but if you had bothered to glance at his e-mail address, you could have
    learned his real name and not had to hassle him about it. ;-)
    ---
    Phil Weber



  11. #11
    Phil Weber Guest

    Re: Mouse X,Y position with API call

    > Tony did post his name as Big T.

    Yes, but if you had bothered to glance at his e-mail address, you could have
    learned his real name and not had to hassle him about it. ;-)
    ---
    Phil Weber



  12. #12
    Mike Culley Guest

    Re: Mouse X,Y position with API call


    Phil,

    This was meant to be a friendly joke. You seam to have taken it the wrong
    way.

    "Phil Weber" <pweber@teleport.com> wrote:
    > > Tony did post his name as Big T.

    >
    >Yes, but if you had bothered to glance at his e-mail address, you could

    have
    >learned his real name and not had to hassle him about it. ;-)
    >---
    >Phil Weber
    >
    >



  13. #13
    Mike Culley Guest

    Re: Mouse X,Y position with API call


    Phil,

    This was meant to be a friendly joke. You seam to have taken it the wrong
    way.

    "Phil Weber" <pweber@teleport.com> wrote:
    > > Tony did post his name as Big T.

    >
    >Yes, but if you had bothered to glance at his e-mail address, you could

    have
    >learned his real name and not had to hassle him about it. ;-)
    >---
    >Phil Weber
    >
    >



  14. #14
    Karl E. Peterson Guest

    Re: Mouse X,Y position with API call

    Phil got it. He's just ribbin' ya right back! :-)
    --
    http://www.mvps.org/vb

    "Mike Culley" <m_culley@one.net.au> wrote in message news:391b9754$1@news.devx.com...
    >
    > Phil,
    >
    > This was meant to be a friendly joke. You seam to have taken it the wrong
    > way.
    >
    > "Phil Weber" <pweber@teleport.com> wrote:
    > > > Tony did post his name as Big T.

    > >
    > >Yes, but if you had bothered to glance at his e-mail address, you could

    > have
    > >learned his real name and not had to hassle him about it. ;-)
    > >---
    > >Phil Weber
    > >
    > >

    >




  15. #15
    Karl E. Peterson Guest

    Re: Mouse X,Y position with API call

    Phil got it. He's just ribbin' ya right back! :-)
    --
    http://www.mvps.org/vb

    "Mike Culley" <m_culley@one.net.au> wrote in message news:391b9754$1@news.devx.com...
    >
    > Phil,
    >
    > This was meant to be a friendly joke. You seam to have taken it the wrong
    > way.
    >
    > "Phil Weber" <pweber@teleport.com> wrote:
    > > > Tony did post his name as Big T.

    > >
    > >Yes, but if you had bothered to glance at his e-mail address, you could

    > have
    > >learned his real name and not had to hassle him about it. ;-)
    > >---
    > >Phil Weber
    > >
    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center