pywin

Why can't I find any pywin32 documentation/resources

风流意气都作罢 提交于 2019-12-29 10:21:55
问题 I cannot find pywin32 documentation or even a little synopsis of what the module is (I am aware its for win32 API stuff). Is there any pywin32 documentation or resources? Maybe some examples? 回答1: The PyWin32 installation includes a .chm help file at [Pythonpath]\Lib\site-packages\PyWin32.chm . The same info is online at http://timgolden.me.uk/pywin32-docs/index.html And as P2bM states, you can also look at ActiveState's PyWin32 documentation, including a list of modules and a list of objects

How to set value in text box using pywinauto?

不想你离开。 提交于 2019-12-23 01:05:13
问题 I am new to pywinauto and I don't know how to use control identifiers. How would I set No. of loops: to 99999? 回答1: For dynamic edit box you can use label text as a part of identifier. Examples: app.WindowName.No__of_loops_Edit.set_text('99999') # or app.WindowName['No. of loops:Edit'].set_text('99999') # for more realistic typing char by char: app.WindowName['No. of loops:Edit'].type_keys('99999') It's described in more details in the Getting Started Guide (section "How to know magic

Make a window transparent using Win32?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 19:24:18
问题 Using Python Win32 extensions, how do you make an arbitrary window on Windows XP transparent? 回答1: SetLayeredWindowsAttributes example: import win32gui import win32con import winxpgui import win32api import subprocess import time subprocess.Popen("notepad.exe", shell=True) time.sleep(1) hwnd = win32gui.FindWindow(None, "New file - metapad") ## The caption of my empty notepad (MetaPad) win32gui.SetWindowLong (hwnd, win32con.GWL_EXSTYLE, win32gui.GetWindowLong (hwnd, win32con.GWL_EXSTYLE ) |

How to start IDLE (Python editor) without using the shortcut on Windows Vista?

自古美人都是妖i 提交于 2019-12-17 15:47:26
问题 I'm trying to teach Komodo to fire up IDLE when I hit the right keystrokes. I can use the exact path of the shortcut in start menu in the Windows Explorer location bar to launch IDLE so I was hoping Komodo would be able to use it as well. But, giving this path to Komodo causes it to say that 1 is returned. This appears to be a failure as IDLE doesn't start up. I thought I'd avoid the shortcut and just use the exact path. I go to the start menu, find the shortcut for IDLE, right click to look

Make a window transparent using Win32?

扶醉桌前 提交于 2019-11-28 10:27:02
Using Python Win32 extensions, how do you make an arbitrary window on Windows XP transparent? PabloG SetLayeredWindowsAttributes example: import win32gui import win32con import winxpgui import win32api import subprocess import time subprocess.Popen("notepad.exe", shell=True) time.sleep(1) hwnd = win32gui.FindWindow(None, "New file - metapad") ## The caption of my empty notepad (MetaPad) win32gui.SetWindowLong (hwnd, win32con.GWL_EXSTYLE, win32gui.GetWindowLong (hwnd, win32con.GWL_EXSTYLE ) | win32con.WS_EX_LAYERED ) winxpgui.SetLayeredWindowAttributes(hwnd, win32api.RGB(0,0,0), 180, win32con

How to start IDLE (Python editor) without using the shortcut on Windows Vista?

安稳与你 提交于 2019-11-27 19:58:26
I'm trying to teach Komodo to fire up IDLE when I hit the right keystrokes. I can use the exact path of the shortcut in start menu in the Windows Explorer location bar to launch IDLE so I was hoping Komodo would be able to use it as well. But, giving this path to Komodo causes it to say that 1 is returned. This appears to be a failure as IDLE doesn't start up. I thought I'd avoid the shortcut and just use the exact path. I go to the start menu, find the shortcut for IDLE, right click to look at the properties. The target is grayed out, but says "Python 2.5.2". The "Start in" is set to, "C: