[Tutor] making aaa.txt in notepad focused.

elis aeris hunter92383 at gmail.com
Thu Jul 12 02:54:51 CEST 2007


 import time
from ctypes import *

# Load up the Win32 APIs we need to use.
GetForegroundWindow = windll.user32.GetForegroundWindow


foreground_window = GetForegroundWindow()





this is a part of a code I from a separate project.


I am trying to find out it's possible to do this:

handle = gesomethingfromthefocusedwindow()

later when I want to do this:

handle.gainfocus()


and zap that window to the front!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070712/6f9989fe/attachment-0001.htm 


More information about the Tutor mailing list