Jump to content

Recommended Posts

Posted

Hi all.. i need to make a new line, i googled it and it said to use... `n .... for a new line.. however im getting an illegal character error on au3.. so how does one write the NEW LINE escape character?

Posted

Simply use macro @CRLF or @LF.

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Moderators
Posted

LetsAuto,

@CRLF. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted

LetsAuto,

In case you did not notice the link you posted leads to the AutoHotKey help and not that of AutoIt - so it is hardly likely that the syntax would work here.. ;)

As to loading the lines into a listbox, you will need to use GUICtrlSetData - to save you any more embarrassment the relevant Help file page is here. :D

Look carefully at how to separate the items - you do not use @CRLF. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

This is AutoIt not AutoHotKey.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

i had thought it was the same because the link said that it applied to AutoIt v2, however im using v3, so there that is. lol..

and I am sorry, i did not mention enough information.. /:

the list box im trying to populate is in a different script.. so i used ...

$line20 = _GUICtrlListBox_GetText($addedBox, 20)

.... to get the line from the list box to save to a .LOG file.. and now i need to bring each individual line from that file, to a different script, and display each string on a separate line, while disregarding the possible "0"s that may come up if the user has not selected up to 26 strings (the first 27 lines in the list box)

Posted

ahh! im way too tired, i did not fully comprehend the sentence saying that the aut gets converted to ahk, i do understand that was entirely the wrong page, thanks

Posted

Aren't these related then?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 11/20/2012 at 9:17 PM, 'LetsAuto said:

i had thought it was the same because the link said that it applied to AutoIt v2, however im using v3, so there that is. lol..

AutoHotKey is (as far as I know) based on the source of Autoit v2.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

well whats happening is....

$functionWrite = FileRead("C:IanLogTestfunctionLog.log")
_GUICtrlListBox_InsertString($functionsList, $functionWrite)

... is making all of the functions display on one line, even though when i did the fileWrite i told it to do

$line0& @CRLF &$line1....
all the way until $line26.. thats where the main issue is, i need them to display as 1 string per line.
  • Moderators
Posted

LetsAuto,

Only Mods can delete threads - you can only delete posts other then the first. So it is still visible. :)

And you have double posted before - please do not make a habit of it. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

okay ya ill make sure that it wont happen again, thanks. well in that case, to keep some relevence to the thread, if anyone could help me on that other thread that would be awesome!

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