Ctrl+C from Time&Sales does not use LVM_GETITEMTEXT at all. This list is owner data and has its own direct buffer that is 2 orders of magnitude faster than windows messages. That is internal AB structure not exposed by any API.
Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "Julian" <[email protected]> To: <[email protected]> Sent: Friday, July 17, 2009 4:54 PM Subject: [amibroker] ADK SendMessage > I'm working on my first AFL plugin using Dev-C++. I'm a programmer by trade, > but not a Windows programmer. > > Anyway, after three days of brutal toil, I've managed to access the Time & > Sales window. However to read the contents, I'm using > the SendMessage LVM_GETITEMTEXT function which is really slow. I don't fully > understand the windows messaging system yet, so don't > get where the performance issue is. Something to do with them being queued? > > 40,000 SendMessage requests takes around 1.6 seconds which is way slow and > that's only for 1 column of data. I can read and > process 4 columns of the same data from a text file in around 50ms. > > For realtime, where you'd only be reading maybe 500 records at a time, > there's 4000 SendMessage calls and even that takes 100ms. > As I don't understand Windows very well, is there a faster way of doing this? > Can I get a reference to the actual class itself? > > When I copy (CTRL+C) from the Time & Sales window, it's so quick it's barely > noticeable on the cpu graph. It'd be quicker for me > to send a CTRL+C key message to the window and then process the data from the > clipboard, which is a viable option if there's > nothing else. > > Hopefully there's some Windows programmers around here. > > Thanks, > Julian. > > > > ------------------------------------ > > **** IMPORTANT PLEASE READ **** > This group is for the discussion between users only. > This is *NOT* technical support channel. > > TO GET TECHNICAL SUPPORT send an e-mail directly to > SUPPORT {at} amibroker.com > > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > http://www.amibroker.com/feedback/ > (submissions sent via other channels won't be considered) > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > Yahoo! Groups Links > > >
