Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Facing issue with pyautogui program after PC upgrade
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.
please show code
lot's similar kind of issues..Like this is previously working.

import pygetwindow
pygetwindow.getWindowsWithTitle('NetScaler Gateway')[0]
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\ 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\ 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
Yoriz wrote Jul-15-2019, 05:25 PM:
Please post all code, output and errors (in it's entirety) between their respective tags. I did it for you this time, Here are instructions on how to do it yourself next time.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Need to upgrade 3.4.8 to 3.7.2 dipankargp 3 257 Mar-06-2019, 01:17 PM
Last Post: snippsat
  PyAutoGUI run in background dikzak 2 617 Feb-23-2019, 12:23 PM
Last Post: dikzak
  pyautogui hotkey Rolfi05 0 289 Dec-27-2018, 04:28 PM
Last Post: Rolfi05
  Upgrade Setuptools on Python 3.4 Alexver 2 1,990 Sep-20-2018, 06:22 AM
Last Post: Alexver
  fail to upgrade pygobject jiapei100 0 459 Aug-16-2018, 10:32 AM
Last Post: jiapei100
  pip install --upgrade google-api-python-client errors ineuw 0 819 Jul-06-2018, 12:00 AM
Last Post: ineuw
  Program-launching script will not close until the program it launches is closed mmwatson 1 1,272 Jun-21-2017, 10:31 PM
Last Post: Ofnuts
  leap year program issue jashajmera 3 1,363 Feb-04-2017, 11:51 AM
Last Post: ichabod801
  Facing an issue in doing 'unittest.installHandler()' which will send 'stop' signal to hmarne 3 1,687 Jan-24-2017, 05:03 PM
Last Post: buran

Forum Jump:

Users browsing this thread: 1 Guest(s)