Re: [python-win32] Detecting when a system has multiple monitors (desktops)

2010-08-24 Thread reckoner
Tony: All of this is handled in the dragonfly package: http://code.google.com/p/dragonfly/ Note that you do not need speech recognition in order to use it. In particular, look at from dragonfly import Window, monitors and the window.py file in the distribution. Good luck! On 8/24/2

[python-win32] make a window transparent using win32?

2010-12-28 Thread Reckoner
Using Python win32 extensions, how do you make an arbitrary window on winXP transparent? Thanks! ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] make a window transparent using win32?

2010-12-30 Thread reckoner
ously set using SetWindowLong() are indeed set? Thanks! On 12/28/2010 1:44 PM, Tim Roberts wrote: Reckoner wrote: Using Python win32 extensions, how do you make an arbitrary window on winXP transparent? I'll assume you already know how to find the window handle of your victim window. The key

[python-win32] Push back window (i.e. change its z-order)

2010-12-30 Thread reckoner
Given a window handle with (x,y,dx,dy) rectangle, I'm trying to push the window back (in other words, change its z-order) using the following: win32gui.SetWindowPos(handle, win32con.HWND_BOTTOM, x, y, dx, dy, win32con.SWP_NOMOVE+win32con.SWP_NOSIZE+win32con.SWP_NOREPOSITION) but it's not wo

[python-win32] Find containing window given a control handle

2011-02-01 Thread Reckoner
Hi, Given the handle of a text field or button embedded in some window, how can I find the parent window that contains the handle? Right now, I'm exhaustively going through every visible window and matching every child handle. Perhaps there is a better way? Thanks! __

[python-win32] Automation triggered based on image in window?

2011-02-18 Thread reckoner
I'm trying to do some automation using Python and pywin. Is there a way to trigger when a particular image is shown? In other words, I am trying to get the functionality that is described here: http://www.vtaskstudio.com/images/screenshot_recognition.png and likewise here: http://www.au

[python-win32] Using Flexible Win32 message pump to monitor window open/close for all application?

2011-03-30 Thread reckoner
Hi, I have been looking at the following recipe: Recipe 82236: Flexible Win32 message pump using MsgWaitForMultipleObjects (Python) http://code.activestate.com/recipes/82236-flexible-win32-message-pump-using-msgwaitformultip Which is listed in the Python cookbook, second edition. Is it possib

Re: [python-win32] Using Flexible Win32 message pump to monitor window open/close for all application?

2011-03-31 Thread reckoner
t-Type: text/plain; charset="ISO-8859-1" reckoner wrote: Which is listed in the Python cookbook, second edition. Is it possible to use this to monitor the open/close of different windows? Basically, I would like to trigger an action for a specific window or handle when that window class

[python-win32] Access Most Recently Used (MRU) entries ?

2011-06-17 Thread reckoner
Is it possible to get access to the Most Recently Used (MRU) list in windows. This is where Windows keeps a list of the most recently opened documents and programs. By the way, I'm on Windows XP. Thanks! ___ python-win32 mailing list python-win32@py

Re: [python-win32] Access Most Recently Used (MRU) entries ?

2011-06-18 Thread reckoner
On 17/06/2011 14:19, reckoner wrote: Depends what you need to do. To add in item, use the SHAddToRecentDocs API from the shell module: import sys from win32com.shell import shell, shellcon shell.SHAddToRecentDocs ( shellcon.SHARD_PATHW, sys.executable ) To access its contents (in

[python-win32] Multiple versions of Python on same machine with regsvr32.exe PYDs

2011-07-13 Thread reckoner
Hi, I have been researching this for a couple of days now, and although virtualenv seems like the answer, I have been reading about problems with applications that require specific versions of Python in the registry so it can find corresponding PYD and DLL files. This means that it is more co

Re: [python-win32] Multiple versions of Python on same machine with regsvr32.exe PYDs

2011-07-18 Thread reckoner
stry stuff is confusing to me and I don't imagine it will be so simple as simply changing the Python path. Thanks in advance and for all your great work bringing Python to us Windows users. On 7/14/2011 9:24 PM, Mark Hammond wrote: On 14/07/2011 4:39 AM, reckoner wrote: Hi, I have b

[python-win32] Get executables corresponding to system tray icons?

2011-09-17 Thread reckoner
Hi, Is there a way to use Python to get a list of all the icons in the system tray (lower right hand corner) and their associated processes and executables? Here is a thread on how to do this using AHK: http://www.autohotkey.com/forum/topic17314.html but it relies heavily on AHK, and the

[python-win32] How to wait for context menu (i.e. right-click menu) pop-up?

2011-10-26 Thread reckoner
Hi, A script needs something on the context menu ( obtained either by right-click or by appskey ). The trouble is that sometimes the pop-up context menu takes an unpredictable time to load, so I need a way of detecting whether or not the context menu is ready for subsequent actions before the

[python-win32] When closing windows, how to handle "save changes?" dialogs?

2012-03-05 Thread reckoner
When closing windows, I need to somehow handle the case when the window I am trying to close spawns a child dialog window that asks whether I want to "save changes" or something like that . The trouble is that the dialog could be different for every kind of window I am trying to close and I

[python-win32] Need workaround for error: (299, 'GetModuleFileNameEx' with win32process

2012-03-21 Thread reckoner
when using win32process, I get the following error when I try this on a Windows XP 64-bit machine: error: (299, 'GetModuleFileNameEx', 'Only part of a ReadProcessMemory or WriteProcessMemory request was completed.') I don't get this error on a Windows XP 32-bit machine. After some drilling

[python-win32] wait for new clipboard data?

2012-03-31 Thread reckoner
I'm doing some automation using Python and I'm looking for something similar to Autohotkey's Clipwait function. see here: http://www.autohotkey.com/docs/commands/ClipWait.htm This basically waits for new clipboard data after a previous copy operation (like ctrl+c). Thanks!

[python-win32] PumpMessages in main thread called by embedded Python causes crash

2012-04-28 Thread reckoner
I have written some code that catches windows events that also includes the usual PumpMessages, and all of this works fine when I run it from the Python interpreter (Python version 2.6). However, when a separate application that has Python embedded calls the same code, the calling applicatio

Re: [python-win32] PumpMessages in main thread called by embedded Python causes crash

2012-04-29 Thread reckoner
that setup from happening so one of their handlers will crash. Does that app work OK if you don't call PumpMessages? If so, a work around might be to check if you have a console, and if you don't, assume some other event loop must be running. Mark On 29/04/2012 2:21 AM, reckoner wrote:

Re: [python-win32] PumpMessages in main thread called by embedded Python causes crash

2012-04-29 Thread reckoner
On 4/29/2012 3:48 PM, Mark Hammond wrote: On 30/04/2012 1:07 AM, reckoner wrote: Thanks for your reply. Yes, the app works fine if I don't PumpMessages in my own code. There is no console that the application fires up when it runs the embedded Python code. In this situation, how do

Re: [python-win32] Sending Keystrokes to Active Windows (leegold)

2013-07-11 Thread reckoner
Use dragonfly: https://code.google.com/p/dragonfly/ Then, (FocusWindow(title='firefox')+Key('c-t') ).execute() will open a new tab in firefox. good luck! ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listi

[python-win32] Programmatically turn off mouse auto-positioning

2014-02-04 Thread reckoner
Hi, In the control panel, under mouse settings, there is a checkbox to automatically move the mouse to the "default button in a dialog box". Is there a way to programmatically turn this off/on using Python? I'm referring to windows 7/8. Thanks! _

Re: [python-win32] Programmatically turn off mouse auto-positioning

2014-02-07 Thread reckoner
Am 04.02.2014 19:51, schrieb reckoner: > Hi, > > In the control panel, under mouse settings, there is a checkbox to > automatically move the mouse to the "default button in a dialog box". > > Is there a way to programmatically turn this off/on using Python? I&#

Re: [python-win32] getting Windows key codes

2015-03-31 Thread reckoner
The easiest thing to do is follow the instructions here: http://ahkscript.org/docs/KeyList.htm#SpecialKeys And use the keyboard hook to report the keystrokes. Then, you can use https://github.com/t4ngo/dragonfly To do all the key re-mapping. by the way, the dragonfly source code has all

Re: [python-win32] Figuring out why a window is losing focus

2016-02-08 Thread reckoner
Where can I safely download this Spy program you are all talking about? Thanks! On 2/8/2016 9:00 AM, python-win32-requ...@python.org wrote: Re: Figuring out why a window is losing focus ___ python-win32 mailing list python-win32@python.org https:/

[python-win32] Programmatically switch desktops in windows 10?

2017-04-16 Thread reckoner
Windows 10 has multiple desktops built-in. Is it it possible to programmatically switch between desktops? How about programmatically moving an active window between desktops? Thanks! ___ python-win32 mailing list python-win32@python.org https://mail.