computer-use-ootb-internal 0.0.141__py3-none-any.whl → 0.0.143__py3-none-any.whl

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.
@@ -64,23 +64,29 @@ def run_preparation(state):
64
64
 
65
65
  # Calculate click coordinates based on a reference resolution (e.g., 1280x720)
66
66
  # TODO: Make these coordinates more robust or configurable
67
- click_x = int(screen_width * (1036 / 1280))
68
- click_y = int(screen_height * (500 / 720))
69
- log.info(f"Calculated click coordinates: ({click_x}, {click_y})")
67
+ click_x_1 = int(screen_width * (1036 / 1280))
68
+ click_y_1 = int(screen_height * (500 / 720))
69
+ log.info(f"Calculated click coordinates for starting the game: ({click_x_1}, {click_y_1})")
70
+ click_x_2 = int(screen_width * (1233 / 1280))
71
+ click_y_2 = int(screen_height * (30 / 720))
72
+ log.info(f"Calculated click coordinates for closing the browser warning: ({click_x_2}, {click_y_2})")
70
73
 
71
74
  # Disable failsafe before clicking
72
75
  pyautogui.FAILSAFE = False
73
76
  log.info("PyAutoGUI failsafe temporarily disabled.")
74
77
 
75
- log.info(f"Clicking at coordinates: ({click_x}, {click_y})")
76
- pyautogui.click(click_x, click_y)
78
+ log.info(f"Clicking at coordinates: ({click_x_1}, {click_y_1})")
79
+ pyautogui.click(click_x_1, click_y_1)
77
80
  time.sleep(2)
78
- pyautogui.click(click_x, click_y) # Double click?
81
+ pyautogui.click(click_x_1, click_y_1) # Double click?
79
82
 
80
83
  # Press F11 to attempt fullscreen
81
84
  log.info("Pressing F11 to enter fullscreen...")
82
85
  time.sleep(1) # Short delay before pressing F11
83
86
  pyautogui.press('f11')
87
+ time.sleep(1)
88
+ log.info(f"Clicking at coordinates: ({click_x_2}, {click_y_2})")
89
+ pyautogui.click(click_x_2, click_y_2)
84
90
 
85
91
  log.info("Star Rail preparation clicks completed.")
86
92
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.141
3
+ Version: 0.0.143
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
@@ -33,8 +33,8 @@ computer_use_ootb_internal/computer_use_demo/tools/edit.py,sha256=b0PwUitxckHCQq
33
33
  computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO44CEirL9hpGy3NmKbjfMpyeVmn8Y,1595
34
34
  computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
35
35
  computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
36
- computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=7nAoVp1BrT1UvZVamxcA9Xva3aehHsNhgZmYWXa5gC8,4168
37
- computer_use_ootb_internal-0.0.141.dist-info/METADATA,sha256=JB0SCD3ZcWw3PdzP6JEpGKLNN38XOpI2O6Yl6RfegdA,1048
38
- computer_use_ootb_internal-0.0.141.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
39
- computer_use_ootb_internal-0.0.141.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
40
- computer_use_ootb_internal-0.0.141.dist-info/RECORD,,
36
+ computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=DYtm6VC6mJnwVdzAk9xThrc0D6lz1qqcQ5iv50wG-84,4567
37
+ computer_use_ootb_internal-0.0.143.dist-info/METADATA,sha256=fY1g_A_UjOh3onZt0lRt1CZLh5440nnOuLTeoSbUi0w,1048
38
+ computer_use_ootb_internal-0.0.143.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
39
+ computer_use_ootb_internal-0.0.143.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
40
+ computer_use_ootb_internal-0.0.143.dist-info/RECORD,,