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

My problrm is as follows: I'm accessing a device which sends a message to a specified window about status changes, I'm new to perl and so don't know how to read or catch this message sent. If you need further information, i will gladly give it. Any help would be greatly appreciated. Stevo_ie

Replies are listed 'Best First'.
(jeffa) Re: Window Message Handling
by jeffa (Bishop) on Jun 01, 2001 at 19:36 UTC
    Yes. We need further information. Lot's more:
    1. What is the device? if you want device drivers, you might need C
    2. What is the message? you mentioned a status change, but can you give more detail about the message?
    3. What is the specified window? In particular, is it a stand-alone application or a child window of some application?
    4. Are you using Tk? ActiveState? How is this window created?
    Something about this problem smells very Visual C++ to me, but I can't discern that yet . . .

    Jeff

    R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
    L-L--L-L--L-L--L-L--L-L--L-L--L-L--
    
      And it might be useful to know what operating system is being used <g>
        The device is a SmartCard reader which comes with its own drivers, it's dlls are used to access it. Calling a function from the smartcard dll allows you to setup the window messaging, you give it a window handle and when a card is either inserted or removed the dll will send a message to the window. Any window handle can be given. I'm using Tk on the latest version of Perl on Win2000. If you need more then I'll try to give more details. Thank you for your interest. Stevo_ie