Jump to content

Recommended Posts

Posted

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

Posted

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

easiest 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"
Posted (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 help

Try

$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 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

Posted

$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... :P
Posted

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

Posted (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 by LxP

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
×
×
  • Create New...