How do I put formatting into text that I copy paste via autohotkey - formatting

I have an autohotkey script that I trigger via a hotkey. It reads data from a .txt file and then pastes the data into the active window. The active window can be a note from Evernote.
The textfile is simple unicode but I want to have colored text as a end product.
How do I get there? How do I format the text.
If it matters, the script runs on windows.

Related

VBA - Apply document formatting to open Word doc

I am using data in an Excel workbook to create an HTML string when a user clicks a button. I then use VBA to save that string as an .html file, open it in Word, and bring Word to the foreground. That all works great.
Now, I'd like to add a line(s) to the VBA to select the document formatting.
In the Word doc that opens, there's this in the ribbon:
When I hover over that formatting option, it's called "Lines (simple)." I can click it in Word, and it formats the text exactly how I want it. But, I'd like to do so automatically with the VBA over in Excel that created and launched the Word document. Unfortunately I just don't know which command or property that is and haven't been able to find it with searches or document inspection. I'd appreciate your help.

Batch alter existing PDF files

I have 1700 PDF datasheets that contain a set of text and image boxes. The underlying template of each datasheet is the same, but the contents of the boxes vary. I'd like to find a program that lets me take the modified text box contents (summarized in an excel table) and repopulate the original sheets.
I have extracted the information from the text boxes using the "Merge Data files into an excel file" under the Prepare Form tool in Adobe DC and have used a variety of =Substitute functions in excel to change the contents of the text boxes to what I want. What I would like to do now is use a program to go back to the original .PDF and overwrite the original fields. I would just run a mail merge on this normally, but I don't have access to the images anymore so the image boxes would be blank.
Alternatively I've considered using something like Pulover Macro Creator to step through the excel list and paste in the contents into every sheet, but I'm hoping that there's an existing piece of software to do this.

Live updating from a .txt file to PowerPoint textbox

Quick note: I have no background/experience with VBA so will need some explanation as to what is going on.
I've wrote a Python script to pull the latest XML data from an IoT sensor (temperature readings) and store it in a text file. I would know like to get this data displaying on a PowerPoint, but this data could change during the PowerPoint, and I would like the PowerPoint slide to be able to update, receiving changes to re-display an updated version of the data.
To summarise: Currently, I have a text file with the data that needs to be read and need a VBA script to read it and place it into a textbox with live updates.
This is what I have found so far:
http://www.pptfaq.com/FAQ00124_Read_in_text_from_an_ascii_file-.htm
The above page shows a VBA script that opens a .txt file and reads it until the EOF. I am not certain how this script would output to a textbox though.
Thanks in advance.

VB.Net - Write plain text to .txt, keep carriage returns

I have a form where I load .txt files into a RichTextBox. An event triggers:
rtxtSONotes.LoadFile(stTextLink, RichTextBoxStreamType.PlainText)
I want the ability to add to the text and then just replace the old file with the contents of the RichTextBox with a button:
My.Computer.FileSystem.WriteAllText(stTextLink, rtxtSONotes.Text, False)
This actually works great if I stay within the form, it displays exactly how I told it to look in my RichTextBox, meaning all new lines/carriage returns are there. However, if I open the actual .txt file in Notepad then everything is boiled down to one continuous line and is unreadable for most users. I don't want the form to be the only way users can read the file.
Is there a way to preserve carriage returns when writing from a form to a .txt file? I would prefer to keep the files as .txt if possible, rather than something like .rtf.
maybe something like
System.IO.File.WriteAllLines(stTextLink, rtxtSONotes.Lines)

Save excel as pdf changing its orientation to horizontal

I have an excel sheet with too many columns, so when I save it as a PDF the file its in too many pages and its not easy to read . I need to save the sheet as pdf but before I want to change its orientation to horizontal so I can read the pdf with no problem. Is the same you can do when you print but I want it when I save an excel file as pdf.
Is there any option I can choose?
I dont mind if someone gives me a code for a macro using my selection as an object.
Under the "Page Layout" tab, click the "Orientation" option and then select "Landscape."
Then create your PDF as usual.
You can save Excel files in PDF, even without using Excel. I use a program Universal Document Converter (http://www.print-driver.com/how-to/save-excel-as-pdf). This program allows you to quickly and easily create print-ready PDF-files on the basis of the original spreadsheets Excel.