Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using DP to define windows
#7
Not Solved
I have come up with the following strategy using SendKeys.

Code:
Dim [b]str[/b]= ""
For i = 1 to RowCount
    For x = 1 to MaxCharCount
      [b]str[/b] = str & Mid (LETTERS, RandomNumber(1, Len(LETTERS)), 1)
    Next
      Set KeyShell = CreateObject("WScript.Shell")
      KeyShell.SendKeys [b]str[/b]    KeyShell.SendKeys ("{DOWN}")
      str = ""
Next

However QTP tells me that I have passed a bad parameter to SendKeys.

I am looking for a suggestion to pass the variable str to SendKeys 20 times to populate a cell grid
with 1200 characters.
Thanks - mrerek
Reply


Messages In This Thread
Using DP to define windows - by mrerek - 07-15-2011, 01:36 AM
RE: Using DP to define windows - by rajpes - 07-15-2011, 09:30 AM
RE: Using DP to define windows - by mrerek - 07-16-2011, 12:51 AM
RE: Using DP to define windows - by rajpes - 07-16-2011, 11:54 AM
RE: Using DP to define windows - by mrerek - 07-18-2011, 10:22 PM
RE: Using DP to define windows - by rajpes - 07-19-2011, 11:39 AM
RE: Using DP to define windows - by mrerek - 07-21-2011, 12:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What are different types of Function we define in UFT? amit25007 1 3,287 03-09-2016, 09:08 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)