Hi Joe,
Thanks for a swift response. However, I do not quite understand.
Perhaps, if I explain better what I did and need, you could give me a clue.
I want to make a demo of a program I wrote. In preparation, I've made a small test application that records actions. It records mouse movements and mousedown events, finds the active window and control or menuitem, if the mouse is above one. On replay a little arrow simulates mouse movements and the actions following mousedown are executed.
So far so good. It works neatly, though I must still work on the automated calibration for an optimal machine-specific period of the timers involved. That may still be a serious bottleneck! However, working on that makes no sense unless I can store and retrieve the recording. This is the reason for asking my question now.
I found no way to generate a list of all windows of a project, irrespective if
they are open or not. As a workaround I put a copy of a window in an array,
when first encountered during recording, and derive other information therefrom.
So, the storage must involve not only the recorded events, but the array of
windows as well. That is where I do not succeed.
I suppose I need a better understanding of how window information is structured
in RB. Perhaps you could give me a hint or direct me to some reading.
Although I could not find it, it is possible, of course, that someone already
has made classes or a plugin that would support my needs. Any suggestion in
that direction would be equally welcome.
I appreciate your help a lot, thanks!
Leo
I need to save an array of objects (windows) in a binary file.
Then you'll have to define what that means, make up a file format for
storing whatever information that is, and then write code to read and
write that format.
I do not find a way to determine the size in bytes of each array element.
When you've defined your file format, then it should be pretty
trivial to count the bytes.
--
Leo Van den Brande
J.Buziaulaan 61
3584 ZT Utrecht
Tel: (+31) 30 2511767
Fax: (+31) (0)84 756 5233
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|