Skip to main content

Home/ Python Programming/ Group items tagged windows

Rss Feed Group items tagged

reckoner reckoner

Kill process based on window name (win32) - 0 views

  • Re: Kill process based on window name (win32) Thank you Roger. Your advice did the trick. For anyone interested, the basic code to terminate a process (politely) would be something like this (hwnd is retrieved using win32gui.EnumerateWindows): # Get the window's process id's t, p = win32process.GetWindowThreadProcessId(hwnd) # Ask window nicely to close win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0) # Allow some time for app to close time.sleep(10) # If app didn't close, force close try: handle = win32api.OpenProcess(win32con.PROCESS_TERMINATE, 0, p) if handle: win32api.TerminateProcess(handle,0) win32api.CloseHandle(handle) except: pass:
reckoner reckoner

How to get currently active window on Win32? - 0 views

  • On Sat, 15 Dec 2001 17:53:49 -0800 (PST), David Brady <daves_spam_dodging_account at yahoo.com> wrote : >More win32all questions... is it possible to get the >handle of the window that currently has the focus? >win32gui.GetActiveWindow() fails because I'm looking >for a window outside the process of my Python script. E:\>python ActivePython 2.1.1, build 212 (ActiveState) Python 2.1.1 (#20, Jul 26 2001, 11:38:51) [MSC 32 bit (Intel)] on win32 Type "copyright", "credits" or "license" for more information. >>> import win32gui >>> import time >>> for x in range(10): ... time.sleep(1) ... print x, win32gui.GetWindowText(win32gui.GetForegroundWindow()) ... 0 cmd - python 1 cmd - python 2 (Untitled) * SciTE 3 (Untitled) * SciTE 4 ActivePython Documentation 5 ActivePython Documentation 6 PythonWin 7 PythonWin 8 PythonWin
reckoner reckoner

Komodo Edit- Free the dragon! - Dynamic Tools for Dynamic Languages - 0 views

    • reckoner reckoner
       
      vi-bindings available customizable keystroke shortcuts non-integrated command window editor supports folding
  •  
    vi-bindings available customizable keystroke shortcuts non-integrated command window editor supports folding
reckoner reckoner

pyWinAuto - 0 views

  • pywinauto is a set of python modules to automate the Microsoft Windows GUI. At it's simplest it allows you to send mouse and keyboard actions to windows dialogs and controls.
pyodoo

Odoo : How to install odoo 14 on windows 10 - 1 views

https://pyodoo.com/article/how-install-odoo-14-windows-10-pycharm

python howto odoo tutorials

started by pyodoo on 11 Nov 20 no follow-up yet
reckoner reckoner

Siva Chandran P: TermEmulator 1.0 Released!!! - 0 views

  • The module comes with a demo application which is written in wxWidgets. The demo emulates any terminal program inside a text box. The following are the screenshots of emulating bash, emacs and vi using TermEmulator and the demo. successfully emulated(ran in a text box) bash, emacs, vi and some other terminal programs.
  • Provides callback for updating terminal screen
  •  
    I'm hoping this means that you can access the items in the terminal window via an external Python script..
reckoner reckoner

SendKeys - 0 views

  • SendKeys is a Python module for Windows (R) which can be used to send one or more keystrokes or keystroke combinations to the active window. SendKeys exports 1 function, SendKeys, and 1 exception, KeySe
reckoner reckoner

ShowMeDo - 0 views

  •  
    This series aims to get you up and running with Python on Windows XP. Here I have distilled for you the knowledge that I wanted when I first started with Python. During 1.5 hours of video I'll get you up and running with the right Python distribution, cod
reckoner reckoner

pyscripter - PyScripter Development Site - 0 views

  • PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is rather snappier than some of the other Python IDEs and provides an extensive blend of features that make it a productive Python development environment. 
  •  
    PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is r
reckoner reckoner

pyscripter - Google Code - 0 views

  • PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is rather snappier than some of the other Python IDEs and provides an extensive blend of features that make it a productive Python development environment.
  •  
    excellent windows-based IDE
reckoner reckoner

Rutherfurd.net: SendKeys - 0 views

  • SendKeys SendKeys(keys, pause = 0.05, with_spaces = False, with_tabs = False, with_newlines = False, turn_off_numlock = True) Parameters keys : str A string of keys. pause : float The number of seconds to wait between sending each key or key combination. with_spaces : bool Whether to treat spaces as {SPACE}. If False, spaces are ignored. with_tabs : bool Whether to treat tabs as {TAB}. If False, tabs are ignored. with_newlines : bool Whether to treat newlines as {ENTER}. If False, newlines are ignored. turn_off_numlock : bool Whether to turn off NUMLOCK before sending keys.
  • Key Code BACKSPACE {BACKSPACE}, {BS}, or {BKSP} BREAK {BREAK} CAPS LOCK {CAPSLOCK} or {CAP} DEL or DELETE {DELETE} or {DEL} DOWN ARROW {DOWN} END {END} ENTER {ENTER} or ~ ESC {ESC} HELP {HELP} HOME {HOME} INS or INSERT {INSERT} or {INS} LEFT ARROW {LEFT} NUM LOCK {NUMLOCK} PAGE DOWN {PGDN} PAGE UP {PGUP} PRINT SCREEN {PRTSC} RIGHT ARROW {RIGHT} SCROLL LOCK {SCROLLLOCK} SPACE BAR {PACE} TAB {TAB} UP ARROW {UP} F1 {F1} F2 {F2} F3 {F3} F4 {F4} F5 {F5} F6 {F6} F7 {F7} F8 {F8} F9 {F9} F10 {F10} F11 {F11} F12 {F12} F13 {F13} F14 {F14} F15 {F15} F16 {F16} F17 {F17} F18 {F18} F19 {F19} F20 {F20} F21 {F21} F22 {F22} F23 {F23} F24 {F24} Keypad add {ADD} Keypad subtract {SUBTRACT} Keypad multiply {MULTIPLY} Keypad divide {DIVIDE} Left Windows(R) {LWIN} Right Windows(R) {RWIN}
reckoner reckoner

PyInstaller - 0 views

  • PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux and Irix. Its main advantages over similar tools are that PyInstaller works with any version of Python since 1.5, it builds smaller executables thanks to transparent compression, it is multi-platform (so you can build one-file binaries also under Linux), and use the OS support to load the dynamic libraries, thus ensuring full compatibility. PyInstaller is an effort to rescue, maintain and further develop Gordon McMillan's Python Installer (now PyInstaller). Their official website is not longer available and the original package is not longer maintained. Believing that it is still far superior to py2exe, we have setup this site to continue its further development. Feel free to join us in the effort! Please consult our Roadmap to check our plans. Also usage reports are welcomed: let us know if PyInstaller works for you and how, or what problems you found in using it.
reckoner reckoner

ASPN : Python Cookbook : SendKeys from the Windows Script Host (WSH) COM - 0 views

  • import win32api import win32com.client shell = win32com.client.Dispatch("WScript.Shell") shell.Run("calc") win32api.Sleep(100) shell.AppActivate("Calculator") win32api.Sleep(100) shell.SendKeys("1{+}") win32api.Sleep(500) shell.SendKeys("2") win32api.Sleep(500) shell.SendKeys("~") # ~ is the same as {ENTER} win32api.Sleep(500) shell.SendKeys("*3") win32api.Sleep(500) shell.SendKeys("~") win32api.Sleep(2500)
Jac Londe

Pulover's Macro Creator - 0 views

  • Pulover’s Macro Creator is a Free Automation Tool and Script Generator. It is based on AutoHotkey language and provides users with multiple automation functions, as well as a built-in recorder. “Pulover’s Macro Creator is very handy as a means of automating various tasks without possessing  programming knowledge.” 
  • It’s more than a Macro Recorder! You can add not only keystrokes and mouse actions to your scripts but also manage windows, controls, files, strings, search images/pixels and even create If/Else Statements to control the flow of your macros! From simple repetitive tasks to complex automation projects, Pulover’s Macro Creator will save you hours of monotonous work. Everything with a friendly and intuitive interface.
reckoner reckoner

manipulating taskbar applications w/o mouse? - 0 views

  • The taskbar module is really experimental - and I think this is one of the first questions about it :)    tb.RunningApplication.Button(i).Click() - doesn't use ClickInput() 
reckoner reckoner

Pexpect - Noah.org - 0 views

  • Pexpect does not currently work on the standard Windows Python
1 - 20 of 30 Next ›
Showing 20 items per page