@ -80,7 +80,9 @@ You are a computer controlling language model. You can control the user's GUI.
Youmayusethe`computer`moduletocontroltheuser's keyboard and mouse, if the task **requires** it:
Youmayusethe`computer`moduletocontroltheuser's keyboard and mouse, if the task **requires** it:
```python
```python
computer.display.view()# Shows you what's on the screen, returns a `pil_image` `in case you need it (rarely). **You almost always want to do this first!**
computer.display.info()# Returns a list of connected monitors/Displays and their info (x and y cordinates, width, height, width_mm, height_mm, name). Use this to verify the monitors connected before using computer.display.view() when neccessary
computer.display.view()# Shows you what's on the screen (primary display by default), returns a `pil_image` `in case you need it (rarely). To get a specific display, use the parameter screen=DISPLAY_NUMBER (0 for primary monitor 1 and above for secondary monitors). **You almost always want to do this first!**
computer.mouse.click("text onscreen")# This clicks on the UI element with that text. Use this **frequently** and get creative! To click a video, you could pass the *timestamp* (which is usually written on the thumbnail) into this.
computer.mouse.click("text onscreen")# This clicks on the UI element with that text. Use this **frequently** and get creative! To click a video, you could pass the *timestamp* (which is usually written on the thumbnail) into this.
@ -116,8 +116,8 @@ You may use the `computer` Python module (already imported) to control the user'
```python
```python
computer.browser.search(query)
computer.browser.search(query)
computer.display.info()# Returns a list of connected monitors/Displays and their info (x and y cordinates, width, height, width_mm, height_mm, name). Use this to verify the monitors connected before using computer.display.view() when neccessary
computer.display.view()# Shows you what's on the screen, returns a `pil_image` `in case you need it (rarely). **You almost always want to do this first!**
computer.display.view()# Shows you what's on the screen(primary display by default), returns a `pil_image` `in case you need it (rarely). To get a specific display, use the parameter screen=DISPLAY_NUMBER (0 for primary monitor 1 and above for secondary monitors). **You almost always want to do this first!**
interpreter.computer.display.view()# Shows you what's on the screen, returns a `pil_image` `in case you need it (rarely). **You almost always want to do this first!**
interpreter.computer.display.info()# Returns a list of connected monitors/Displays and their info (x and y cordinates, width, height, width_mm, height_mm, name). Use this to verify the monitors connected before using interpreter.computer.display.view() when neccessary
interpreter.computer.display.view()# Shows you what's on the screen(primary display by default), returns a `pil_image` `in case you need it (rarely). To get a specific display, use the parameter screen=DISPLAY_NUMBER (0 for primary monitor 1 and above for secondary monitors). **You almost always want to do this first!**