Hi,
I am trying to develop an application which would mainly do the
following 2 things . I would like to know how it can be achieved and
also the libraries needed for it .
i) active window tracking
In this substate, the application records the title bar
contents of the active/foreground window
and how long, in seconds, that that window is active/in
the foreground. If the same window
remains in the foreground but the title bar changes (as
happens with a web browser application) then a new record is created
for each new window title. If a window title is recorded that
was previously recorded (on the same date -- see "Data
Structures" info in section 4.4),
then the time should be added to the previously recorded
active time for that window title.
-- Example --
1) User clicks "Start" -app enters "recording" state.
2) User opens window titled "Window 1" -app looks for
any prior records for "Window 1"
on current date. Finding none, it creates a new
record.
3) User opens another window titled "Window 2" -app
records total time spent in "Window 1", then looks for any prior
records for "Window 2" on current date. Finding none,
it creates a new record.
4) User re-raises/re-activates previous window "Window
1" -app records total time spent
in "Window 2", then looks for any prior records for
"Window 1" on current date. It finds
the record created earlier, so no new record is
created.
5) User clicks "Stop" (or "Exit") -the app adds the
time just spent in "Window 1" to the
previously recorded time spent in "Window 1". App
then returns to "ready" state.
ii) idle
In this substate, the app has detected that the computer's
screensaver is active and no time
will be recorded for the active/foreground window. This
substate is entered automatically
(from the active window tracking state) when the
screensaver activates and exited
automatically (returning to the active window tracking
state) when the screensaver is
deactivated. Note that this substate should only be
entered if the app was in the active
window tracking state when the screensaver activated.
Awaiting Your Reply,
Thank You ,
Raja. 2 1826
On 3 Dec 2006 04:14:08 -0800, Raja <ro********@gma il.comwrote:
Hi,
I am trying to develop an application which would mainly do the
following 2 things . I would like to know how it can be achieved and
also the libraries needed for it .
i) active window tracking
In this substate, the application records the title bar
contents of the active/foreground window
and how long, in seconds, that that window is active/in
the foreground. If the same window
remains in the foreground but the title bar changes (as
happens with a web browser application) then a new record is created
for each new window title. If a window title is recorded that
was previously recorded (on the same date -- see "Data
Structures" info in section 4.4),
then the time should be added to the previously recorded
active time for that window title.
-- Example --
1) User clicks "Start" -app enters "recording" state.
2) User opens window titled "Window 1" -app looks for
any prior records for "Window 1"
on current date. Finding none, it creates a new
record.
3) User opens another window titled "Window 2" -app
records total time spent in "Window 1", then looks for any prior
records for "Window 2" on current date. Finding none,
it creates a new record.
4) User re-raises/re-activates previous window "Window
1" -app records total time spent
in "Window 2", then looks for any prior records for
"Window 1" on current date. It finds
the record created earlier, so no new record is
created.
5) User clicks "Stop" (or "Exit") -the app adds the
time just spent in "Window 1" to the
previously recorded time spent in "Window 1". App
then returns to "ready" state.
ii) idle
In this substate, the app has detected that the computer's
screensaver is active and no time
will be recorded for the active/foreground window. This
substate is entered automatically
(from the active window tracking state) when the
screensaver activates and exited
automatically (returning to the active window tracking
state) when the screensaver is
deactivated. Note that this substate should only be
entered if the app was in the active
window tracking state when the screensaver activated.
Awaiting Your Reply,
Thank You ,
Raja.
wxPython is a toolkit for writing interfaces, and most of the
functionality you want are systems tasks. wxPython can provide the UI,
but for the system calls you'll need to use the pywin32 module or
ctypes to work directly with the win32 api.
At Sunday 3/12/2006 09:14, Raja wrote:
I am trying to develop an application which would mainly do the following 2 things . I would like to know how it can be achieved and also the libraries needed for it .
i) active window tracking
I'd use GetForegroundWi ndow+GetWindowT ext in a loop with a reasonable
delay (maybe 10 secs?). I can't find the former exposed on the
pywin32 package but I have an old version. Anyway you could be able
to use ctypes.
ii) idle
I'd watch for the WM_SYSCOMMAND (SC_SCREENSAVE) and WM_POWERBROADCA ST messages.
Note that neither of these tasks has to do directly with wxPython
--
Gabriel Genellina
Softlab SRL
_______________ _______________ _______________ _____
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: SeeBelow |
last post by:
Do many people think that wxPython should replace Tkinter? Is this
likely to happen?
I ask because I have just started learning Tkinter, and I wonder if I
should abandon it in favor of wxPython.
Mitchell Timin
--
"Many are stubborn in pursuit of the path they have chosen, few in
|
by: BJörn Lindqvist |
last post by:
See: http://www.wxpython.org/quotes.php. especially:
"wxPython is the best and most mature cross-platform GUI toolkit,
given a number of constraints. The only reason wxPython isn't the
standard Python GUI toolkit is that Tkinter was there first." - Guido
van Rossum
Guess, that answers my question, but isn't "Tkinter was there first" a
very bad answer? :) It is kinda ugly too, so I wonder why it can't be
replaced? Or maybe another GUI...
|
by: timothy.williams |
last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2
machine.
I have python in a non-standard place, but I'm using --prefix with the
configure script to point to where I have everything. The make install
in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/
directory
libwx_base-2.5.so@ libwx_gtk_adv-2.5.so.3.0.0*
libwx_base-2.5.so.3@ libwx_gtk_core-2.5.so@
|
by: James Stroud |
last post by:
Hello All,
I will soon have an excuse to install a new operating system on my computer. I
would like to know exactly what operating system I should have so that I can
get wxPython going. wxPython is my only hold-out on my current system.
wxPython seems to need gnome. So I have tried to build garnome and it didn't
build all the way..and, well, I've tried so many things trying to get
wxPython built that I really don't care to relive the...
|
by: TPJ |
last post by:
GUI's etc: PyGtk on Windows
"(...) So if someone develops mainly for X and just wants to make sure
that it is not impossible to run on Windows, you can use PyGTK. (...)",
July 2nd, 1999
pyGTK on Windows
"(...)
> can i use pyGTK under
> Windows???
| |
by: Glurt Wuntal |
last post by:
I am a newbie with Python. It's a great language, but I would like to be
able to present a simple gui menu for some of my scripts; something better
than using 'raw_input' prompts.
Any recommendations for a program that will allow me to create the gui
screens? Something useable in Linux.
thanks.
|
by: Robin Dunn |
last post by:
Announcing
----------
The 2.6.3.0 release of wxPython is now available for download at
http://wxpython.org/download.php. There have been many enhancements
and fixes implemented in this version, many of which are listed
below and at http://wxpython.org/recentchanges.php.
What is wxPython?
|
by: Robin Dunn |
last post by:
Announcing
----------
The 2.6.3.0 release of wxPython is now available for download at
http://wxpython.org/download.php. There have been many enhancements
and fixes implemented in this version, many of which are listed
below and at http://wxpython.org/recentchanges.php.
What is wxPython?
|
by: Robin Dunn |
last post by:
Announcing
----------
The 2.6.3.2 release of wxPython is now available for download at
http://wxpython.org/download.php. This is a mostly bug fix release
and takes care of several "unfortunate features" discovered in the
2.6.3.0 release made last week. A summary of changes is listed below
and at http://wxpython.org/recentchanges.php.
|
by: stef |
last post by:
hello,
I'm trying to move from Delphi to Python
(move from MatLab to Python already succeeded, also thanks to this
discussion group).
From the discussions in this list about "the best" GUI for Python,
it now seems to me that wxPython is thé choice for my kind of applications.
I've no experience with wxPython yet,
I just run a few examples and indeed it looks good (as expected from the
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |