Guest xinliq Posted December 16, 2003 Share Posted December 16, 2003 (edited) I want to input the following passage, how to do? -------- FlashFXP Registration Data START -------- UnderPl Ownz N/A gesvo@infinity.net.pl 00000001 10-12-2002 1BfxccoSJqWRANDOM STUFFsJC05hSllOUyQJnD muuVRS9oUZvhRANDOM STUFFDZ3Q=gWaA6lkYZBQ1qV 3QP1Ct7tzWO+5F3RANDOM STUFFKpn74I9=2FOuZ3yaOb -------- FlashFXP Registration Data END -------- Edited December 16, 2003 by Jon Link to comment Share on other sites More sharing options...
CyberSlug Posted December 16, 2003 Share Posted December 16, 2003 (edited) Hmm..... I have a feeling this thread might be removed.....; One Way; Remove the first and last lines if you don't want them$t = "-------- FlashFXP Registration Data START --------"$t = $t & @CRLF & "UnderPl Ownz"$t = $t & @CRLF & "N/A"; you fill in the rest$t = $t & @CRLF & "3QP1Ct7RANDOM STUFFCKpn74I9=2FOuZ3yaOb"$t = $t & @CRLF & "-------- FlashFXP Registration Data END --------"; code to make sure proper window is active goes hereSend($t, 1)Exit; A second wayDim $a[10]$a[0] = "-------- FlashFXP Registration Data START --------"$a[1] = "UnderPl Ownz"; you fill in the rest$a[9] = "-------- FlashFXP Registration Data END --------"For $i = 0 to 9 Send($a[$i] & @CRLF)Next; A Third way; Save the text to a file such as passage.txt$file = FileOpen("passage.txt", 0)If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") ExitEndIf$line = ""While 1 ; Read in lines of text until the EOF is reached $line = FileReadLine($file) & @CRLF If @error = -1 Then ExitLoop EndIfWendFileClose($file); ...Send($line); You may need to strip the very last @CRLF in the second and third ways Edited December 16, 2003 by Jon Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now