|
-
Oct 5th, 2005, 04:24 AM
#1
Thread Starter
Hyperactive Member
Confused about %d sendkeys [Resolved]
We have an external application which comunicates with Microsft Access.
The exteranal application uses the following commands in a macro
AppActivateLike("Microsoft Access")
AppActivateLikeChild("Microsoft Access", "Clients")
Sendkeys("%d")
I don't understand though is why the %d causes a combo box on the Clients form to get the focus, where is this set?
Is %d a command of some sort, if so how do I change which combo box gets the focus?
Last edited by Oliver1; Oct 5th, 2005 at 06:26 AM.
Reason: Resolved
-
Oct 5th, 2005, 05:08 AM
#2
Thread Starter
Hyperactive Member
Re: Confused about %d sendkeys
Ah have realised that the above means Alt and D, so can cause the combo box to getthe focus when I do this, but where it set that alt d gives that combo box the focus?
As want to change it.
-
Oct 5th, 2005, 06:18 AM
#3
Re: Confused about %d sendkeys
The ALT+D will be the accelerator probably assigned to the label before the Combobox so the focus switches to the combobox when the keys are pressed.
to change focus so it does not target the remove the Ampersand (&) before the "D" (or "d") on the label's caption next to the Combobox. Or alternatively, and if possible, remove the send keys statement from the code in the External application.
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Oct 5th, 2005, 06:22 AM
#4
Thread Starter
Hyperactive Member
Re: Confused about %d sendkeys
Thanks loads. Was looking at the properties of the combo box and not the label.
All makes sense now.
Anyway am happy I know why it works now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|