+ Reply to Thread
Results 1 to 2 of 2

Trouble Passing ^F Command to Notepad

  1. #1
    Registered User
    Join Date
    04-15-2005
    Posts
    2

    Trouble Passing ^F Command to Notepad

    I am working on a simple macro to search through a large (+20MB) ASCII file and copy the results of the search back to Excel. I have just been using "SendKey" commands to perform the operations I need. The problem I have run into is that my Control-F command to open the search window is no longer being recognized.

    I say no longer being reconized becaused I had it working yesterday for a version of the macro with no variables and loops. Today I was going to add those features, but ran into this issue. In troubleshooting, I have been able to pass text and other commands, just not the ^F. Any ideas? A brief excerpt is attached.

    Thanks for any guidance you can provide.

    Mason

    p.s. Everything in the below code I was using to troubleshoot seems to be working with the exception of the ^F lines.

    Sub Button1_Click()
    ' Find MEMBER
    AppActivate "Notepad"
    SendKeys "{ENTER}", True
    SendKeys "^F", True
    SendKeys "PIN", True
    SendKeys "{ENTER}", True
    SendKeys "{TAB}{TAB}{TAB}{TAB}", True
    SendKeys "{enter}", True
    SendKeys "{HOME}", True
    SendKeys "^F", True
    End Sub

  2. #2
    Registered User
    Join Date
    04-15-2005
    Posts
    2
    Well, I feel more than a little foolish.

    The reason the command was not being executed in Notepad was due to the capitalization of the letter "F".

    Mason

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1