Jump to content

controlsend ?


n9mfk9
 Share

Recommended Posts

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

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"
Link to comment
Share on other sites

  • Developers

$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

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

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...