Python Forum
Facing issue with pyautogui program after PC upgrade
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facing issue with pyautogui program after PC upgrade
#1
Hi All,

I have done one surface automation program & it's was working fine. but after upgrade/window installation including Anaconda new version. I am facing many issues like ctypes.ArgumentError: argument 1: <class 'TypeError'>:. even for the simple mouse input function like pyautogui.position()
Not sure the reason, can you please support on this.
Thanks,
Reply
#2
please show code
Reply
#3
lot's similar kind of issues..Like this is previously working.

CODE:-
import pygetwindow
pygetwindow.getWindowsWithTitle('NetScaler Gateway')[0]
---------------------------------------------------------------------------
Error:
ArgumentError Traceback (most recent call last) <ipython-input-14-53504b15fe9f> in <module> 1 import pygetwindow ----> 2 gw =pygetwindow.getWindowsWithTitle('NetScaler Gateway')[0] ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pygetwindow\_pygetwindow_win.py in getWindowsWithTitle(title) 170 """Returns a list of Window objects that substring match the title. 171 """ --> 172 hWndsAndTitles = _getAllTitles() 173 windowObjs = [] 174 for hWnd, winTitle in hWndsAndTitles: ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pygetwindow\_pygetwindow_win.py in _getAllTitles() 62 titles.append((hWnd, buff.value)) 63 return True ---> 64 enumWindows(enumWindowsProc(foreach_window), 0) 65 66 return titles ArgumentError: argument 1: <class 'TypeError'>: expected WinFunctionType instance instead of WinFunctionType
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Facing issue in python regex newline match Shr 6 1,268 Oct-25-2023, 09:42 AM
Last Post: Shr
  Pyautogui, İmagesearch, Moving target Beyazx 0 582 Jun-27-2023, 08:47 PM
Last Post: Beyazx
  Python Version upgrade nitinkukreja 1 894 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Facing problem with Pycharm - Not getting the expected output amortal03 1 854 Sep-09-2022, 05:44 PM
Last Post: Yoriz
  Upgrade makes Code Error kucingkembar 6 3,084 Jul-28-2022, 06:44 PM
Last Post: kucingkembar
  PyautoGUI- How to use If - Else with pyautogui.locateCenterOnScreen Tiel 3 8,300 Jun-27-2022, 02:00 PM
Last Post: DeaD_EyE
  pip doesn't work after Python upgrade Pavel_47 10 4,178 May-30-2022, 03:31 PM
Last Post: bowlofred
  pyautogui.locateOnScreen producing error dude8074 6 3,808 Apr-17-2022, 05:05 PM
Last Post: bowlofred
  Facing Problem while opening a file through command prompt vlearner 4 1,899 Jan-30-2022, 08:10 AM
Last Post: snippsat
  Issue with program not passing to other elif condition Abdirahman 6 2,094 Nov-21-2021, 07:04 AM
Last Post: Abdirahman

Forum Jump:

User Panel Messages

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