Jump to content

Recommended Posts

Posted

Hi, I've got a line that is 6602 characters long, but AutoIt does not seem to like it...

I've seen a way to break an line into several lines while still having the functionality of one line, I think I saw it in the AutoIt helpfile under FAQ but now I cant find it.

Anyone got a clue?

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
Posted (edited)

Hi, I've got a line that is 6602 characters long, but AutoIt does not seem to like it...

I've seen a way to break an line into several lines while still having the functionality of one line, I think I saw it in the AutoIt helpfile under FAQ but now I cant find it.

Anyone got a clue?

_ (underscore)

check out the helpfile under lang ref

added:

Helpfile:

MsgBox(4096,"", "This is a rather long line, so I " & _
   "broke it with the underscore, _, character.")
Edited by mdiesel
Posted

It worked to break the code but it stid doesn't work :D

i now got this code:

CODE
Dim $AtomInfo[118][7] = [["1","Hydrogen","H","1","1","Nonmetal","1.00794"],["2","Helium","He","1","18","Noble gas","4.002602"],["3","Lithium","Li","2","1","Alkali metal","6.941"],["4","Beryllium","Be","2","2","Alkaline earth metal","9.012182"],["5","Boron","B","2","13","Metalloid","10.811"],["6","Carbon","C","2","14","Nonmetal","12.0107"],["7","Nitrogen","N","2","15","Nonmetal","14.0067"],["8","Oxygen","O","2","16","Nonmetal","15.9994"], _

["9","Fluorine","F","2","17","Halogen","18.9984032"],["10","Neon","Ne","2","18","Noble gas","20.1797"],["11","Sodium","Na","3","1","Alkali metal","22.98976928"],["12","Magnesium","Mg","3","2","Alkaline earth metal","24.3050"],["13","Aluminium","Al","3","13","Poor metal","26.9815386"],["14","Silicon","Si","3","14","Metalloid","28.0855"],["15","Phosphorus","P","3","15","Nonmetal","30.973762"],["16","Sulfur","S","3","16","Nonmetal","32.065"],["17","Chlorine","Cl","3","17","Halogen","35.453"],["18","Argon","Ar","3","18","Noble gas","39.948"], _

["19","Potassium","K","4","1","Alkali metal","39.0983"],["20","Calcium","Ca","4","2","Alkaline earth metal","40.078"],["21","Scandium","Sc","4","3","Transition metal","44.955912"],["22","Titanium","Ti","4","4","Transition metal","47.867"],["23","Vanadium","V","4","5","Transition metal","50.9415"],["24","Chromium","Cr","4","6","Transition metal","51.9961"],["25","Manganese","Mn","4","7","Transition metal","54.938045"],["26","Iron","Fe","4","8","Transition metal","55.845"],["27","Cobalt","Co","4","9","Transition metal","58.933195"],["28","Nickel","Ni","4","10","Transition metal","58.6934"], _

["29","Copper","Cu","4","11","Transition metal","63.546"],["30","Zinc","Zn","4","12","Transition metal","65.38"],["31","Gallium","Ga","4","13","Poor metal","69.723"],["32","Germanium","Ge","4","14","Metalloid","72.64"],["33","Arsenic","As","4","15","Metalloid","74.92160"],["34","Selenium","Se","4","16","Nonmetal","78.96"],["35","Bromine","Br","4","17","Halogen","79.904"],["36","Krypton","Kr","4","18","Noble gas","83.798"],["37","Rubidium","Rb","5","1","Alkali metal","85.4678"],["38","Strontium","Sr","5","2","Alkaline earth metal","87.62"], _

["39","Yttrium","Y","5","3","Transition metal","88.90585"],["40","Zirconium","Zr","5","4","Transition metal","91.224"],["41","Niobium","Nb","5","5","Transition metal","92.90638"],["42","Molybdenum","Mo","5","6","Transition metal","95.96"],["43","Technetium","Tc","5","7","Transition metal","98.9063"],["44","Ruthenium","Ru","5","8","Transition metal","101.07"],["45","Rhodium","Rh","5","9","Transition metal","102.90550"],["46","Palladium","Pd","5","10","Transition metal","106.42"],["47","Silver","Ag","5","11","Transition metal","107.8682"],["48","Cadmium","Cd","5","12","Transition metal","112.411"], _

["49","Indium","In","5","13","Poor metal","114.818"],["50","Tin","Sn","5","14","Poor metal","118.710"],["51","Antimony","Sb","5","15","Metalloid","121.760"],["52","Tellurium","Te","5","16","Metalloid","127.60"],["53","Iodine","I","5","17","Halogen","126.90447"],["54","Xenon","Xe","5","18","Noble gas","131.293"],["55","Caesium","Cs","6","1","Alkali metal","132.9054519"],["56","Barium","Ba","6","2","Alkaline earth metal","137.327"],["57","Lanthanum","La","6","","Lanthanide","138.90547"],["58","Cerium","Ce","6","","Lanthanide","140.116"], _

["59","Praseodymium","Pr","6","","Lanthanide","140.90765"],["60","Neodymium","Nd","6","","Lanthanide","144.242"],["61","Promethium","Pm","6","","Lanthanide","146.9151"],["62","Samarium","Sm","6","","Lanthanide","150.36"],["63","Europium","Eu","6","","Lanthanide","151.964"],["64","Gadolinium","Gd","6","","Lanthanide","157.25"],["65","Terbium","Tb","6","","Lanthanide","158.92535"],["66","Dysprosium","Dy","6","","Lanthanide","162.500"],["67","Holmium","Ho","6","","Lanthanide","164.93032"],["68","Erbium","Er","6","","Lanthanide","167.259"], _

["69","Thulium","Tm","6","","Lanthanide","168.93421"],["70","Ytterbium","Yb","6","","Lanthanide","173.054"],["71","Lutetium","Lu","6","3","Lanthanide","174.9668"],["72","Hafnium","Hf","6","4","Transition metal","178.49"],["73","Tantalum","Ta","6","5","Transition metal","180.9479"],["74","Tungsten","W","6","6","Transition metal","183.84"],["75","Rhenium","Re","6","7","Transition metal","186.207"],["76","Osmium","Os","6","8","Transition metal","190.23"],["77","Iridium","Ir","6","9","Transition metal","192.217"],["78","Platinum","Pt","6","10","Transition metal","195.084"], _

["79","Gold","Au","6","11","Transition metal","196.966569"],["80","Mercury","Hg","6","12","Transition metal","200.59"],["81","Thallium","Tl","6","13","Poor metal","204.3833"],["82","Lead","Pb","6","14","Poor metal","207.2"],["83","Bismuth","Bi","6","15","Poor metal","208.98040"],["84","Polonium","Po","6","16","Metalloid","208.9824"],["85","Astatine","At","6","17","Halogen","209.9871"],["86","Radon","Rn","6","18","Noble gas","222.0176"],["87","Francium","Fr","7","1","Alkali metal","223.0197"],["88","Radium","Ra","7","2","Alkaline earth metal","226.0254"], _

["89","Actinium","Ac","7","","Actinide","227.0278"],["90","Thorium","Th","7","","Actinide","232.03806"],["91","Protactinium","Pa","7","","Actinide","231.03588"],["92","Uranium","U","7","","Actinide","238.02891"],["93","Neptunium","Np","7","","Actinide","237.0482"],["94","Plutonium","Pu","7","","Actinide","244.0642"],["95","Americium","Am","7","","Actinide","243.0614"],["96","Curium","Cm","7","","Actinide","247.0704"],["97","Berkelium","Bk","7","","Actinide","247.0703"],["98","Californium","Cf","7","","Actinide","251.0796"], _

["99","Einsteinium","Es","7","","Actinide","252.0829"],["100","Fermium","Fm","7","","Actinide","257.0951"],["101","Mendelevium","Md","7","","Actinide","258.0986"],["102","Nobelium","No","7","","Actinide","259.1009"],["103","Lawrencium","Lr","7","3","Actinide","264"],["104","Rutherfordium","Rf","7","4","Transition metal","265"],["105","Dubnium","Db","7","5","Transition metal","268"],["106","Seaborgium","Sg","7","6","Transition metal","272"],["107","Bohrium","Bh","7","7","Transition metal","273"],["108","Hassium","Hs","7","8","Transition metal","276"], _

["109","Meitnerium","Mt","7","9","Transition metal","279"],["110","Darmstadtium","Ds","7","10","Transition metal","278"],["111","Roentgenium","Rg","7","11","Transition metal","283"],["112","Ununbium","Uub","7","12","Transition metal","285"],["113","Ununtrium","Uut","7","13","Poor metal","287"],["114","Ununquadium","Uuq","7","14","Poor metal","289"],["115","Ununpentium","Uup","7","15","Poor metal","291"],["116","Ununhexium","Uuh","7","16","Poor metal","293"],["117","Ununseptium","Uus","7","17","Halogen","295"],["118","Ununoctium","Uuo","7","18","Noble gas","294"]]

but it gives me this error

CODE
String missing closing quote.

When the characters exceed the AutoIt character-per-line limit.... is there any other solution for the problem?

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]
Posted

Max characters per line cannot exceed 4095 characters. Underscore line continuation is not exempt from this rule. Your line is too long.

in which case, you will probably have to Concatenate it somewhere...

Posted

Ok, so i am pretty much screwed right?, well i made this...

so i use some dirty function to index the elements by the array name

[autoit]#include <ComboConstants.au3>

#include <GUIConstantsEx.au3>

#include <ListViewConstants.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("ATOMV

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]

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
  • Recently Browsing   0 members

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