예제 #1
0
    def run(self):
        self.session = self.session_maker()

        self.sniffer = sniffer.Sniffer()
        self.sniffer.screen_hook = self.got_screen_change
        self.sniffer.key_hook = self.got_key
        self.sniffer.mouse_button_hook = self.got_mouse_click
        self.sniffer.mouse_move_hook = self.got_mouse_move

        self.sniffer.run()
예제 #2
0
    def run(self):
        self.session = self.session_maker()

        self.sniffer = sniffer.Sniffer()
        self.sniffer.screen_hook = self.got_screen_change
        self.sniffer.key_hook = self.got_key
        self.sniffer.mouse_button_hook = self.got_mouse_click
        self.sniffer.mouse_move_hook = self.got_mouse_move
        self.sniffer.location_hook = self.got_location_change

        self.sniffer.getProcessIDFromName = self.getProcessIDFromName
        self.sniffer.getWindowIDFromName = self.getWindowIDFromName

        self.sniffer.run()
예제 #3
0
    def run(self):
        self.session = self.session_maker()

        # TODO: Check this is really needed (specially check for last line)
        self.current_tag = self.session.query(Tag).filter_by(
            name=self.tag_name).scalar()
        if not self.current_tag:
            self.current_tag = Tag(self.tag_name)
            self.session.add(self.current_tag)

        self.sniffer = sniffer.Sniffer()
        self.sniffer.screen_hook = self.got_screen_change
        self.sniffer.key_hook = self.got_key
        self.sniffer.mouse_button_hook = self.got_mouse_click
        self.sniffer.mouse_move_hook = self.got_mouse_move

        self.sniffer.run()
예제 #4
0
    def run(self):
        self.session = self.session_maker()
        self.sniffer = sniffer.Sniffer()
        self.sniffer.screen_hook = self.got_screen_change
        self.sniffer.key_hook = self.got_key
        self.sniffer.mouse_button_hook = self.got_mouse_click
        self.sniffer.mouse_move_hook = self.got_mouse_move

        # self.sniffer.clipboard_hook = self.got_changed_clipboard

        # watcher = ClipboardWatcher(self.got_changed_clipboard, 1.)
        # watcher.start()

        # root = Tk()
        # root.bind('<Control-v>', self.testPaste())
        # root.update()

        # self.getWindowsMessages()
        pythoncom.PumpMessages()

        self.sniffer.run()