Results 1 to 4 of 4

Thread: Confused about %d sendkeys [Resolved]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    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

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    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.

  3. #3
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    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

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    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
  •  



Click Here to Expand Forum to Full Width