Beispiel #1
0
    def start_recording(self):
        listener = Listener(on_press=self.on_press, on_release=self.on_release)
        print("checking frames")

        self.start_time = time.time()
        listener.start()

        self.articleName, self.dimensions = window_dimensions.get_active_window_dimensions(
        )
        self.monitor = {
            "top": self.dimensions[1],
            "left": self.dimensions[0] + self.mw_panel,
            "width": self.dimensions[2],
            "height": self.dimensions[3]
        }
        while True:
            with open("../Integration/main_config", "r") as f:
                buffer = f.read().split()
            try:
                if buffer[1] == "no":
                    self.on_stop_recording()
                    break

            except:
                self.on_stop_recording()
                break

            else:
                if not settings.keepRecording:
                    print("keepRecording: ", settings.keepRecording)
                    break
                if self.new_frame:
                    print('Recording!')
                    self.capture_Frames()
    def start_recording(self):
        listener = Listener(on_press=self.on_press, on_release=self.on_release)

        self.start_time = time.time()
        listener.start()

        self.dimensions = window_dimensions.get_active_window_dimensions()
        self.monitor = {"top": self.dimensions[1], "left": self.dimensions[0] + self.mw_panel,
                        "width": self.dimensions[2], "height": self.dimensions[3]}
        while True:
            if not settings.keepRecording:
                print(settings.keepRecording)
                break
            if self.new_frame:
                print('Recording!')
                self.capture_Frames()
def get_output_img_size():
    dimensions = window_dimensions.get_active_window_dimensions()
    # monitor = {"top": dimensions[1], "left": dimensions[0],
    #            "width": dimensions[2], "height": dimensions[3]}
    return dimensions
def get_output_img_size():
    dimensions = window_dimensions.get_active_window_dimensions()
    return dimensions