Mouse function outputs?

This is a discussion on Mouse function outputs? within the C Programming forums, part of the General Programming Boards category; Hello everybody, i was just wondering if it is possible to make a program where if a certain condition is ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    6

    Mouse function outputs?

    Hello everybody, i was just wondering if it is possible to make a program where if a certain condition is true, it would output mouse functions?
    For example:
    Code:
    x=1
    if(x=1){
    move mouse here and click
    }
    Im looking for something like that, just dont know what to do on the inside.
    If somebody could point me to a library with functions like this, that would be extremely greatful.

  2. #2
    Hacker MeTh0Dz's Avatar
    Join Date
    Oct 2008
    Posts
    111
    This is going to be platform dependent, and also you should have.

    Code:
    if (x == 1)

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    As Methodz says, it would depend on which OS you are using.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    6
    Itll be on xp, i can get it on ubuntu eee. Would it be able to work with those? If not, i could do vista, but i hate vista, so that would be last resort

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    And can you perhaps describe in a bit more detail what you actually want to achieve? Simulate clicks in YOUR application, or in someone else application?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    6
    another application

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 09:28 AM
  2. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 02:17 AM
  3. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  5. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21