I've recently been playing with some UI ideas that require the user of a timer
to drive animation. The problem I'm having is that Access routinely stops
firing timer events for long periods of time.
For example, the user types a character in another window, and the timer
stops. The user types another key, and the timer starts again, runs for a few
seconds, then stops again.
Now, the code I'm writing would easily tolerate a few dropped timer event
firings, but these long pauses just don't work.
Of course, an ActiveX control might do the trick, but I also like to limit the
use of external controls because it makes the software harder to deploy,
especially for quick demos and such.
Does anyone have any clever solutions for this problem? 11 2557
On Apr 10 2005, 12:04 am, Steve Jorgensen <no****@nospam. nospam> wrote
in news:h2******** *************** *********@4ax.c om: I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of time.
For example, the user types a character in another window, and the timer stops. The user types another key, and the timer starts again, runs for a few seconds, then stops again.
Now, the code I'm writing would easily tolerate a few dropped timer event firings, but these long pauses just don't work.
Of course, an ActiveX control might do the trick, but I also like to limit the use of external controls because it makes the software harder to deploy, especially for quick demos and such.
Does anyone have any clever solutions for this problem?
SetTimer API, perhaps? Needs a callback function, which shouldn't be a
problem in newer versions of Access.
--
remove a 9 to reply by email
On Sun, 10 Apr 2005 15:33:26 -0000, Dimitri Furman <df*****@cloud9 9.net>
wrote: On Apr 10 2005, 12:04 am, Steve Jorgensen <no****@nospam. nospam> wrote in news:h2******** *************** *********@4ax.c om:
I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of time.
For example, the user types a character in another window, and the timer stops. The user types another key, and the timer starts again, runs for a few seconds, then stops again.
Now, the code I'm writing would easily tolerate a few dropped timer event firings, but these long pauses just don't work.
Of course, an ActiveX control might do the trick, but I also like to limit the use of external controls because it makes the software harder to deploy, especially for quick demos and such.
Does anyone have any clever solutions for this problem?
SetTimer API, perhaps? Needs a callback function, which shouldn't be a problem in newer versions of Access.
Shouldn't it? Wouldn't that amount to multi-threading, which VBA does not
support?
On Sat, 09 Apr 2005 21:04:27 -0700, Steve Jorgensen
<no****@nospam. nospam> wrote:
The way I understand timers, an ActiveX control (I'm thinking you are
planning on writing one) may not do the trick. WM_TIMER events are
used by the "normal" timers (SetTimer, the Timer control in VB and
Access) and they are low priority events, that only happen after all
other events are processed. They are also combined to a single event
if their time has expired before they got a change to tick.
The multimedia timer timeSetEvent ticks more predictably, but at the
price of consuming more CPU resources.
-Tom. I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of time.
For example, the user types a character in another window, and the timer stops. The user types another key, and the timer starts again, runs for a few seconds, then stops again.
Now, the code I'm writing would easily tolerate a few dropped timer event firings, but these long pauses just don't work.
Of course, an ActiveX control might do the trick, but I also like to limit the use of external controls because it makes the software harder to deploy, especially for quick demos and such.
Does anyone have any clever solutions for this problem?
On Apr 10 2005, 03:01 pm, Steve Jorgensen <no****@nospam. nospam> wrote
in news:5t******** *************** *********@4ax.c om: SetTimer API, perhaps? Needs a callback function, which shouldn't be a problem in newer versions of Access.
Shouldn't it? Wouldn't that amount to multi-threading, which VBA does not support?
I see your point, but then AddressOf is a supported VBA operator, so it may
be worth a try...
--
remove a 9 to reply by email
On Mon, 11 Apr 2005 02:11:54 -0000, Dimitri Furman <df*****@cloud9 9.net>
wrote: On Apr 10 2005, 03:01 pm, Steve Jorgensen <no****@nospam. nospam> wrote in news:5t******** *************** *********@4ax.c om:
SetTimer API, perhaps? Needs a callback function, which shouldn't be a problem in newer versions of Access.
Shouldn't it? Wouldn't that amount to multi-threading, which VBA does not support?
I see your point, but then AddressOf is a supported VBA operator, so it may be worth a try...
Well, AddressOf can be used in ways that can reasonably be predicted not to
have side effects (as long as your code has no bugs). Multi-threading of code
that does not support it can have unpredictable side effects at unpredictable
rates, so the fact that code appears to work in testing is no guarantee that
it's safe. I don't think I would do it.
An intriguing suggestion, though.
Actually, the low-priority nature of the timer wouldn't be a problem for my
code in and of itself. It's just the fact that timer events can go on
vacation for very long periods of time. I don't know if this is an Access
behavior or a WM_TIMER behavior, but I would be a bit surprised if WM_TIMER
acted that way.
On Sun, 10 Apr 2005 12:01:55 -0700, Tom van Stiphout <no************ *@cox.net>
wrote: On Sat, 09 Apr 2005 21:04:27 -0700, Steve Jorgensen <no****@nospam .nospam> wrote:
The way I understand timers, an ActiveX control (I'm thinking you are planning on writing one) may not do the trick. WM_TIMER events are used by the "normal" timers (SetTimer, the Timer control in VB and Access) and they are low priority events, that only happen after all other events are processed. They are also combined to a single event if their time has expired before they got a change to tick.
The multimedia timer timeSetEvent ticks more predictably, but at the price of consuming more CPU resources.
-Tom.
I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of time.
For example, the user types a character in another window, and the timer stops. The user types another key, and the timer starts again, runs for a few seconds, then stops again.
Now, the code I'm writing would easily tolerate a few dropped timer event firings, but these long pauses just don't work.
Of course, an ActiveX control might do the trick, but I also like to limit the use of external controls because it makes the software harder to deploy, especially for quick demos and such.
Does anyone have any clever solutions for this problem?
On Sun, 10 Apr 2005 20:46:11 -0700, Steve Jorgensen
<no****@nospam. nospam> wrote:
Surprise!
AFAIK, the timer control in Access is just a very thin veneer around
SetTimer.
-Tom. Actually, the low-priority nature of the timer wouldn't be a problem for my code in and of itself. It's just the fact that timer events can go on vacation for very long periods of time. I don't know if this is an Access behavior or a WM_TIMER behavior, but I would be a bit surprised if WM_TIMER acted that way.
On Sun, 10 Apr 2005 12:01:55 -0700, Tom van Stiphout <no************ *@cox.net> wrote:
On Sat, 09 Apr 2005 21:04:27 -0700, Steve Jorgensen <no****@nospa m.nospam> wrote:
The way I understand timers, an ActiveX control (I'm thinking you are planning on writing one) may not do the trick. WM_TIMER events are used by the "normal" timers (SetTimer, the Timer control in VB and Access) and they are low priority events, that only happen after all other events are processed. They are also combined to a single event if their time has expired before they got a change to tick.
The multimedia timer timeSetEvent ticks more predictably, but at the price of consuming more CPU resources.
-Tom.
I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of time.
For example, the user types a character in another window, and the timer stops. The user types another key, and the timer starts again, runs for a few seconds, then stops again.
Now, the code I'm writing would easily tolerate a few dropped timer event firings, but these long pauses just don't work.
Of course, an ActiveX control might do the trick, but I also like to limit the use of external controls because it makes the software harder to deploy, especially for quick demos and such.
Does anyone have any clever solutions for this problem?
I'm sure you're tight, but how thin? Do we know that Access does not shut
down handling of the timer when it feels like it?
On Sun, 10 Apr 2005 21:58:54 -0700, Tom van Stiphout <no************ *@cox.net>
wrote: On Sun, 10 Apr 2005 20:46:11 -0700, Steve Jorgensen <no****@nospam .nospam> wrote:
Surprise! AFAIK, the timer control in Access is just a very thin veneer around SetTimer.
-Tom.
Actually, the low-priority nature of the timer wouldn't be a problem for my code in and of itself. It's just the fact that timer events can go on vacation for very long periods of time. I don't know if this is an Access behavior or a WM_TIMER behavior, but I would be a bit surprised if WM_TIMER acted that way.
On Sun, 10 Apr 2005 12:01:55 -0700, Tom van Stiphout <no************ *@cox.net> wrote:
On Sat, 09 Apr 2005 21:04:27 -0700, Steve Jorgensen <no****@nosp am.nospam> wrote:
The way I understand timers, an ActiveX control (I'm thinking you are planning on writing one) may not do the trick. WM_TIMER events are used by the "normal" timers (SetTimer, the Timer control in VB and Access) and they are low priority events, that only happen after all other events are processed. They are also combined to a single event if their time has expired before they got a change to tick.
The multimedia timer timeSetEvent ticks more predictably, but at the price of consuming more CPU resources.
-Tom.
I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of time.
For example, the user types a character in another window, and the timer stops. The user types another key, and the timer starts again, runs for a few seconds, then stops again.
Now, the code I'm writing would easily tolerate a few dropped timer event firings, but these long pauses just don't work.
Of course, an ActiveX control might do the trick, but I also like to limit the use of external controls because it makes the software harder to deploy, especiall y for quick demos and such.
Does anyone have any clever solutions for this problem?
On Sun, 10 Apr 2005 23:15:39 -0700, in comp.databases. ms-access you
wrote: I'm sure you're tight, but how thin? Do we know that Access does not shut down handling of the timer when it feels like it?
Hi Steve
A quote of yours from the past:
From: Steve Jorgensen (no****@nospam. nospam)
Subject: Re: Blinking controls
Newsgroups: comp.databases. ms-access
Date: 2000-09-08 15:11:08 PST
After all, anyone who would try to drive a real-time
process in Access is terribly misguided to begin with.
!!!!
David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Laughlin, Joseph V |
last post by:
If I want a function to be called every second, how would I do this?
Would I use timer events?
Joe Laughlin
Phantom Works - Integrated Technology Development Labs
The Boeing Company
|
by: walterd |
last post by:
Hi
How can I cause a windows service to fire the timer_elapsed event for
different time intervals? I have a windows service that should run some
processed at 3 minute interval, but I also want it to run some processes on,
say 5, 10 or 15 minutes depending on the configuration file.
Thanks in advance
|
by: keithgell |
last post by:
I needed to import large CSV files into Access, when requested by a
command in a .Net interface.
Because Access does not have a bulk insert command, and I already have
vba macros in Access that do the import, I simply called the vba macro
from .Net using COM.
Each time a csv file is successfully imported, I would like to raise a
custom event in Access that the .Net interface can handle.
|
by: Max |
last post by:
This may be an elementary question but it's something I have not encountered
in about 10 years writing code in VB 5 / 6
I have a timer that using the API checks if there has been a change to one
of several watched directories in the file system, if there has been a
change a rather long running process is started.
The long running process loops through all files comparing the last modified
attributes on each to those in the database if...
|
by: Helmut Jarausch |
last post by:
Hi,
I'm using a web server (Karrigell) which is based on the asyncore module.
I'd like to be able to checkpoint some data (e.g. pickled dictionaries) to disk
from time to time.
For that I would need to setup a timer which calls a Python object/function when
its time interval has expired. While this function is running I need access to
the variables of the server.
Can this be done in a simple way?
| |
by: Jason C |
last post by:
Using C++, platform is Windows XP SP3.
I have a multimedia application that runs a rendering loop that must
be throttled to 60 iterations / second max. Currently it is
implemented using a dirty and inconsistent wait loop, which I've
included below. I am looking for a better way to implement frame rate
throttling, and am looking for a timed event that meets the following
requirements:
* Does not require a window handle.
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |