1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help from an Experience .!

Discussion in 'C' started by Dimesh, Jul 25, 2010.

  1. Dimesh

    Dimesh New Member

    Joined:
    Jul 12, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Al salamo Aleekom

    And hi....
    Thank you for reading my topic
    ------------------------------------------------


    HOW to call windows as a keyboard or mouse?
    i mean i need to do a simple program simulate the option of keyboard's keys
    and also mouse's options.....

    can i!
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    Would you mind explaining a bit more. Are you planning to create something like Windows OnScreen Keyboard.
     
  3. Dimesh

    Dimesh New Member

    Joined:
    Jul 12, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Hi
    ---
    I do not understand "Windows OnScreen Keyboard".
    i want to do a program to do like these option
    Alt+f2 , Ctrl+r , Enter , Insert , Num Lock , Esc, Tab, (the start button) etc....
    i need to call windows service to do these like what keyboard do with it
    and also mouse:
    right click, middle, the movement , etc....
    if you can put me on the way,
    I appreciate that
     
  4. Ancient Dragon

    Ancient Dragon New Member

    Joined:
    Jul 23, 2010
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    part time cashier at WalMart
    Location:
    near St Louis, IL, USA
  5. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    You can send messages to applications with SendMessage, and WM_CHAR for characters and other keystrokes. WM_KEYUP and WM_KEYDOWN might also be useful. You can also send mouse messages; have a look through all the messages that start with WM_ for inspiration.

    Don't know why you think you need to send a Start button message though. Sounds like you are up to no good, or have a badly designed application. The start menu is there for the user's benefit, not yours. Besides, how do you know how the user has their start menu configured? If you want the Start menu so you can find Notepad for example, just start notepad.exe via a function in the WinExec family.
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    Thread closed.
     
  7. Dimesh

    Dimesh New Member

    Joined:
    Jul 12, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for everyone
     

Share This Page