ok-script 0.0.61__tar.gz → 0.0.63__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.61 → ok-script-0.0.63}/PKG-INFO +2 -1
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/debug/DebugTab.py +49 -11
- {ok-script-0.0.61 → ok-script-0.0.63}/ok_script.egg-info/PKG-INFO +2 -1
- {ok-script-0.0.61 → ok-script-0.0.63}/ok_script.egg-info/requires.txt +1 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/setup.py +3 -2
- {ok-script-0.0.61 → ok-script-0.0.63}/README.md +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/OK.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/BaseCaptureMethod.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/HwndWindow.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/adb/ADBCaptureMethod.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/adb/DeviceManager.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/adb/WindowsCaptureFactory.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/adb/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/adb/bin/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/adb/targets.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/adb/vbox.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/BaseWindowsCaptureMethod.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/BitBltCaptureMethod.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/DesktopDuplicationCaptureMethod.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/WindowsGraphicsCaptureMethod.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/d3d11.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/dump.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/utils.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/capture/windows/window.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/color/Color.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/color/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/config/Config.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/config/InfoDict.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/config/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/feature/Box.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/feature/Feature.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/feature/FeatureSet.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/feature/FindFeature.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/feature/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/firebase/FireBaseAnalytics.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/firebase/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/App.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/Communicate.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/MainWindow.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/MessageWindow.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/TabTitles.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/about/AboutTab.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/about/HttpTextEdit.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/about/VersionCard.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/about/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/common/OKIcon.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/common/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/common/config.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/common/style_sheet.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/debug/AspectRatioWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/debug/FrameWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/debug/InfoWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/debug/LoggerWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/debug/Screenshot.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/debug/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/i18n/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/i18n/path.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/i18n/update.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/icon/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/icon/icon.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/overlay/OverlayWindow.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/overlay/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/qss/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/resources.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/settings/SettingTab.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/settings/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/start/SelectCaptureListView.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/start/SelectHwndWindow.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/start/StartCard.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/start/StartTab.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/start/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/ConfigItemFactory.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/ConfigLabelAndWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/LabelAndDoubleSpinBox.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/LabelAndDropDown.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/LabelAndLineEdit.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/LabelAndList.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/LabelAndSpinBox.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/LabelAndSwitchButton.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/LabelAndWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/ModifyListDialog.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/ModifyListItem.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/OneTimeTaskTab.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/StartButton.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/TaskCard.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/TaskOpButton.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/TooltipTableWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/TriggerTaskTab.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/tasks/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/util/Alert.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/util/InitWorker.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/util/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/Card.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/EmptyCard.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/FramelessDialog.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/ListTableWidgetItem.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/NumericTableWidgetItem.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/StatusBar.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/Tab.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/TabWidget.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/UpdateConfigWidgetItem.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/YesNonWidgetItem.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/gui/widget/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/interaction/ADBInteraction.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/interaction/BaseInteraction.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/interaction/Win32Interaction.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/interaction/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/logging/Logger.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/logging/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/ocr/OCR.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/ocr/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Foundation/Collections.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Foundation/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Globalization/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Graphics/Capture/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Graphics/DirectX/Direct3D11/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Graphics/DirectX/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Graphics/Imaging/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Graphics/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Media/Ocr/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Media/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Security/Cryptography/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Security/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Storage/Streams/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/Storage/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/Windows/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/delegate.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/export.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/idldsl.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/inspectable.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/roapi.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/types.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/rotypes/winstring.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/save/BlackBarProcessor.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/save/PostProcessor.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/save/SaveByInterval.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/save/SaveByKeyPress.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/save/SaveMethodBase.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/save/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/scene/FeatureScene.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/scene/Scene.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/scene/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/stats/StreamStats.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/stats/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/task/BaseTask.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/task/ExecutorOperation.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/task/OneTimeTask.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/task/TaskExecutor.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/task/TriggerTask.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/task/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/update/GithubMultiDownloader.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/update/Updater.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/update/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/update/gen_md5.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/Handler.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/exit_event.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/json.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/list.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/path.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/thread.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/win32_process.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok/util/yaml.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok_script.egg-info/SOURCES.txt +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok_script.egg-info/dependency_links.txt +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/ok_script.egg-info/top_level.txt +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/setup.cfg +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/tests/__init__.py +0 -0
- {ok-script-0.0.61 → ok-script-0.0.63}/tests/test_updater.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ok-script
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.63
|
|
4
4
|
Summary: Automation with Computer Vision for Python
|
|
5
5
|
Home-page: https://github.com/ok-oldking/ok-script
|
|
6
6
|
Author: ok-oldking
|
|
@@ -22,6 +22,7 @@ Requires-Dist: psutil>=5.9.8
|
|
|
22
22
|
Requires-Dist: opencv-python>=4.9.0.80
|
|
23
23
|
Requires-Dist: ok-d3dshot>=0.1.5
|
|
24
24
|
Requires-Dist: py7zr>=0.21.0
|
|
25
|
+
Requires-Dist: wmi>=1.5.1
|
|
25
26
|
|
|
26
27
|
# ok-script
|
|
27
28
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import subprocess
|
|
2
2
|
|
|
3
|
-
from PySide6.
|
|
4
|
-
from
|
|
3
|
+
from PySide6.QtCore import Qt
|
|
4
|
+
from PySide6.QtWidgets import QWidget, QFileDialog, QCompleter
|
|
5
|
+
from qfluentwidgets import PushButton, FlowLayout, ComboBox, SearchLineEdit
|
|
5
6
|
|
|
6
7
|
import ok.gui
|
|
7
8
|
from ok.capture.windows.dump import dump_threads
|
|
@@ -17,7 +18,7 @@ class DebugTab(Tab):
|
|
|
17
18
|
def __init__(self, app_config, exit_event):
|
|
18
19
|
super().__init__()
|
|
19
20
|
|
|
20
|
-
self.config = Config({'target_task':
|
|
21
|
+
self.config = Config({'target_task': "", 'target_image': "", 'target_function': ""},
|
|
21
22
|
app_config.get('config_folder'), 'debug')
|
|
22
23
|
tool_widget = QWidget()
|
|
23
24
|
layout = FlowLayout(tool_widget, False)
|
|
@@ -43,27 +44,64 @@ class DebugTab(Tab):
|
|
|
43
44
|
call_task_layout = FlowLayout(call_task_widget, False)
|
|
44
45
|
self.addCard(self.tr("Debug Task Function"), call_task_widget)
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
self.select_screenshot_button = PushButton(
|
|
48
|
+
self.config.get('target_image') or self.tr("Drop or Select Screenshot"))
|
|
49
|
+
self.select_screenshot_button.clicked.connect(self.select_screenshot)
|
|
50
|
+
call_task_layout.addWidget(self.select_screenshot_button)
|
|
49
51
|
|
|
50
52
|
self.tasks_combo_box = ComboBox()
|
|
51
53
|
call_task_layout.addWidget(self.tasks_combo_box)
|
|
52
54
|
tasks = ok.gui.executor.get_all_tasks()
|
|
53
55
|
class_names = [obj.__class__.__name__ for obj in tasks]
|
|
54
56
|
self.tasks_combo_box.addItems(class_names)
|
|
57
|
+
self.tasks_combo_box.currentTextChanged.connect(self.task_changed)
|
|
55
58
|
if self.config.get('target_task') in class_names:
|
|
56
59
|
self.tasks_combo_box.setText(self.config.get('target_task'))
|
|
57
60
|
else:
|
|
58
61
|
self.tasks_combo_box.setCurrentIndex(0)
|
|
59
62
|
|
|
63
|
+
target_function_edit = SearchLineEdit(self)
|
|
64
|
+
target_function_edit.setPlaceholderText(self.tr('Type a stand name'))
|
|
65
|
+
target_function_edit.setClearButtonEnabled(True)
|
|
66
|
+
target_function_edit.setFixedWidth(230)
|
|
67
|
+
stands = [
|
|
68
|
+
"Star Platinum", "Hierophant Green",
|
|
69
|
+
"Made in Haven", "King Crimson",
|
|
70
|
+
"Silver Chariot", "Crazy diamond",
|
|
71
|
+
"Metallica", "Another One Bites The Dust",
|
|
72
|
+
"Heaven's Door", "Killer Queen",
|
|
73
|
+
"The Grateful Dead", "Stone Free",
|
|
74
|
+
"The World", "Sticky Fingers",
|
|
75
|
+
"Ozone Baby", "Love Love Deluxe",
|
|
76
|
+
"Hermit Purple", "Gold Experience",
|
|
77
|
+
"King Nothing", "Paper Moon King",
|
|
78
|
+
"Scary Monster", "Mandom",
|
|
79
|
+
"20th Century Boy", "Tusk Act 4",
|
|
80
|
+
"Ball Breaker", "Sex Pistols",
|
|
81
|
+
"D4C • Love Train", "Born This Way",
|
|
82
|
+
"SOFT & WET", "Paisley Park",
|
|
83
|
+
"Wonder of U", "Walking Heart",
|
|
84
|
+
"Cream Starter", "November Rain",
|
|
85
|
+
"Smooth Operators", "The Matte Kudasai"
|
|
86
|
+
]
|
|
87
|
+
self.completer = QCompleter(stands, target_function_edit)
|
|
88
|
+
self.completer.setCaseSensitivity(Qt.CaseInsensitive)
|
|
89
|
+
self.completer.setMaxVisibleItems(10)
|
|
90
|
+
target_function_edit.setCompleter(self.completer)
|
|
91
|
+
|
|
92
|
+
def task_changed(self, text):
|
|
93
|
+
self.config['target_task'] = text
|
|
94
|
+
|
|
60
95
|
def select_screenshot(self):
|
|
61
|
-
|
|
62
|
-
dialog.setFileMode(QFileDialog.ExistingFiles)
|
|
96
|
+
file_name, _ = QFileDialog.getOpenFileName(None, "Open Image", "", "Image Files (*.png *.jpg *.bmp)")
|
|
63
97
|
|
|
64
|
-
if
|
|
65
|
-
|
|
66
|
-
|
|
98
|
+
if file_name:
|
|
99
|
+
logger.info(f"Selected files: {file_name}")
|
|
100
|
+
self.select_screenshot_button.setText(file_name)
|
|
101
|
+
self.config['target_image'] = file_name
|
|
102
|
+
else:
|
|
103
|
+
self.select_screenshot_button.setText(self.tr("Drop or Select Screenshot"))
|
|
104
|
+
self.config['target_image'] = None
|
|
67
105
|
|
|
68
106
|
def capture(self):
|
|
69
107
|
if ok.gui.device_manager.capture_method is not None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ok-script
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.63
|
|
4
4
|
Summary: Automation with Computer Vision for Python
|
|
5
5
|
Home-page: https://github.com/ok-oldking/ok-script
|
|
6
6
|
Author: ok-oldking
|
|
@@ -22,6 +22,7 @@ Requires-Dist: psutil>=5.9.8
|
|
|
22
22
|
Requires-Dist: opencv-python>=4.9.0.80
|
|
23
23
|
Requires-Dist: ok-d3dshot>=0.1.5
|
|
24
24
|
Requires-Dist: py7zr>=0.21.0
|
|
25
|
+
Requires-Dist: wmi>=1.5.1
|
|
25
26
|
|
|
26
27
|
# ok-script
|
|
27
28
|
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="ok-script",
|
|
8
|
-
version="0.0.
|
|
8
|
+
version="0.0.63",
|
|
9
9
|
author="ok-oldking",
|
|
10
10
|
author_email="firedcto@gmail.com",
|
|
11
11
|
description="Automation with Computer Vision for Python",
|
|
@@ -30,7 +30,8 @@ setuptools.setup(
|
|
|
30
30
|
'psutil>=5.9.8',
|
|
31
31
|
'opencv-python>=4.9.0.80',
|
|
32
32
|
'ok-d3dshot>=0.1.5',
|
|
33
|
-
'py7zr>=0.21.0'
|
|
33
|
+
'py7zr>=0.21.0',
|
|
34
|
+
'wmi>=1.5.1'
|
|
34
35
|
],
|
|
35
36
|
python_requires='>=3.6',
|
|
36
37
|
)
|
|
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.61 → ok-script-0.0.63}/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
|
|
File without changes
|