ok-script 0.0.88__tar.gz → 0.0.89__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ok-script-0.0.88 → ok-script-0.0.89}/PKG-INFO +1 -1
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/debug/LogWindow.py +2 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/ocr/OCR.py +3 -3
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/update/Updater.py +35 -23
- {ok-script-0.0.88 → ok-script-0.0.89}/ok_script.egg-info/PKG-INFO +1 -1
- {ok-script-0.0.88 → ok-script-0.0.89}/setup.py +1 -1
- {ok-script-0.0.88 → ok-script-0.0.89}/README.md +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/OK.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/alas/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/alas/emulator_base.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/alas/emulator_windows.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/alas/platform_base.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/alas/platform_windows.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/alas/utils.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/BaseCaptureMethod.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/HwndWindow.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/adb/ADBCaptureMethod.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/adb/DeviceManager.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/adb/WindowsCaptureFactory.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/adb/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/adb/bin/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/image/ImageCaptureMethod.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/image/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/BaseWindowsCaptureMethod.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/BitBltCaptureMethod.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/DesktopDuplicationCaptureMethod.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/WindowsGraphicsCaptureMethod.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/d3d11.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/dump.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/utils.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/capture/windows/window.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/color/Color.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/color/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/config/Config.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/config/InfoDict.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/config/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/feature/Box.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/feature/CompressCoco.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/feature/Feature.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/feature/FeatureSet.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/feature/FindFeature.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/feature/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/firebase/Analytics.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/firebase/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/App.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/Communicate.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/MainWindow.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/MessageWindow.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/StartController.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/TabTitles.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/about/AboutTab.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/about/HttpTextEdit.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/about/VersionCard.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/about/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/common/OKIcon.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/common/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/common/config.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/common/style_sheet.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/debug/AspectRatioWidget.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/debug/DebugTab.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/debug/FrameWidget.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/debug/InfoWidget.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/debug/Screenshot.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/debug/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/i18n/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/i18n/path.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/i18n/update.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/icon/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/icon/icon.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/overlay/OverlayWindow.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/overlay/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/qss/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/resources.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/settings/SettingTab.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/settings/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/start/SelectCaptureListView.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/start/StartCard.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/start/StartTab.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/start/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/ConfigItemFactory.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/ConfigLabelAndWidget.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/LabelAndDoubleSpinBox.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/LabelAndDropDown.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/LabelAndLineEdit.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/LabelAndList.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/LabelAndSpinBox.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/LabelAndSwitchButton.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/LabelAndWidget.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/ModifyListDialog.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/ModifyListItem.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/OneTimeTaskTab.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/StartButton.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/TaskCard.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/TaskOpButton.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/TooltipTableWidget.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/TriggerTaskTab.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/tasks/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/util/Alert.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/util/InitWorker.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/util/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/Card.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/EmptyCard.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/FramelessDialog.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/ListTableWidgetItem.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/NumericTableWidgetItem.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/StartLoadingDialog.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/StatusBar.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/Tab.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/TabWidget.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/UpdateConfigWidgetItem.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/YesNonWidgetItem.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/gui/widget/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/interaction/ADBInteraction.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/interaction/BaseInteraction.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/interaction/DoNothingInteraction.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/interaction/Win32Interaction.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/interaction/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/logging/Logger.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/logging/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/ocr/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Foundation/Collections.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Foundation/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Globalization/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Graphics/Capture/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Graphics/DirectX/Direct3D11/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Graphics/DirectX/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Graphics/Imaging/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Graphics/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Media/Ocr/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Media/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Security/Cryptography/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Security/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Storage/Streams/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Storage/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/delegate.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/export.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/idldsl.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/inspectable.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/roapi.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/types.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/winstring.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/save/BlackBarProcessor.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/save/PostProcessor.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/save/SaveByInterval.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/save/SaveByKeyPress.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/save/SaveMethodBase.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/save/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/scene/FeatureScene.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/scene/Scene.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/scene/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/stats/StreamStats.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/stats/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/task/BaseTask.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/task/ExecutorOperation.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/task/TaskExecutor.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/task/TriggerTask.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/task/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/update/GithubMultiDownloader.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/update/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/update/gen_md5.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/Handler.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/exit_event.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/json.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/list.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/path.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/thread.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/win32_process.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok/util/yaml.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok_script.egg-info/SOURCES.txt +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok_script.egg-info/dependency_links.txt +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok_script.egg-info/requires.txt +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/ok_script.egg-info/top_level.txt +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/setup.cfg +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/tests/__init__.py +0 -0
- {ok-script-0.0.88 → ok-script-0.0.89}/tests/test_updater.py +0 -0
|
@@ -69,6 +69,8 @@ class LogModel(QAbstractListModel):
|
|
|
69
69
|
self.beginInsertRows(QModelIndex(), self.rowCount(QModelIndex()), self.rowCount(QModelIndex()))
|
|
70
70
|
self.do_filter_logs()
|
|
71
71
|
self.endInsertRows()
|
|
72
|
+
self.layoutChanged.emit()
|
|
73
|
+
self.log_list.scrollToBottom()
|
|
72
74
|
|
|
73
75
|
def do_filter_logs(self):
|
|
74
76
|
|
|
@@ -55,13 +55,13 @@ class OCR:
|
|
|
55
55
|
pos = res[0]
|
|
56
56
|
text = res[1]
|
|
57
57
|
confidence = res[2]
|
|
58
|
-
width, height =
|
|
58
|
+
width, height = round(pos[2][0] - pos[0][0]), round(pos[2][1] - pos[0][1])
|
|
59
59
|
if width <= 0 or height <= 0:
|
|
60
60
|
logger.error(f'ocr result negative box {text} {confidence} {width}x{height} pos:{pos}')
|
|
61
61
|
continue
|
|
62
62
|
if confidence >= threshold:
|
|
63
|
-
detected_box = Box(
|
|
64
|
-
|
|
63
|
+
detected_box = Box(pos[0][0], pos[0][1], width,
|
|
64
|
+
height,
|
|
65
65
|
confidence, text)
|
|
66
66
|
scale_box(detected_box, scale_factor)
|
|
67
67
|
if box is not None:
|
|
@@ -70,27 +70,10 @@ REM Check all PIDs every second and terminate them after 10 seconds if still run
|
|
|
70
70
|
set "check_duration=10"
|
|
71
71
|
|
|
72
72
|
for %%A in (%pid_list%) do (
|
|
73
|
-
|
|
74
|
-
:check_loop
|
|
75
|
-
echo %time% - Waiting for PID %%A to exit...
|
|
76
|
-
tasklist /fi "PID eq %%A" | find ":" >nul
|
|
77
|
-
if errorlevel 1 (
|
|
78
|
-
echo %time% - PID %%A has exited.
|
|
79
|
-
goto next_pid
|
|
80
|
-
) else (
|
|
81
|
-
timeout /t 1 /nobreak >nul
|
|
82
|
-
set /a elapsed_time+=1
|
|
83
|
-
if !elapsed_time! geq %check_duration% (
|
|
84
|
-
echo %time% - PID %%A is still running after %check_duration% seconds, killing it...
|
|
85
|
-
taskkill /f /pid %%A
|
|
86
|
-
goto next_pid
|
|
87
|
-
)
|
|
88
|
-
goto check_loop
|
|
89
|
-
)
|
|
90
|
-
:next_pid
|
|
91
|
-
echo %time% - continue
|
|
73
|
+
call :check_pid %%A
|
|
92
74
|
)
|
|
93
75
|
|
|
76
|
+
|
|
94
77
|
REM Sleep for one second
|
|
95
78
|
timeout /t 1 /nobreak >nul
|
|
96
79
|
|
|
@@ -114,6 +97,29 @@ for /D %%D in ("%source_dir%\*") do (
|
|
|
114
97
|
echo %time% Update Success
|
|
115
98
|
start "" %exe%
|
|
116
99
|
endlocal
|
|
100
|
+
pause
|
|
101
|
+
|
|
102
|
+
goto :eof
|
|
103
|
+
|
|
104
|
+
:check_pid
|
|
105
|
+
set "elapsed_time=0"
|
|
106
|
+
:check_loop
|
|
107
|
+
echo %time% - Waiting for PID %1 to exit...
|
|
108
|
+
tasklist /fi "PID eq %1" | find ":" >nul
|
|
109
|
+
if errorlevel 1 (
|
|
110
|
+
echo %time% - PID %1 has exited.
|
|
111
|
+
goto :eof
|
|
112
|
+
) else (
|
|
113
|
+
timeout /t 1 /nobreak >nul
|
|
114
|
+
set /a elapsed_time+=1
|
|
115
|
+
if !elapsed_time! geq %check_duration% (
|
|
116
|
+
echo %time% - PID %1 is still running after %check_duration% seconds, killing it...
|
|
117
|
+
taskkill /f /pid %1
|
|
118
|
+
goto :eof
|
|
119
|
+
)
|
|
120
|
+
goto check_loop
|
|
121
|
+
)
|
|
122
|
+
goto :eof
|
|
117
123
|
'''
|
|
118
124
|
|
|
119
125
|
|
|
@@ -287,17 +293,23 @@ class Updater:
|
|
|
287
293
|
return True
|
|
288
294
|
|
|
289
295
|
def update(self):
|
|
296
|
+
ok.gui.device_manager.adb_kill_server()
|
|
290
297
|
exe_folder = get_path_relative_to_exe()
|
|
291
298
|
batch_command = [self.to_update.get("updater_bat"), self.to_update.get("update_package_folder"), exe_folder,
|
|
292
|
-
os.path.join(exe_folder, self.exe_name),
|
|
293
|
-
for proc in psutil.process_iter(['pid', 'name']):
|
|
294
|
-
if proc.info['name'] == 'adb.exe'
|
|
299
|
+
os.path.join(exe_folder, self.exe_name), str(os.getpid())]
|
|
300
|
+
for proc in psutil.process_iter(['pid', 'name', 'exe']):
|
|
301
|
+
if proc.info['name'] == 'adb.exe' and os.path.normpath(proc.info['exe']).startswith(
|
|
302
|
+
os.path.normpath(exe_folder)):
|
|
303
|
+
try:
|
|
304
|
+
logger.info(f'try kill the adb process {proc.info}')
|
|
305
|
+
proc.kill()
|
|
306
|
+
except Exception as e:
|
|
307
|
+
logger.error(f'kill process error', e)
|
|
295
308
|
batch_command.append(str(proc.info['pid']))
|
|
296
309
|
|
|
297
310
|
logger.info(f'execute update {batch_command}')
|
|
298
311
|
|
|
299
312
|
subprocess.Popen(batch_command, creationflags=subprocess.CREATE_NEW_CONSOLE)
|
|
300
|
-
ok.gui.device_manager.adb_kill_server()
|
|
301
313
|
ok.gui.ok.quit()
|
|
302
314
|
|
|
303
315
|
def check_package_error(self):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ok-script-0.0.88 → ok-script-0.0.89}/ok/rotypes/Windows/Graphics/DirectX/Direct3D11/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|