Python Forum
pyautogui screenshotting region relative to image found on screen
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyautogui screenshotting region relative to image found on screen
#2
got it to modify the values of a found images region however it is still giving me an error this is what i have and the error.
print(foodi)

foodil = numpy.array(foodi)
print(foodil.astype(int)[[0]+32,[1]+7,[2]+30,[3]-10])
Error:
Traceback (most recent call last): (1047, 45, 36, 35) File "C:/Users/brady/PycharmProjects/Bot/scratch.py", line 21, in <module> (1079, 52, 66, 25) print(foodil.astype(int)[[0]+32,[1]+7,[2]+30,[3]-10]) TypeError: can only concatenate list (not "int") to list Process finished with exit code 1
Reply


Messages In This Thread
RE: pyautogui screenshotting region relative to image found on screen - by Bmart6969 - Oct-05-2019, 02:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pyautogui, İmagesearch, Moving target Beyazx 0 597 Jun-27-2023, 08:47 PM
Last Post: Beyazx
  Using locationtagger to extract locations found in a specific country/region lord_of_cinder 1 1,289 Oct-04-2022, 12:46 AM
Last Post: Larz60+
  PyautoGUI- How to use If - Else with pyautogui.locateCenterOnScreen Tiel 3 8,414 Jun-27-2022, 02:00 PM
Last Post: DeaD_EyE
  pyautogui.locateOnScreen producing error dude8074 6 3,868 Apr-17-2022, 05:05 PM
Last Post: bowlofred
  How to reference the relative directory when creating a photoimage kenwatts275 3 6,410 May-18-2021, 07:22 PM
Last Post: menator01
  how to take a screnshot by Pyautogui automatically and randomly rachidel07 0 3,567 Feb-03-2021, 01:16 PM
Last Post: rachidel07
Sad problem with Pyautogui rachidel07 1 2,486 Jan-27-2021, 05:43 PM
Last Post: nilamo
  How can I found how many numbers are there in a Collatz Sequence that I found? cananb 2 2,559 Nov-23-2020, 05:15 PM
Last Post: cananb
  Add new line after finding last string in a region Nigel11 1 1,894 Aug-08-2020, 10:00 PM
Last Post: Larz60+
  pyautogui with a display emulator? gumby4231 0 2,613 Jul-30-2020, 02:46 PM
Last Post: gumby4231

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020