Results 1 to 2 of 2

Thread: variable sendkeys?

  1. #1

    Thread Starter
    Fanatic Member TTn's Avatar
    Join Date
    Jul 2004
    Posts
    708

    variable sendkeys?

    How do you sendkeys with variables? , ie

    sendkeys "%(e+a)MyVariableString{Enter}{Tab}"
    The variable is actually a, txtFile.text

    I've tried quite a few different ways, and decided 2 hours later, to post this question.

  2. #2
    Addicted Member _skrying's Avatar
    Join Date
    Mar 2004
    Location
    Hell, US
    Posts
    168
    Not sure exactly, would give it a try like:

    VB Code:
    1. SendKeys Str(Text1.text) & "{Enter}{Tab}"
    2.  
    3. 'or
    4.  
    5. SendKeys VariableNameHere & "{Enter}{Tab}"


    Don't quote me. Haven't tried it, that's off the top of my head.

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