User Tag List

Results 1 to 6 of 6

Thread: Extension SDK - Can't make WindowProc interception work

  1. #1
    No Products Registered

    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Extension SDK - Can't make WindowProc interception work

    Hello.

    I used the Template from SDK as the base for my extension. I'm trying to enable WindowProc interception. I uncommented "WindowProc 84" in Ext.def and created this function in Runtime.cpp:
    Code:
    LRESULT CALLBACK DLLExport WindowProc(LPRH rhPtr, HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)
    {
    	MessageBox(0, "", "", 0);
    	return 0;
    }
    I can see that the extension exports it, yet it is never called by the runtime.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Please tell me if you are trying to intercept the messages of a new Window you create in your extension, or the main MMF window, and I'll be able to help you.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to set OEFLAG_WINDOWPROC if you haven't already. In Edif, do this by setting static const int OEFLAGS to OEFLAG_WINDOWPROC in Extension.h. In rSDK, do this by uncommenting #define M_OEFLAG_WINDOWPROC in FlagPrefs.h.

  4. #4
    No Products Registered

    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jaffob View Post
    In Edif, do this by setting static const int OEFLAGS to OEFLAG_WINDOWPROC in Extension.h.
    Thank you, that has worked!

    What I've done with this is proportional scaling of the game inside the window. The point was to make the game scale 2x or 3x in windowed mode, keeping it proportional in fullscreen mode, which was problematic as the game size is 600x240 and MMF was stretching it to 640x480. I also made an option to go fullscreen without changing resolution.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Wait, what? That sounds exactly like the Ultimate Fullscreen object

  6. #6
    No Products Registered

    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, indeed. Ultimate Fullscreen seems to do it all. Though, I can also control the resolution. Whenever the game wants to change screen resolution I can override it. So, I can definitely solve NightSky problem: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=243688

Similar Threads

  1. Window Interception / Kill, Minimize etc.
    By Danny in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd May 2012, 12:41 AM
  2. How to make a key work only in a certain zone
    By Heclegar in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th January 2011, 06:03 PM
  3. How do I make antialiasing work?
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 9th November 2010, 12:26 PM
  4. Pause et interception de messages
    By ouly in forum Extension Developers Lobby
    Replies: 2
    Last Post: 18th November 2009, 11:52 PM
  5. [Help] Get rdPtr from WindowProc function
    By Sphax in forum Extension Developers Lobby
    Replies: 11
    Last Post: 18th July 2007, 07:23 AM

Posting Permissions

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