Solved

access menus from code

Posted on 1997-04-27
2
157 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
2 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 100 total points
Comment Utility
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
Comment Utility
Thankyou for the help.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
APK file name 7 63
Save pdf file to other location 3 72
build html 5 client that connect to indy Tidtcpserver 3 295
delphi exception 7 58
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now