User Tag List

Results 1 to 5 of 5

Thread: sending the key to another application

  1. #1


    Join Date
    Sep 2009
    Location
    Poland
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    sending the key to another application

    Hello, does anybody know how to send key to another application using MMF2?
    I want to achieve such an effect as in C++

    C++ CODE:
    #include <windows.h>
    using namespace std;

    int main(int argc, char *argv[])
    {


    HWND hWindow = FindWindow(NULL,"Game");
    WPARAM wParam;


    wParam = 38;// UP arrow in ASCII

    SendMessage(hWindow,WM_KEYDOWN,wParam,0);


    system("PAUSE");
    return EXIT_SUCCESS;
    }

    My dead code MMF2
    Start of frame ->Kernel object(Select window from title "Game")Kernel object(send message 0 with param (38,0))

    user32.dll
    Message = 0 = WM_KEYDOWN
    wParam = 38 = UP_ARROW
    lParam = NULL

    So, why is not working?
    Maybe someone knows how to do this using call dll object?



  2. #2
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2008
    Location
    Indonesia
    Posts
    694
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sending the key to another application

    MMF2 can do this as well. COM Object has an example to sending keys to another application. Unfortunately this object is only for MMF2 Developer.

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sending the key to another application

    alternatively use Instance Communicator

  4. #4


    Join Date
    Sep 2009
    Location
    Poland
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sending the key to another application

    Quote Originally Posted by MechaBowser
    alternatively use Instance Communicator
    I can not use this extension because it is another application that is not my authorship.

    So I am forced to write their own extension, just let someone tell me how to compile code in dev c++ at the MFX. I already have modified MMF2SDK downloaded from http://www.clickteam.com/webftp/files/mmf2/Exts/MMF2SDK.zip, but it's my first extension and I learn C++ from the recent.

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: sending the key to another application

    Can this do it? http://ext.neatwares.ath.cx/ext/WinMessPro_Object
    EDIT: Or possibly: http://ext.neatwares.ath.cx/ext/Control_X (it can simulate key presses, but I don't know if it is to other applications)

Similar Threads

  1. sending files from one application to another
    By nick_Peoples in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 24th February 2011, 08:32 AM
  2. Sending infomation to external application
    By willy in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 21st July 2010, 11:38 AM
  3. Sending keys to other application
    By wark in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 25th June 2008, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •