Jump to content

Compilation - Resource Update: line breaks in "Extra Ressource Fields" possible?


Recommended Posts

Posted

Hi.

When compiling scripts, I'd like to specify an "extra ressorce field" with fixed line breakes, like

Author=R2D2\nLego Land\n89312 Günzburg\nGermany

Is this possible?

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Posted

That's not examined by the AutoIt interpreter, so I don't think you can use things like "R2D2" & @CRLF & "Lego".

This didn't work when I tried it:

#AutoIt3Wrapper_Res_Field=Author|PsaltyDS \n AutoIt Dude

Didn't work with @CRLF either, they just get treated as literal text.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
  • Developers
Posted

Don't think it is supported to put an CR or LF character in the resource field. I tried it but it doesn't do anything when displaying other than showing some sort of character.

Jos

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

Posted

Hi.

["\n" and "@crlf" are treated as literal txt]

:)

Yes, that's what I posted :)

As Jos answered, it seems not to be possible with the ressource updater.

Thanks for your reply!

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Posted

Hi Jos.

Don't think it is supported to put an CR or LF character in the resource field. I tried it but it doesn't do anything when displaying other than showing some sort of character.

I'm not sure, if I get correctly what you said:

- Did you manually enter "CRLF" to the string, you passed to the ressource updater's EXE?

That would mean, that (at least) the Ressource Updater can't handle line breaks.

- Or did you manually edit a Program's Ressources, adding "CRLF" to one of the ressource fields of that EXE?

That would mean, that it seems to be technically impossible to have line breaks in ressource fields.

Hm. I'm not sure any more, but AFAIK I've seen programs with multi line extra ressource fields, which looked like they were arranged with manually fixed line breaks.

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

  • Developers
Posted (edited)

Hi Jos.

I'm not sure, if I get correctly what you said:

- Did you manually enter "CRLF" to the string, you passed to the ressource updater's EXE?

That would mean, that (at least) the Ressource Updater can't handle line breaks.

- Or did you manually edit a Program's Ressources, adding "CRLF" to one of the ressource fields of that EXE?

That would mean, that it seems to be technically impossible to have line breaks in ressource fields.

Hm. I'm not sure any more, but AFAIK I've seen programs with multi line extra ressource fields, which looked like they were arranged with manually fixed line breaks.

Regards, Rudi.

I updated AutoIt3Wrapper Func which does the resource updates, to support \n replacing it by eitehr a @cr or @lf and tested with that.

You could try modifying your resources with reshacker and see if you can manage that way... when you get it to work then let me know what you did and I will check if that can be supported in AutoIt3Wrapper.

Jos :)

Edited by Jos

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

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