Bottom Page

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,
Quote
#2
please show code
Quote
#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
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.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Pyautogui script runs fine if split into two parts together it does not Bmart6969 1 83 Oct-07-2019, 10:53 PM
Last Post: Bmart6969
  pyautogui screenshotting region relative to image found on screen Bmart6969 3 185 Oct-05-2019, 06:20 PM
Last Post: Bmart6969
  pyautogui while loop Bmart6969 0 99 Oct-03-2019, 03:32 PM
Last Post: Bmart6969
  Can't run pyautogui on Mohave veromi22 4 241 Sep-30-2019, 12:41 AM
Last Post: veromi22
  Can't upgrade pip Josh_Python890 3 235 Sep-07-2019, 06:45 PM
Last Post: Josh_Python890
  Need to upgrade 3.4.8 to 3.7.2 dipankargp 3 394 Mar-06-2019, 01:17 PM
Last Post: snippsat
  PyAutoGUI run in background dikzak 2 1,112 Feb-23-2019, 12:23 PM
Last Post: dikzak
  pyautogui hotkey Rolfi05 0 437 Dec-27-2018, 04:28 PM
Last Post: Rolfi05
  Upgrade Setuptools on Python 3.4 Alexver 2 2,677 Sep-20-2018, 06:22 AM
Last Post: Alexver
  fail to upgrade pygobject jiapei100 0 584 Aug-16-2018, 10:32 AM
Last Post: jiapei100

Forum Jump:


Users browsing this thread: 1 Guest(s)