kanegr has asked for the wisdom of the Perl Monks concerning the following question:

Hello. I was wondering if this is possible through windows 32 api calls in perl? I know how to get a hold of a windows application handle and how to "sendmessage". The particular message I'm interested in is WM_SETFONT. I need to some how create a font in perl and use it with this message to alter the font of the windows handle that I got through the api. Help
  • Comment on change the font of an existing windows application

Replies are listed 'Best First'.
Re: change the font of an existing windows application
by Anonymous Monk on Dec 24, 2008 at 16:37 UTC
    Anything is possible, but this is so pointless, and requires so much low-level win32 specific knowledge, that you'll never get a complete solution here.
Re: change the font of an existing windows application
by ddn123456 (Pilgrim) on Dec 29, 2008 at 10:32 UTC
    Hi Kanegr,

    Perl is able to receive and send win32 api calls.

    The issue however is to find first the dll you want to communicate with and then to find out in which format it wants its input/output. This kind of info can be found in the win32 C-family/wmi/vbs fora.

    Can you provide some specific sample code and a more detailed description of the exact needs?

    With kind regards.

    ddn123456
Re: change the font of an existing windows application
by imrags (Monk) on Dec 29, 2008 at 10:58 UTC
    You can use this link Win32 Classes to find which class can be used.
    These calls can be made throught WMI (winmgmts).
    You can use Win32::OLE to connect to the WMI and access or change the fields in the classes
    Let us know if it works.
    Raghu
Re: change the font of an existing windows application
by ddn123456 (Pilgrim) on Dec 29, 2008 at 11:57 UTC
    Hi,

    This will get you up to speed with perl wmi: Win32 Introduction to Perl and WMI

    If you want I can also retrieve and upload some win32 dll communication samples.

    Cheers

    ddn123456