Results 1 to 2 of 2

Thread: Sendkeys problem.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    Hi,

    I am trying to make my program sendkeys to another program, am sending the keys alright but I send keys to drop down the file menu, with the short cut Alt F
    SendKeys "%f"

    then there is an option in the programs file option which short cut key is Alt S
    so I use the sendkeys function like so when I have the file menu dropped down,
    SendKeys "%S"

    but it turns out the program has the short cut key Alt S also used for something else when it is not in the menu and that is to launch the default browser to the programs homepage.

    and when I am attempting to send the keys to this file menu it keeps launching the browser instead of selecting that item from the list.

    Can someone tell me how to sendkeys to the menu successfully ?

    thanx for your time.

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Fort Lauderdale, FL USA
    Posts
    112
    Once the menu drops down, you can select a menu item by simply selecting it's hot key.

    Example:
    Sendkeys "%F", True 'Open file menu
    Sendkeys "S", True 'Select menu item "S"

    Hope this helps.
    Damonous

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