WintextCom Utilities  >

The WintextCom Timer

Last updated: 28/03/2012 12:00:03 GMT
Print (Alt+1) Previous (Alt+P) Beginning of ChapterNext (Alt+N)

The WintextCom timer utility is a handy feature if you want to limit the amount of time you spend upon a particular task or accumulate a record of the total time you spend. The timer displays a dialogue box, interrupting your work in any application, when the required interval expires. The dialogue displays information about the number of intervals that have elapsed for the specified timer, and must be dismissed either by clicking the OK button or invoking a WintextCom global accelerator, it cannot be dismissed by pressing ENTER or Escape, or any other key except a global accelerator combination. This restriction is intentional, it ensures that you do not accidentally close the message box if it appears while you are typing into a word processor, for example.

 

Before you can use the WintextCom timer, you must enable it by including the setup directive "%%+" in the program configuration. The timer is disabled and inaccessible by default, preventing it from being accidentally invoked.

 

Once enabled, to set or read the timer, invoke the program and Windows information utility by pressing WindowsKey+Space in any application. The timer is part of the time display control that comes up in focus. It is hidden until it is invoked. Press Control+H to unhide the timer. There are nine timers in all, numbered 1 to 9. When unhidden, the time display is preceded by a set of angle brackets containing two numbers separated by a comma. The first number is that of the currently active timer, the second is the current elapsed time, which by default is in minutes.

 

Unhiding the timer does not activate it. Press Control+ENTER to activate the current timer and close the dialogue box. When you next display the timer by pressing WindowsKey+Space, it stops at the current value of the counter (the second number in the angle brackets), which by default updates every minute. By default, the alert dialogue is displayed every hour, with a 2-minute error margin. This means the timer alert dialogue is displayed at 62, 122, 182 minutes, and so on. When you activate the timer by closing the dialogue with Control+ENTER, timing resumes from the whole minute value shown in the counter, as if it had been stopped on the exact minute, any additional seconds at which the timer was stopped are lost. This means that if you set out to do something for a number of hours, for example, and you keep stopping the timer and starting it again, the actual time elapsed during active timing when the timer reaches 62 will be rather more than 62 minutes, then for subsequent hours, rather more than 60 minutes, ensuring that at least the required period has elapsed when the alert dialogue shows the appropriate number of base interval (hourly) elapses. Even if you do not stop the timer during the work period, the 2-minute (default) error margin will ensure that the time elapsed is marginally greater than the required hours.

 

Timing stops when the alert dialogue is displayed, and resumes automatically when the dialogue is dismissed. This includes both dismissing the dialogue by clicking the OK button and by invoking a WintextCom global accelerator, except in the case of WindowsKey+Space, which calls up the timer display itself and stops timing.

 

When the timer is displayed in the program and Windows information dialogue box, the following commands may be used to change parameters:

 

All of the above commands except Control+H automatically unhide the timer if it is hidden.

 

Holding down the Control key replaces the counter value by the value of the currently-selected alert interval until Control is released, enabling you to verify or check this value. Pressing Shift while Control is being held down resets the alert interval to the default value (60 unless the timer has been customised).

 

Customising the Timer

 

The default timer parameters can be set using the "%%" setup directive. For example, the default settings would be represented as follows:

 

"-60000,60,2,+Time<32>slice<32>elapsed".

 

Do not include the quotes around the above, just the text between them. The textual specification comprises the following fields:

 

 

The 3 numeric fields are optional. Their presence is indicated by a comma in the appropriate separating position. This means that if not all the fields are included and a comma is required in the action string, it must be embedded as "<44>". In the above example, spaces are embedded as "<32>". An alternative method of including spaces would be to surround the text by double quotes, not including the initial status character. If you specify just the initial status character, the status of the timer is set without changing the default parameters; therefore, the setup directive "%%+" enables the timer with default settings.

 


Page url: http://wtcmanual.wintextware.com/index.html?m_wintextcom_timer.htm