Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Delphi Application.processmessage

Posted on 2009-03-29
5
Medium Priority
?
1,560 Views
Last Modified: 2013-11-23
Hi,

I am using    "Application.ProcessMessages" in my delphi application with flash activex. but it is very slowly executing i want to improve the speed of that can any one suggest the solution.

0
Comment
Question by:inampudi1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:inampudi1
ID: 24016304
in this application i will change mouse position randomly on the flash activex, according to the mouse position the flash animation need to change. for this i used    Application.ProcessMessages;
0
 

Author Comment

by:inampudi1
ID: 24016313
SetCursorPos(RadX,RandY);
Application.ProcessMessages;
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 24016640
Application.ProcessMessages;
This has nothing to do with speed, it just lets the application process the messages it has on the queue.
It's what your using to display the Flash which is the problem.
If nothing in the queue then the application processmessages doesn't process anything.
It's the ActiveX object which is slow
0
 

Author Comment

by:inampudi1
ID: 24016664
Thank you for ur reply,


I know that but is there any chance to improve the speed
By using any system level threads like that.

0
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 750 total points
ID: 24017805
You can alter windows display options for speed with RightClick MyComputer / Properties
tab Advanced / Performance settings

Or depending on your Video Graphics card you can set other options

or use
The SetThreadPriority function sets the priority value for the specified thread. This value, together with the priority class of the thread's process, determines the thread's base priority level.

BOOL SetThreadPriority(

    HANDLE hThread,      // handle to the thread
    int nPriority       // thread priority level
   );

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question