Solved

access menus from code

Posted on 1997-04-27
2
178 Views
Last Modified: 2010-04-04
I've got a program that needs a demo mode. I want to
be able to move the cursor around (I've got that part)
and open a menu and select an item all from within the
program's code. It doesn't even have to execute the menu
item as long as it looks like it selected it. I don't
want an extra or external program (camcorder, etc.) since
this is part of the requirements. Any help would be
appreciated.
0
Comment
Question by:jenny042797
[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
2 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 100 total points
ID: 1335736
It's not an external program:
Download Lloyd's Delphi Help File available from the Delphi Download page off the Delphi Technical Support page.

Search the help file for "SendKeys". Send an Alt Key Down, then
a Down Arrow Key etc...

You'll be able to send any key you want to open the menu item, and there are also some examples.
0
 

Author Comment

by:jenny042797
ID: 1335737
Thankyou for the help.
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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 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