Results 1 to 7 of 7

Thread: mouse movement

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13
    I read the tips on vb and I have visual basic 6.0. When I declare the functions for moving the mouse as posted in the tip it gives me an error. Any ideas? Please help I would greatly appreciate it. Thanks in advance.

  2. #2
    Lively Member
    Join Date
    Jul 1999
    Posts
    99
    i have no idea, but if you give me the function name or at least the error description, maybe i could help.

  3. #3
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    This will help us help you...

    When a section of code is giving you an error, post the section of code where the error is occurring and the error description. Then we can see what is going on.

    To post code, highlight it and copy it from VB, then here in the Bulletin Board window type the following into the Your Reply: window...

    [ code]
    < paste your code here >
    [ /code]

    The only thing is don't put a space after the first bracket. I had to do that or it would just do the format instead of the example!

    ~seaweed

  4. #4
    Lively Member
    Join Date
    Jun 1999
    Posts
    120
    could you supply which tip?

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13
    http://www.vb-world.net/mouse/tip15.html

    I can't get it to work. My program gives me an error with the declarations. Please help me. I have vb 6.0.

  6. #6
    Lively Member
    Join Date
    Jun 1999
    Posts
    120

    You have to declare t&...
    Dim t&
    or
    Dim t As Long 'this is better
    then don't put an ampersand (&) anymore
    in the line
    t& = SetCursorPos(0,0)

    Also, change SetCursorPosition to SetCursorPos

  7. #7

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Federal Way, WA, USA
    Posts
    13
    I get the error.

    Compile Error

    Constants, fixed-length strings, arrays, user-defined types, and declare statements not allowed as public members of object modules.


    Please help

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