Jump to content

[SOLVED] ControlSend String Question


Recommended Posts

Okay so I am not sure if I can do this or not with the code I currently have but, I would like to send lastname and the first name with a comma inbetween. 

so it would look like "last name,first name" 

right now I just have it sending the last name.

any help or sugestions are appreciated. 

 

$r = 1

Local $aArray = _Excel_RangeRead($oExcel, Default, Default)

For $i = 1 To UBound($aArray) - 1   ;$i =0 Start from row A
      $sR1 = $aArray[$i][0]     ;status
      $sR2 = $aArray[$i][1]     ;first name
      $sR3 = $aArray[$i][2]     ;Last name
      $sR5 = $aArray[$i][5]     ;Email Address




WinWaitActive ("[CLASS:MGUIWin]")
Sleep (100)
ControlSend("[CLASS:MGUIWin]", "", "Edit2", $sR3, & @CR)





$r = $r + 1
If $r > $sBox Then
   Exit
   Endif

Next

 

Edited by SkysLastChance
Clean up code

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...