Sign in to follow this  
Followers 0
pillbug

saving html as characters

14 posts in this topic

I'm trying to take html code and save it to a string. However, I get a ""getting missing separator character after keyword"

At first I thought, well maybe I can write a program that stores the html as characters

Here is code for converting a file to ascii characters

;Covert to Ascii
While  1
HotKeySet("{ESC}", "quit")
WEnd

Func quit()
$total = ""
Send("^a")
Send("^c")

$var=clipget()

$string=StringSplit($var, "")
$i=StringLen($var)

for $n=1 to $i Step 1
 $char= Ascw($string[$n])
 

 $total = $total & "Chrw(" & $char & ")"
 
If $n <$i Then
    $total = $total & " & "
Endif
Next

ClipPut($total)

Send("^a")
send("^v")


    Exit
EndFunc

However, I still get the error. I have long html code that I want to put into my program, however, it is a pain when there are numerous symbols, ", !, ', etc.

Share this post


Link to post
Share on other sites



$string=StringSplit($var, "")

Your trying to split a string with no delimiter?

what's the matter? the string will be splitter for each character

@ pillbug why u have put the ''HotKeyset'' in the while loop?

Share this post


Link to post
Share on other sites

The program I showed above isn't the problem.

I am using it to capture html I write. I want to have the html appear in another autoitscript, because I plan on using autoit to create a template of a webpage without looking at the code

For example, let's say I have this html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
<p>This is a Basic HTML File!!!</p>
<p>&nbsp;</p>
<p>However, it has lots of information.</p>
<p>&nbsp;</p>
<table width="200" border="1">
  <tr>
    <td>Row 1</td>
    <td>1</td>
    <td>1</td>
  </tr>
  <tr>
    <td>Row 2</td>
    <td>2</td>
    <td>2</td>
  </tr>
  <tr>
    <td>Row 3</td>
    <td>3</td>
    <td>3</td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

However, this code has a lot of syntax (such as quotes or semicolons) that creates problems.

My solution was to use the above program (sry, it was messy), to give me Ascii values (the above characters are actually unicode):

This is the ascii code of the above html, which I pass to a string

$html=Chr(60) & Chr(33) & Chr(68) & Chr(79) & Chr(67) & Chr(84) & Chr(89) & Chr(80) & Chr(69) & Chr(32) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(32) & Chr(80) & Chr(85) & Chr(66) & Chr(76) & Chr(73) & Chr(67) & Chr(32) & Chr(34) & Chr(45) & Chr(47) & Chr(47) & Chr(87) & Chr(51) & Chr(67) & Chr(47) & Chr(47) & Chr(68) & Chr(84) & Chr(68) & Chr(32) & Chr(88) & Chr(72) & Chr(84) & Chr(77) & Chr(76) & Chr(32) & Chr(49) & Chr(46) & Chr(48) & Chr(32) & Chr(84) & Chr(114) & Chr(97) & Chr(110) & Chr(115) & Chr(105) & Chr(116) & Chr(105) & Chr(111) & Chr(110) & Chr(97) & Chr(108) & Chr(47) & Chr(47) & Chr(69) & Chr(78) & Chr(34) & Chr(32) & Chr(34) & Chr(104) & Chr(116) & Chr(116) & Chr(112) & Chr(58) & Chr(47) & Chr(47) & Chr(119) & Chr(119) & Chr(119) & Chr(46) & Chr(119) & Chr(51) & Chr(46) & Chr(111) & Chr(114) & Chr(103) & Chr(47) & Chr(84) & Chr(82) & Chr(47) & Chr(120) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(49) & Chr(47) & Chr(68) & Chr(84) & Chr(68) & Chr(47) & Chr(120) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(49) & Chr(45) & Chr(116) & Chr(114) & Chr(97) & Chr(110) & Chr(115) & Chr(105) & Chr(116) & Chr(105) & Chr(111) & Chr(110) & Chr(97) & Chr(108) & Chr(46) & Chr(100) & Chr(116) & Chr(100) & Chr(34) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(32) & Chr(120) & Chr(109) & Chr(108) & Chr(110) & Chr(115) & Chr(61) & Chr(34) & Chr(104) & Chr(116) & Chr(116) & Chr(112) & Chr(58) & Chr(47) & Chr(47) & Chr(119) & Chr(119) & Chr(119) & Chr(46) & Chr(119) & Chr(51) & Chr(46) & Chr(111) & Chr(114) & Chr(103) & Chr(47) & Chr(49) & Chr(57) & Chr(57) & Chr(57) & Chr(47) & Chr(120) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(34) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(104) & Chr(101) & Chr(97) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(109) & Chr(101) & Chr(116) & Chr(97) & Chr(32) & Chr(104) & Chr(116) & Chr(116) & Chr(112) & Chr(45) & Chr(101) & Chr(113) & Chr(117) & Chr(105) & Chr(118) & Chr(61) & Chr(34) & Chr(67) & Chr(111) & Chr(110) & Chr(116) & Chr(101) & Chr(110) & Chr(116) & Chr(45) & Chr(84) & Chr(121) & Chr(112) & Chr(101) & Chr(34) & Chr(32) & Chr(99) & Chr(111) & Chr(110) & Chr(116) & Chr(101) & Chr(110) & Chr(116) & Chr(61) & Chr(34) & Chr(116) & Chr(101) & Chr(120) & Chr(116) & Chr(47) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(59) & Chr(32) & Chr(99) & Chr(104) & Chr(97) & Chr(114) & Chr(115) & Chr(101) & Chr(116) & Chr(61) & Chr(85) & Chr(84) & Chr(70) & Chr(45) & Chr(56) & Chr(34) & Chr(32) & Chr(47) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(116) & Chr(105) & Chr(116) & Chr(108) & Chr(101) & Chr(62) & Chr(85) & Chr(110) & Chr(116) & Chr(105) & Chr(116) & Chr(108) & Chr(101) & Chr(100) & Chr(32) & Chr(68) & Chr(111) & Chr(99) & Chr(117) & Chr(109) & Chr(101) & Chr(110) & Chr(116) & Chr(60) & Chr(47) & Chr(116) & Chr(105) & Chr(116) & Chr(108) & Chr(101) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(47) & Chr(104) & Chr(101) & Chr(97) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(13) & Chr(10) & Chr(60) & Chr(98) & Chr(111) & Chr(100) & Chr(121) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(112) & Chr(62) & Chr(84) & Chr(104) & Chr(105) & Chr(115) & Chr(32) & Chr(105) & Chr(115) & Chr(32) & Chr(97) & Chr(32) & Chr(66) & Chr(97) & Chr(115) & Chr(105) & Chr(99) & Chr(32) & Chr(72) & Chr(84) & Chr(77) & Chr(76) & Chr(32) & Chr(70) & Chr(105) & Chr(108) & Chr(101) & Chr(33) & Chr(33) & Chr(33) & Chr(60) & Chr(47) & Chr(112) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(112) & Chr(62) & Chr(38) & Chr(110) & Chr(98) & Chr(115) & Chr(112) & Chr(59) & Chr(60) & Chr(47) & Chr(112) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(112) & Chr(62) & Chr(72) & Chr(111) & Chr(119) & Chr(101) & Chr(118) & Chr(101) & Chr(114) & Chr(44) & Chr(32) & Chr(105) & Chr(116) & Chr(32) & Chr(104) & Chr(97) & Chr(115) & Chr(32) & Chr(108) & Chr(111) & Chr(116) & Chr(115) & Chr(32) & Chr(111) & Chr(102) & Chr(32) & Chr(105) & Chr(110) & Chr(102) & Chr(111) & Chr(114) & Chr(109) & Chr(97) & Chr(116) & Chr(105) & Chr(111) & Chr(110) & Chr(46) & Chr(60) & Chr(47) & Chr(112) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(112) & Chr(62) & Chr(38) & Chr(110) & Chr(98) & Chr(115) & Chr(112) & Chr(59) & Chr(60) & Chr(47) & Chr(112) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(116) & Chr(97) & Chr(98) & Chr(108) & Chr(101) & Chr(32) & Chr(119) & Chr(105) & Chr(100) & Chr(116) & Chr(104) & Chr(61) & Chr(34) & Chr(50) & Chr(48) & Chr(48) & Chr(34) & Chr(32) & Chr(98) & Chr(111) & Chr(114) & Chr(100) & Chr(101) & Chr(114) & Chr(61) & Chr(34) & Chr(49) & Chr(34) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(114) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(82) & Chr(111) & Chr(119) & Chr(32) & Chr(49) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(49) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(49) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(60) & Chr(47) & Chr(116) & Chr(114) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(114) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(82) & Chr(111) & Chr(119) & Chr(32) & Chr(50) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(50) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(50) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(60) & Chr(47) & Chr(116) & Chr(114) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(114) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(82) & Chr(111) & Chr(119) & Chr(32) & Chr(51) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(51) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(32) & Chr(32) & Chr(60) & Chr(116) & Chr(100) & Chr(62) & Chr(51) & Chr(60) & Chr(47) & Chr(116) & Chr(100) & Chr(62) & Chr(13) & Chr(10) & Chr(32) & Chr(32) & Chr(60) & Chr(47) & Chr(116) & Chr(114) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(47) & Chr(116) & Chr(97) & Chr(98) & Chr(108) & Chr(101) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(112) & Chr(62) & Chr(38) & Chr(110) & Chr(98) & Chr(115) & Chr(112) & Chr(59) & Chr(60) & Chr(47) & Chr(112) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(47) & Chr(98) & Chr(111) & Chr(100) & Chr(121) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(47) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(62) & Chr(13) & Chr(10)

This code creates an error:

However, if I do something small, I have no problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<p>This is a Basic HTML File!!!</p>
<table width="200" border="1">
</body>
</html>

$html=Chr(60) & Chr(33) & Chr(68) & Chr(79) & Chr(67) & Chr(84) & Chr(89) & Chr(80) & Chr(69) & Chr(32) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(32) & Chr(80) & Chr(85) & Chr(66) & Chr(76) & Chr(73) & Chr(67) & Chr(32) & Chr(34) & Chr(45) & Chr(47) & Chr(47) & Chr(87) & Chr(51) & Chr(67) & Chr(47) & Chr(47) & Chr(68) & Chr(84) & Chr(68) & Chr(32) & Chr(88) & Chr(72) & Chr(84) & Chr(77) & Chr(76) & Chr(32) & Chr(49) & Chr(46) & Chr(48) & Chr(32) & Chr(84) & Chr(114) & Chr(97) & Chr(110) & Chr(115) & Chr(105) & Chr(116) & Chr(105) & Chr(111) & Chr(110) & Chr(97) & Chr(108) & Chr(47) & Chr(47) & Chr(69) & Chr(78) & Chr(34) & Chr(32) & Chr(34) & Chr(104) & Chr(116) & Chr(116) & Chr(112) & Chr(58) & Chr(47) & Chr(47) & Chr(119) & Chr(119) & Chr(119) & Chr(46) & Chr(119) & Chr(51) & Chr(46) & Chr(111) & Chr(114) & Chr(103) & Chr(47) & Chr(84) & Chr(82) & Chr(47) & Chr(120) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(49) & Chr(47) & Chr(68) & Chr(84) & Chr(68) & Chr(47) & Chr(120) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(49) & Chr(45) & Chr(116) & Chr(114) & Chr(97) & Chr(110) & Chr(115) & Chr(105) & Chr(116) & Chr(105) & Chr(111) & Chr(110) & Chr(97) & Chr(108) & Chr(46) & Chr(100) & Chr(116) & Chr(100) & Chr(34) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(32) & Chr(120) & Chr(109) & Chr(108) & Chr(110) & Chr(115) & Chr(61) & Chr(34) & Chr(104) & Chr(116) & Chr(116) & Chr(112) & Chr(58) & Chr(47) & Chr(47) & Chr(119) & Chr(119) & Chr(119) & Chr(46) & Chr(119) & Chr(51) & Chr(46) & Chr(111) & Chr(114) & Chr(103) & Chr(47) & Chr(49) & Chr(57) & Chr(57) & Chr(57) & Chr(47) & Chr(120) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(34) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(98) & Chr(111) & Chr(100) & Chr(121) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(112) & Chr(62) & Chr(84) & Chr(104) & Chr(105) & Chr(115) & Chr(32) & Chr(105) & Chr(115) & Chr(32) & Chr(97) & Chr(32) & Chr(66) & Chr(97) & Chr(115) & Chr(105) & Chr(99) & Chr(32) & Chr(72) & Chr(84) & Chr(77) & Chr(76) & Chr(32) & Chr(70) & Chr(105) & Chr(108) & Chr(101) & Chr(33) & Chr(33) & Chr(33) & Chr(60) & Chr(47) & Chr(112) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(116) & Chr(97) & Chr(98) & Chr(108) & Chr(101) & Chr(32) & Chr(119) & Chr(105) & Chr(100) & Chr(116) & Chr(104) & Chr(61) & Chr(34) & Chr(50) & Chr(48) & Chr(48) & Chr(34) & Chr(32) & Chr(98) & Chr(111) & Chr(114) & Chr(100) & Chr(101) & Chr(114) & Chr(61) & Chr(34) & Chr(49) & Chr(34) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(47) & Chr(98) & Chr(111) & Chr(100) & Chr(121) & Chr(62) & Chr(13) & Chr(10) & Chr(60) & Chr(47) & Chr(104) & Chr(116) & Chr(109) & Chr(108) & Chr(62) & Chr(13) & Chr(10)

Share this post


Link to post
Share on other sites

here is another example, I wrote a code the converts to binary, but I still get the unable to parse line, if I manually copy the code

This code will copy html, put a binary file in clipboard, and then display the binarytostring in a msgbox

HotKeySet("{ESC}", "capture")

While 1

WEnd

Func capture()

$total = ""

Send("^a")

Send("^c")

$var=clipget()

$total=StringToBinary($var)

ClipPut($total)

Send("^a")

send("^v")

msgbox(0,"", BinarytoString($total))

Exit

EndFunc

However, when I take a long binary file, and just copy straight binary, it gives me a "unable to parse string"

$test=BinarytoString(0x3C21444F43545950452068746D6C205055424C494320222D2F2F5733432F2F445444205848544D4C20312E30205472

616E736974696F6E616C2F2F454E222022687474703A2F2F7777772E77332E6F72672F54522F7868746D6C312F4454442F78

68746D6C312D7472616E736974696F6E616C2E647464223E0D0A3C68746D6C20786D6C6E733D22687474703A2F2F7777772E

77332E6F72672F313939392F7868746D6C223E0D0A3C686561643E0D0A3C6D65746120687474702D65717569763D22436F6E

74656E742D547970652220636F6E74656E743D22746578742F68746D6C3B20636861727365743D5554462D3822202F3E0D0A

3C7469746C653E556E7469746C656420446F63756D656E743C2F7469746C653E0D0A3C2F686561643E0D0A0D0A3C626F6479

3E0D0A3C703E5468697320697320612042617369632048544D4C2046696C652121213C2F703E0D0A3C703E266E6273703B3C

2F703E0D0A3C703E486F77657665722C20697420686173206C6F7473206F6620696E666F726D6174696F6E2E3C2F703E0D0A

3C703E266E6273703B3C2F703E0D0A3C7461626C652077696474683D223230302220626F726465723D2231223E0D0A20203C

74723E0D0A202020203C74643E526F7720313C2F74643E0D0A202020203C74643E313C2F74643E0D0A202020203C74643E31

3C2F74643E0D0A20203C2F74723E0D0A20203C74723E0D0A202020203C74643E526F7720323C2F74643E0D0A202020203C74

643E323C2F74643E0D0A202020203C74643E323C2F74643E0D0A20203C2F74723E0D0A20203C74723E0D0A202020203C7464

3E526F7720333C2F74643E0D0A202020203C74643E333C2F74643E0D0A202020203C74643E333C2F74643E0D0A20203C2F74

723E0D0A3C2F7461626C653E0D0A3C703E266E6273703B3C2F703E0D0A3C2F626F64793E0D0A3C2F68746D6C3E0D0A)

msgbox(0,"",$test)

Share this post


Link to post
Share on other sites

This works: :)

$value="0x3C21444F43545950452068746D6C205055424C494320222D2F2F5733432F2F445444205848544D4C20312E30205472

616E736974696F6E616C2F2F454E222022687474703A2F2F7777772E77332E6F72672F54522F7868746D6C312F4454442F78

68746D6C312D7472616E736974696F6E616C2E647464223E0D0A3C68746D6C20786D6C6E733D22687474703A2F2F7777772E

77332E6F72672F313939392F7868746D6C223E0D0A3C686561643E0D0A3C6D65746120687474702D65717569763D22436F6E

74656E742D547970652220636F6E74656E743D22746578742F68746D6C3B20636861727365743D5554462D3822202F3E0D0A

3C7469746C653E556E7469746C656420446F63756D656E743C2F7469746C653E0D0A3C2F686561643E0D0A0D0A3C626F6479

3E0D0A3C703E5468697320697320612042617369632048544D4C2046696C652121213C2F703E0D0A3C703E266E6273703B3C

2F703E0D0A3C703E486F77657665722C20697420686173206C6F7473206F6620696E666F726D6174696F6E2E3C2F703E0D0A

3C703E266E6273703B3C2F703E0D0A3C7461626C652077696474683D223230302220626F726465723D2231223E0D0A20203C

74723E0D0A202020203C74643E526F7720313C2F74643E0D0A202020203C74643E313C2F74643E0D0A202020203C74643E31

3C2F74643E0D0A20203C2F74723E0D0A20203C74723E0D0A202020203C74643E526F7720323C2F74643E0D0A202020203C74

643E323C2F74643E0D0A202020203C74643E323C2F74643E0D0A20203C2F74723E0D0A20203C74723E0D0A202020203C7464

3E526F7720333C2F74643E0D0A202020203C74643E333C2F74643E0D0A202020203C74643E333C2F74643E0D0A20203C2F74

723E0D0A3C2F7461626C653E0D0A3C703E266E6273703B3C2F703E0D0A3C2F626F64793E0D0A3C2F68746D6C3E0D0A"

$test=BinarytoString($value)
msgbox(0,"",$test)

Anyone know how to do it with ascii? that way i can include other variables

Share this post


Link to post
Share on other sites

I'm confused.... All you want to do is use an HTML code as a string?

Why doesn't this work?

While  1
HotKeySet("{ESC}", "quit")
WEnd

Func quit()
    $html = ClipGet()
    ConsoleWrite($html) 
EndFunc

Share this post


Link to post
Share on other sites

I'm confused.... All you want to do is use an HTML code as a string?

Why doesn't this work?

While  1
HotKeySet("{ESC}", "quit")
WEnd

Func quit()
    $html = ClipGet()
    ConsoleWrite($html) 
EndFunc
Because I want to put the string into another script. I don't want to have to keep copying the html. I plan on copying the html once, and leaving it in another script.

Share this post


Link to post
Share on other sites

I think the problem is that you are hitting the max line size.

Share this post


Link to post
Share on other sites

I got it to work with binary, It is probably memory more efficient

Share this post


Link to post
Share on other sites

Well yeah. It's two characters "20" versus nine "& Chr(32)".

Share this post


Link to post
Share on other sites

Binary has improved, but my code is still to long.

How to I solve this max line size issue?

Share this post


Link to post
Share on other sites

You could do

$html = "first section, maybe cut it off at 500 characters"

$html &= "next section, cut it off if you need to"

$html &= "next next section, etc"

Share this post


Link to post
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
Sign in to follow this  
Followers 0