Ok changed it per Les's suggestion
Code:
Function Send($Input,$I)
Dim $, $Checkstring
SetFocus($I)
Sendkeys("config t {enter}")
For each $ in $Input
CheckString($)
SetFocus($I)
SendKeys($checkstring)
SendKeys("{Enter}")
Next
EndFunction
Had the same effect.
Here is the text file that I am reading into the array
Code:
banner motd ~c
********************************Warning Notice*********************************
| |
| This system is restricted solely to AHCCCS authorized users for legitimate |
| purposes only. The State of Arizona strictly prohibits the actual or |
| attempted unauthorized access, use or modification of this system. |
| Unauthorized usage and/or users are subject to disciplinary proceedings |
| and/or criminal and civil penalties under State and Federal law. The use of |
| this system may be monitored and recorded for administrative and security |
| reasons. Anyone accessing this system expressly consents to such monitoring |
| and is advised that if monitoring reveals possible evidence of criminal |
| activity, the State of Arizona may provide the evidence of such activity to |
| law enforcement officials. All authorized users who have access to AHCCCS |
| computer systems and data are bound by applicable laws, rules and AHCCCS |
| directives, including but not limited to, AHCCCS Administrative Policies |
| and Procedures, AHCCCS Privacy and Security Policies, ARS 41-770, and |
| ARS 38-448. |
-------------------------------------------------------------------------------
*****Unauthorized access may be subject to prosecution under ARS 13-2316.******
~c