Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Re: Wrap

$
0
0
Well finally got an ink cartridge Joe.
OK, but remember my earlier comment...you can test "printing" to a PDF file.
Your script ...
One thing that I want to make very clear...it is NOT my script. All I did was test it when you posted it to show that it does, indeed, wrap to 300 pixels.
it only prints across the top of the page
Yes, the printed page looks like this:


print at top.png



But that's because of the image you're creating. If you want it elsewhere on the page, experiment with the width and height params in the Gui,Add,Text line, as well as newline chars in the text itself. To make it easier to experiment, I suggest using a Message variable, such as:

CODE:

Message:="`n`n`n`n`n`n`n`n`nDelivery Coming`nPlease Do not Lock Door"


I added that line and replaced the Gui,Add,Text line with this:

CODE:

Gui Add,Text,w720 h1040 Center,%Message%


That results in this printed page:


print in middle.png



And, of course, you can experiment with different font sizes and styles. Regards, Joe

Statistics: Posted by JoeWinograd — Today, 16:23



Viewing all articles
Browse latest Browse all 579

Trending Articles