Application A interacting with application B

This is a discussion on Application A interacting with application B within the C++ Programming forums, part of the General Programming Boards category; Hi, Yesterday I started creating an application that would interact with an psx emulator and then send key combinations to ...

  1. #1
    The Autodidact Dante Wingates's Avatar
    Join Date
    Apr 2010
    Location
    Valhalla
    Posts
    56

    Smile Application A interacting with application B

    Hi,

    Yesterday I started creating an application that would interact with an psx emulator and then send key combinations to it when the user presses key X, like a shortcut...

    I did it today.. well, sort of... I created a hook to the target application, and then wrote a function in a dll that should listen to windows messages sent to the emulator, filter it, compare it to key X, and if true, send a key combination to the target application, or else let the key pass unchanged. Some kind of code injection I believe...

    It kinda works to a certain extend... As you probably guessed this increased the amont of processing windows has to do for each message, making the target application horribly slow and almost making everything useless...

    I thought about creating an application that would just send keys to the top window, but this way I would not be able to send the key combination only when the user presses key X... I also thought of hooking the application to the target, send the key combination without waiting for any messages and then unhook it, kind of a "send combination to window X" button.

    I dont know, at least until now, of any other way to do it... I need someway of doing it faster and better...

    Im just asking for directions... It may be something simple, but this is the first time I doing it. What technique should I use? Have you ever done something similar before? If so, what is the best approach? There must be some technique used in order to accomplish this kind of thing...

    Thanks.
    Last edited by Dante Wingates; 06-27-2010 at 02:07 AM.

  2. #2
    The Autodidact Dante Wingates's Avatar
    Join Date
    Apr 2010
    Location
    Valhalla
    Posts
    56
    More than 200 views and no one said nothing.. Is it that hard or is my english really that bad???

    anyway never mind, after some time I finally did what I wanted, the way I wanted...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 11-22-2009, 11:23 AM
  2. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 06:50 AM
  3. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 04:33 AM
  4. Win application not very portable
    By swed in forum Windows Programming
    Replies: 5
    Last Post: 10-01-2001, 12:17 PM

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