n9mfk9 Posted December 22, 2005 Share Posted December 22, 2005 how wood i send this line [Yu\^eC:}"2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5 of text using controlsend with this code i get a error $text= "[Yu\^eC:}"2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5" ControlSend("Untitled", "", "Edit1", $text,1) thanks for any help Link to comment Share on other sites More sharing options...
seandisanti Posted December 22, 2005 Share Posted December 22, 2005 how wood i send this line [Yu\^eC:}"2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5 of text using controlsend with this code i get a error $text= "[Yu\^eC:}"2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5" ControlSend("Untitled", "", "Edit1", $text,1) thanks for any helpeasiest way to do it would be to replace your quotes with Char(34) then surround the rest w/ double quotes.. like: $text= "[Yu\^eC:}" & Char(34) & "2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5" Link to comment Share on other sites More sharing options...
Developers Jos Posted December 22, 2005 Developers Share Posted December 22, 2005 $text= "[Yu\^eC:}""2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5" ControlSend("Untitled", "", "Edit1", $text,1) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BigDod Posted December 22, 2005 Share Posted December 22, 2005 (edited) how wood i send this line [Yu\^eC:}"2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5 of text using controlsend with this code i get a error $text= "[Yu\^eC:}"2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5" ControlSend("Untitled", "", "Edit1", $text,1) thanks for any helpTry $text= "[Yu\^eC:}""2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5" ControlSend("Untitled", "", "Edit1", $text,1) What you have to do is double up the " in the string you want to send. Edit Oops to slow again. Edited December 22, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
seandisanti Posted December 22, 2005 Share Posted December 22, 2005 $text= "[Yu\^eC:}""2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5" ControlSend("Untitled", "", "Edit1", $text,1)well yes, i guess the "right" way is always an option too... Link to comment Share on other sites More sharing options...
n9mfk9 Posted December 22, 2005 Author Share Posted December 22, 2005 is there a way i could do the code to that if text =[Yu\^eC:}"2=?;wCJzZ'%N'w?_YU9+x{h:=e.pOLj?5/b'b$g{>vgq&[_E79|^5 the code wood add the "so it would be correct thanks beau Link to comment Share on other sites More sharing options...
LxP Posted December 23, 2005 Share Posted December 23, 2005 (edited) If you're directly coding that string into your script then the answer is no. If you are using the script to reading it from another location, then you don't need to worry about it at all.Edit: What I mean is that if you create a new file containing only the text, you could then do this:Local $CodeFile = 'TheCode.txt' $Code = FileRead($CodeFile, FileGetSize($CodeFile)) ControlSend('', '', 'Edit1', $Code, 1)where it is assumed that TheCode.txt contains the text. Edited December 23, 2005 by LxP 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