diff --git a/Utils/RobotScreenSpy/TechScreenSpy.py b/Utils/RobotScreenSpy/TechScreenSpy.py new file mode 100644 index 00000000..d96db2d3 --- /dev/null +++ b/Utils/RobotScreenSpy/TechScreenSpy.py @@ -0,0 +1,25 @@ +import json +import os +import time +import datetime +#ControlPanelDict +from desktopmagic.screengrab_win32 import ( + getDisplayRects, saveScreenToBmp, saveRectToBmp, getScreenAsImage, + getRectAsImage, getDisplaysAsImages) +############################################ +inScreenshotFolder="Screenshots" +def SaveScreenshot(inFilePath): + # grab fullscreen + # Save the entire virtual screen as a PNG + lScreenshot = getScreenAsImage() + lScreenshot.save(inFilePath, format='png') + # lScreenshot = ScreenshotSecondScreen.grab_screen() + # save image file + # lScreenshot.save('screenshot.png') +# Сохранить файл на диск +while True: + try: + SaveScreenshot(os.path.abspath(os.path.join(inScreenshotFolder,f'Scr_{datetime.datetime.now().strftime("%Y_%m_%d__%H_%M_%S")}.png'))) + except Exception as e: + pass + time.sleep(3) \ No newline at end of file diff --git a/Utils/RobotScreenSpy/TechScreenSpyPython.cmd b/Utils/RobotScreenSpy/TechScreenSpyPython.cmd new file mode 100644 index 00000000..5d24ecb0 --- /dev/null +++ b/Utils/RobotScreenSpy/TechScreenSpyPython.cmd @@ -0,0 +1,3 @@ +cd %~dp0 +python-3.7.2.amd64\python.exe "TechScreenSpy.py" +pause >nul \ No newline at end of file diff --git a/Utils/RobotScreenSpy/TechScreenSpyPythonw.cmd b/Utils/RobotScreenSpy/TechScreenSpyPythonw.cmd new file mode 100644 index 00000000..c2dadb91 --- /dev/null +++ b/Utils/RobotScreenSpy/TechScreenSpyPythonw.cmd @@ -0,0 +1,3 @@ +cd %~dp0 +python-3.7.2.amd64\pythonw.exe "TechScreenSpy.py" +pause >nul \ No newline at end of file diff --git a/v1.0.38 b/v1.0.38- similarity index 100% rename from v1.0.38 rename to v1.0.38-