Jump to content

Inputbox Text Limitation


Recommended Posts

I have created a script which takes the text from an input box, formats it and sends it to an HTML file. However, when the text is taken from the input box and moved to the HTML document, it only moves around 270 characters (including spaces).

I realize that no one in their right mind normally types more than 270 words in an inputbox, but I'm not in my right mind, and it's for an HTML-illiterate person who needs to be able to add updates to the company website easily, and I don't have the time to babysit.

Is this a limitation with the inputbox, or perhaps with how much information a single variable can hold? Is it possible to send more text this way? If it is not possible to use an inputbox, I'll just have to find some other way to do it.

I would appreciate any information and/or ideas you could give me.

Thank you,

Chris

Link to comment
Share on other sites

The Standard AutoIt Input box is limited to 255 I think. Microsoft Limitation.

edit.. the new GUI doens't have those limitations.

http://www.hiddensoft.com/forum/index.php?showtopic=1466

$y=""
for $i=1 to 300
   $y=$y&" bob"&$i

   next

clipput($y)

$x=InputBox("test","Hi"); paste the clipboard back in and hit enter
msgbox(1,StringLen($x),$x)
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

The Standard AutoIt Input box is limited to 255 I think. Microsoft Limitation. 

edit.. the new GUI doens't have those limitations.

http://www.hiddensoft.com/forum/index.php?showtopic=1466

$y=""
for $i=1 to 300
   $y=$y&" bob"&$i

   next

clipput($y)

$x=InputBox("test","Hi"); paste the clipboard back in and hit enter
msgbox(1,StringLen($x),$x)
AutoIt3 with GUI inside is coming so you can build an input box with no limitation and definitly more

Have a look at http://www.hiddensoft.com/fileman/users/jpm/AutoIt3-gui/

:whistle:

Link to comment
Share on other sites

When I wrote the InputBox, I was thinking of InputBox for entering small responses. I did add a feature to limit the size of the text returned, but by default it is practically unlimited (as in, I have no idea how big it will go. I tested it up to 240 characters.)

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Link to comment
Share on other sites

When I wrote the InputBox, I was thinking of InputBox for entering small responses.  I did add a feature to limit the size of the text returned, but by default it is practically unlimited (as in, I have no idea how big it will go.  I tested it up to 240 characters.)

You should look at 101.6 with the GuiInputbox.au3 example :whistle:
Link to comment
Share on other sites

According to the docs:

The string returned will not exceed 254 characters; and if input contains carriage returns or linefeeds, result will be truncated at the first occurrence.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

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