Questions tagged [pywin]

pywin is a python module, lightweight launcher and switcher for Windows command line and MSYS/MINGW32

pywin is a python module, lightweight launcher and switcher for Windows command line and MSYS/MINGW32.

52 questions
1
vote
1 answer

How can I check with pywin or win32com.client in python if a certain task is running in task manager?

I have to say for example the task firefox.exe running in the task manager. With python`s win32com.client I want to check if firefox is open give a message and if its not open give another message or open it or something else I tried printing all…
1
vote
0 answers

Installation of pywin package returns error 403

I tried to install pywin by (easy_install pywin) and (pip install pywin). In both cases I got an Error 403, SSL is required. Tried to google but nothing found. What could you recommend, please?
Tim
  • 11
  • 3
1
vote
1 answer

how to update windowText in python multiple times?

I have been searching for code to help solve this problem. here is the best answer I could find below. import win32api import win32con import win32gui import time import threading #Code example modified from: #Christophe Keller #Hello World in…
Steed
  • 61
  • 9
1
vote
1 answer

Python keylogger

I was trying to make a keylogger in pyhton and have stumbled upon this piece of code on numerous blogs: file_log='F:\\test\\log.txt' def onKeyboardEvent(event): logging.basicConfig(filename=file_log,level=logging.DEBUG,format='%(message)s') …
1
vote
1 answer

Unable to establish an HTTP or HTTPS remoting session

I am enabling windows node for ansible. For this I am enabling http and https remote session in windows 7 using below command. @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object…
sri
  • 131
  • 1
  • 3
  • 10
1
vote
1 answer

import win32ui in python 3.6

I downloaded pywin32 from the website. I've got those imports: from pywin32 import win32gui from pywin32 import win32ui from pywin32 import win32con It doesn't work at all, but the first import works if i replace pywin32 with win32. Like this from…
Weizen
  • 263
  • 2
  • 6
  • 17
1
vote
1 answer

How to set value in text box using pywinauto?

I am new to pywinauto and I don't know how to use control identifiers. How would I set No. of loops: to 99999?
VIRAJ SHIRSAT
  • 41
  • 2
  • 2
  • 5
1
vote
1 answer

Not writing to log file when using pywinauto

I am trying to automate some Windows action using pywinauto, but when I import pywinauto, logging to the log file stops working. Before importing - the code is writing the log the file, as in the following example: import…
Or B
  • 1,675
  • 5
  • 20
  • 41
1
vote
1 answer

Install of .whl python file not working

I just installed Python 2.7.12 (32bit) on Windows 10 (64bit) workstation. Now, I am trying to install pywin32-220.1-cp27-cp27m-win32.whl from this Python Library Website. Attempted to install by pip install pywin32-220.1-cp27-cp27m-win32.whl And…
Rhonda
  • 1,661
  • 5
  • 31
  • 65
1
vote
0 answers

Access existing IE11 with pywin32

I am trying my hand at automation, currently playing around with pywin32, but I was wondering if it is possible to interact with a window of Internet Explorer 11 that I manually opened. I ask because I am working within a specific intranet and think…
computhomas
  • 35
  • 1
  • 5
1
vote
1 answer

Get Application Name from .exe file in python

I am getting both the currently active window title and exe filepath with the code below hwnd = win32gui.GetForegroundWindow() _, pid = win32process.GetWindowThreadProcessId(hwnd) if hwnd != 0 or pid != 0: try: hndl = …
user2145312
  • 896
  • 3
  • 10
  • 33
1
vote
2 answers

Start ClickOnce application through CreateProcess

I'm trying to automate a series of GUI controls in a ClickOnce application, however I'm having problems to launch the application through my automation code. What I'd like to do is launch the application with CreateProcess(), so I can have a window…
Bernardo
  • 119
  • 1
  • 10
1
vote
1 answer

How to check a file saving is complete using Python?

I am trying to automate a downloading process. In this I want to know, whether a particular file's save is completed or not. The scenario is like this. Open a site address using either Chrome or Firefox (any browser) Save the page to disk using…
user342898
  • 13
  • 3
1
vote
0 answers

py2exe and 3rd party modules deployment

My python app loads other py or pyc files and execute them. I am shipping my app as executable (bundled as single or multiple files - does not matter). I want my app to support adaptive installation. For example: If I ship my app (bundled exe)…
Humble Learner
  • 791
  • 12
  • 26
0
votes
0 answers

Pywinrm is connecting to remote host but not to the underlying SQL server .Says Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

My requirement is to run an EXE which is at host "abc". The EXE also communicates with downstream SQL server. pywinrm version is 0.4.3. import winrm s = winrm.Session("abc", auth=("username","passowrd"), transport="ntlm") r =…
Deepak Kothari
  • 1,601
  • 24
  • 31