Solved

Delphi Application.processmessage

Posted on 2009-03-29
5
1,547 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 37

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 37

Accepted Solution

by:
Geert Gruwez earned 250 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

688 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