pywin32 Questions
7
I am working to make a small keylogger with Python, by using the pyHook, pythoncom and Pywin32 modules. Here is my code:
import pyHook, pythoncom, sys, logging
file_log = 'C:\\important\\log.txt'...
1
Here is the code
# set mouse position to absolute position 674, 499
win32api.SetCursorPos((674, 499))
# add 100 to current x position which will be 674 + 100 = 774
# will not change y position it w...
1
Is there a way to get the z-order of windows using the Python Windows Extensions? Or, alternatively, is there a way to do this using another module? The usual way to do this is with GetTopWindow an...
4
How do I get the start/base address of a process? Per example Solitaire.exe (solitaire.exe+BAFA8)
#-*- coding: utf-8 -*-
import ctypes, win32ui, win32process
PROCESS_ALL_ACCESS = 0x1F0FFF
HWND =...
4
Solved
Is there any efficient way using any Python module like PyWind32 to interact with already existing Native OS dialog boxes like 'Save As' boxes?
I tried searching on Google but no help.
EDIT:
1: ...
1
Solved
I just updated my python from 3.7 to 3.10 and now there are import error's.
While I just needed for import win32gui turn into import win32.win32gui as suggested here. There seems no other syntax fo...
Barton asked 31/12, 2021 at 15:29
3
Solved
When you do Copy (CTRL+C) on a file, then in some programs (example: it works in the Windows Explorer address bar, also with Everything indexing software), when doing Paste (CTRL+V), the filename o...
9
Solved
I'm trying to use the win32gui module included with pywin32 but I can't get it working.
I have downloaded it, built it and everything seem to be located under site-packages, I've found win32gui.py...
6
I am attempting to create a .exe on Windows 7 from a python3 script using cx_freeze. the Script involves using pywin32 to manipulate Excel files. I can build the .exe successfully from my setup.py ...
Chancroid asked 26/7, 2013 at 21:9
1
Solved
I am trying to change the user of a print job in the queue, as I want to create it on a service account but send the job to another users follow-me printing queue. I'm using the win32 module in pyt...
3
I have created a rule in Outlook to move all incoming messages from a particular sender to a subfolder in my Inbox.Like -
Inbox
- Subfolder
I wrote a piece of code
import win32com.client
outl...
3
I'm using Word 2013 to automatically create a report as a docx and then save it as a pdf format.
But when I call the function SaveAs2(), the script pop out the "save as" windows and throws this e...
3
I tried to convert .xls to .xlsx
this is my code:
import os
address = os.getcwd()
import win32com.client as win32
fname = address + "\\Bundles.xls"
fname2 = address + "\\searchresults.xls"
exce...
Milly asked 11/12, 2019 at 0:56
4
while my script is updating one excel same time if i am going to do any other work manually with another excel error occurs i am using dispatch
from win32com.client import Dispatch
excel = Disp...
12
Solved
When running python26 under windows OS (64bits).....
I have got errors like:
import win32api" error in Python 2.6: pywintypes26.dll
or
pythoncom26.dll missing
ImportError: DLL load failed: The ...
3
Solved
I am trying to get a Flask app to run as a Service in Windows. I have already tried to implement a solution as suggested here and here without success.
I have a simple folder with just two files:
...
Nineteen asked 14/4, 2019 at 15:48
5
Solved
This isn't as malicious as it sounds, I want to get the current size of their windows, not look at what is in them. The purpose is to figure out that if every other window is fullscreen then I shou...
6
Solved
While using PyInstaller (dev version 4.0.dev0+8196c57ab), produced an OSError: [WinError 2] 'The system cannot find the file specified.'
Python version: 3.7
GUI: PySide2 5.13.0
Other packages: lx...
Swamp asked 14/9, 2019 at 4:25
4
Solved
I am not an expert and I am trying to show a rectangle on screen which follows mouse movements from a settle starting point, just as when you select something in word or paint. I came with this cod...
6
Solved
I am looking to figure out both the current Battery Capacity and the Design Capacity.
So far what I could get to work is using the Win32_Battery() class which doesn't give all the information I ne...
2
I have a data provider who provides a DDE link (that I can use in Excel) and an exe file that runs in the background which serves as a Data Manager (not sure if this is what called as a DDE Server)...
Hod asked 8/3, 2015 at 20:24
2
i get the following error
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
WARNING: You are usin...
Fina asked 2/6, 2020 at 18:17
2
Solved
Usually I use the following code to open an excel workbook in the background:
import xlwings as xw
app = xw.App(visible=False)
wb = xw.Book(filename)
sheet = wb.sheets['sheet1']
I sometimes do no...
2
I'm trying to get events from outlook(2013) by using the Python win32com library, I have managed to do this, however I have not been able to get their status (Accepted, tentative, declined). It's i...
Mosby asked 11/8, 2016 at 15:1
1
ahk code:
ComObjCreate("{C2474B5A-5E9D-484D-BDFD-20A100183426}")
this works in AutoHotkeyU32.exe, but not in AutoHotkeyU64.exe
error message is: the specified module could not be found.
f...
Heaver asked 20/1, 2021 at 3:17
© 2022 - 2024 — McMap. All rights reserved.