Sign in to follow this  
Followers 0
rudi

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

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

#6 ·  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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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