Why can’t i get the window title of Microsoft Edge in Python 3 My coding environment: windows10(x86) python3.7 I want to use win32gui to get the active window title, but I met some problem when I opened Microsoft Edge. Here is my code: As my code said I want to get current active window title after each second. It’s all
Tag: windows-10
Interrupt (NOT prevent from starting) screensaver
I am trying to programmatically interrupt the screensaver by moving the cursor like this: And it fails with the message: This error only occurs if the screensaver is actively running. The reason for this request is that the computer is ONLY used for inputting data through a bluetooth device (via a Python program). When the BT device sends data to
With python’s selenium package, Why Chromedriver starts to display video instead of downloading when click on a tag?
Operating System: Windows 10, 64 bit Editor: VSCode 1.55 Python: 3.9.0 selenium: 3.141.0 I want Chromedriver to start downloading the video when I click on a tag. But instead, it opens a new tab and starts to display the video. The site that I’m trying to download from: https://www.aparat.com/v/9y8M5?playlist=683341 here is my code if needed: I will appreciate for any
Python: Why opening an XFA pdf file takes longer than a txt file of same size?
I am currently developping some python code to extract data from 14 000 pdfs (7 Mb per pdf). They are dynamic XFAs made from Adobe LiveCycle Designer 11.0 so they contain streams that needs to be decoded later (so there are some non-ascii characters if it makes any difference). My problem is that calling open() on those files takes around
Multiprocessing issue on Windows 10
I am trying to collect the size of homepages of a list of sites using multiprocessing. Following is the code : I am having a Windows 10 laptop with Python 3.9 running. I am not using venv. This code goes into a loop – executes 4 times and takes 4 times longer. What is the error here ? Can someone
ModuleNotFoundError: No module named ‘webdriver_manager’ error even after installing webdrivermanager
I’ve installed webdrivermanager on my windows-10 system Still whenever I am trying to use webdrivermanager I’m facing an error. Code Block: Console Output: Can someone help me, if I’m missing something? Incase it adds any value, I’m using sublimetext3 Answer Update (thanks to Vishal Kharde) The documentation now suggests: Solution: Install it like that: instead of pip install webdrivermanager. Requirements:
CMD opens Windows Store when I type ‘python’
Today when I tried to run simple code on Sublime Text 3, the following message appeared: Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 And when I type Python in CMD, it opens the Windows Store for me to download Python 3.7. This problem started today for no good reason. I didn’t change or download
Pyttsx isn’t showing installed languages on windows 10
I am trying to use pyttsx3 to say French text. However, only English is available. Following the advice of How to change the voice in pyttsx3?, I tried to install the French speech pack as explained here https://support.office.com/en-us/article/how-to-download-text-to-speech-languages-for-windows-10-d5a6b612-b3ae-423f-afa5-4f6caf1ec5d3. I restarted my computer and now have the French speech to text module installed and available under the “voice” menu in the
installing Gdal on Windows 10 with python 3.6.4: fatal error C1083: Cannot open include file: ‘cpl_port.h’
So I am trying to pip install gdal but got an error. So I am running the following: Python 3.6.4 anaconda distribution Windows 10 (x64) Microsoft Visual 2017 Redistribute both x64 and x86 (both installed by the vs builder tool) MS Visual was installed because of this error before Here is the trace log for the error: Any ideas how