feat: enhance swipe and back navigation logic
- Adjusted configuration for reset after swipes to 10 seconds and added action to go back. - Updated flow control to skip back action if a recent reset was triggered within 5 seconds. - Implemented a mechanism to enable back navigation when consecutive misses reach a threshold. - Added GUI options to enable or disable back navigation on misses, ensuring consistency with user settings. - Introduced new diagnostic tools for runtime flag checks and screenshot diagnostics. - Created PowerShell scripts for restoring Start Menu shortcuts and performing system health checks. - Added tests for swipe operations and back navigation to validate new logic.
This commit is contained in:
1 parent
0c3a763d63
commit
dcded08796
19 files changed
+936
-22
No files matched your search
@@ -0,0 +1,19 @@
|
||||
from Underlying_Operations import underlying_operations
|
||||
import time
|
||||
|
||||
op = underlying_operations()
|
||||
# try to trigger several screenshots
|
||||
for i in range(8):
|
||||
print(f"Triggering screenshot #{i+1}")
|
||||
ok = op.get_screenshot(device_id="DUMMY_DEVICE", path="pic", use_service=False)
|
||||
print("result:", ok)
|
||||
time.sleep(0.6)
|
||||
|
||||
print('\n--- Log snippet ---')
|
||||
try:
|
||||
with open('logs/screenshot_calls.log', 'r', encoding='utf-8') as f:
|
||||
lines = f.read().splitlines()
|
||||
for ln in lines[-120:]:
|
||||
print(ln)
|
||||
except Exception as e:
|
||||
print('Could not read log:', e)
|
||||
Reference in new issue
Block a user