Example #1
0
    def _win_wm_notify(self, message):
        lParam = message[3]

        info = win32gui_struct.UnpackNMITEMACTIVATE(lParam)

        _forward = getattr(self, '_forward_reflected_message', None)

        if _forward:
            _forward(info.hwndFrom, '_win_wm_notify', info)
Example #2
0
    def on_notify(self, hwnd, msg, wparam, lparam):
        self.log("on_notify", hwnd, msg, wparam, lparam)

        info = win32gui_struct.UnpackNMITEMACTIVATE(lparam)

        if wparam != IDC_EDIT:
            print('origin not edit, skipping')
            return 1

        if info.code == win32con.EN_MSGFILTER:
            logger.info('EN_MSGFILTER')
        elif info.code == win32con.EN_SELCHANGE:
            logger.info('EN_SELCHANGE')

        print(info.code)
        return 1
Example #3
0
 def OnNotify(self, hwnd, msg, wparam, lparam):
     info = win32gui_struct.UnpackNMITEMACTIVATE(lparam)
     if info.code == commctrl.NM_DBLCLK:
         print "Double click on item", info.iItem + 1
     return 1