Thread: Mouse Program - Please Test It

  1. #1
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Thumbs up Mouse Program - Please Test It

    Hi!

    Please people, try this code and do exactly this. Move your mouse pointer over the text "mouse" and leave it there. And then, please, tell me how many "mouse moved!" messages did you get (repeatedly 2 or just 1).

    Me and C_Coder tested this code and I get repeatedly 2 "mouse moved!" messages and C_Coder only get 1 "mouse moved!" message.

    Download this file:
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    I don't get any.
    I have a mouse, but no messages.
    I hold it in all sorts of spots, leave it there, move it after staying put, move it frequently, etc...nothin'
    The world is waiting. I must leave you now.

  3. #3
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    I forgot to post this. If you have WinNT/2k/XP you must change some properties of the console program. This properties you'll find if you click on the icon (icon's position is in the left upper corner of the console program) and then click properties and in the tab "Options" there are two options to be set. The first one is the "quickedit mode" and the second one is the "insert mode". Both of this options must be unchecked.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    I have Windows 98.
    I ran the program in a full-screen box.
    I can try exclusive mouse mode if you want me to?
    The world is waiting. I must leave you now.

  5. #5
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    801
    I kept moving my mouse, it printed "MOUSE MOVED!" once and then four more times then stopped, I thought the program was busy, so I tried to quit the program by pressing Q, and it worked....So I don't really know what went wrong!
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: [email protected] []*[]

  6. #6
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    If you are moving the mouse pointer over the message "mouse" and the message "mouse moved!" printed all that time you were moving the mouse, than that is good. But if you just leave the mouse pointer on the message "mouse" and you don't move the mouse, how many times did you get the message "mouse moved!"?
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  7. #7
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    Come on people. I see that the file was downloaded 18 times and I only see 2 different replys. Please tell me how is the mouse working.

    PLEASE HELP.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  8. #8
    Registered User
    Join Date
    Aug 2001
    Posts
    247
    I tried it with windows98SE.

    run on borland tcwin4.5 it generated 21 errors and numerous warnings

    run on code warrior it generated 20 warnings, I ran it any ways and it only asked me to press q to exit, when i pressed q only then did mouse appear as the application closed.

  9. #9
    Registered User
    Join Date
    May 2002
    Posts
    3
    I ran it on win98se, in both windowed and fullscreen modes, no magical mouse moved messages appear when I let the pointer rest on the word mouse.

    Do you actually see the mouse move when this happens to you?

  10. #10
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    I get one "moused moved!" message repeatly.

  11. #11
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    I got the right thing!

    when my mouse went over the text it printed once "mouse moved".

    if you move the mouse from the left or right side of the text and over it by the time your mouse pointer goes to the middle it prints 2 times for me, but if i move the mouse from the bottom or top of the text (much shorter distance) it prints it once. Also when i move it slowly it prints the message once for every letter my mouse goes over.

    does that solve your problem?

    ps i use dev C++ v.4.9.2.0 and it compiles with no errors

    edit: oh yeah i use win98SE
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  12. #12
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    bigtamscot
    I don't know what you did wrong, but I know this for sure. There is no error's or warnings in my code. I'm using VC++.NET and the compiler is set to detect LEVEL 4 warnings.
    sodsm live
    Yes I see it.
    lambs4
    Please tell me which operating system do you have.
    red_baron
    Hmmm, almost. What happens if you let the mouse alone on the message? And one more thing. The whole message "mouse" is sensitive for the mouse.

    Thanks guys for helping me. I need more people with different operating systems (Win95, WinXP).
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  13. #13
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Win98SE

  14. #14
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    ok when i leave mouse on it prints message once, then nothing.
    and it seems to me that the each letter of the word is sensitive to the mouse, try it again, move the mouse slowly from the left side to the right side everytime your mouse moves over another letter it prints message once more.
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  15. #15
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    Red_baron that's OK.

    lambs4, describe your process. If it is working like it is working on red_baron's machine and o.s. than it is OK.

    It seems to me that the difficulties with the mouse occurs only in the NT version of the Windows.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple mouse movement program
    By skankles in forum Windows Programming
    Replies: 3
    Last Post: 05-27-2007, 07:54 PM
  2. Executing a program
    By trancedeejay in forum C Programming
    Replies: 7
    Last Post: 03-06-2006, 08:55 AM
  3. Anybody know of a program to test efficiency?
    By John_ in forum Tech Board
    Replies: 2
    Last Post: 01-26-2006, 02:13 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM