none
How to send Keystroke from one app to another application in Background simultaneously ? RRS feed

  • Question

  • Hi i want to send a key pressed  Stroke from one apps (Main app ) to another (In background ) (Replicates Shortcuts )

    example: 

    app 1:  a opened  app and its Foreground main application on Desktop

    app 2:   a notepad opened in background   

    i'm trying  to press a  series of  keys like Z to M and exactly as they pressed simultaneously on  background app

    If possible, give me a sample code Please 

    Thank U by the way .


    • Edited by Hamilton2011 Monday, January 21, 2019 3:51 PM Crammer editing
    Monday, January 21, 2019 3:50 PM

All replies

  • Hi Hamilton2011,

    Thank you for posting here.

    For your question, I have some questions to confirm with you.

    Does the foreground main application and the background in the one project? Or both of them are different two applications?

    What is the type of the project? Console app or Winform app?

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, January 23, 2019 3:37 PM
    Moderator