Results 1 to 2 of 2

Thread: A Api Q

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Post

    I was Using api call keyboardAsyncState

    The Code was

    While keyboardasyncstate(vbreturn)
    wend
    while keyboardasyncstate(vbReturn) = 0
    wend

    it was For a break for the person to push enter...

    But I need one now that I Could use for the mouse.

    I Tried this:

    While mouse_event(0, 0, 0, 0, 0)
    Wend

    But I just dont know what Im Doing..
    Can someone Help me out?

    thanks.

  2. #2
    Member
    Join Date
    Jan 1999
    Location
    Gig Harbor, WA, USA
    Posts
    48

    Post

    You can use the GetAsyncKeyState function, and use the mouse button constants:
    Code:
    Private Const VK_LBUTTON = &H1
    Private Const VK_MBUTTON = &H4             
    Private Const VK_RBUTTON = &H2

    ------------------
    (`..`->ShadowCrawler<-`..)
    Teenage Programmer
    Visual Basic, HTML, C++, JavaScript

    http://welcome.to/X12Tech
    Email: craigkovatch@compuserve.com
    ICQ#: 9872708

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