AutoHotkey Community

It is currently May 26th, 2012, 7:13 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: May 22nd, 2008, 4:48 am 
Hello

I know this will be here somewhere, but I am very new and would like some help to get me started.

If I want some text to be bold, italic and size 14, how do I get it in to word?

Something like this would be fine:

Code:
FileAppend , NormaText BoldText ItalicText LargeText, Word.doc


Thank you for helping me


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2008, 6:42 am 
Offline

Joined: March 11th, 2008, 11:36 pm
Posts: 291
you can't write to .doc directly. check this alternatively

_________________
Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks for the response
PostPosted: May 22nd, 2008, 6:54 am 
Thanks for the response Heresy

But is it not possible to do something similar to HTML

For example:

Code:
FileAppend , NormaText <B>BoldText</B> <I>ItalicText</I>, Web.html


Like that - but using doc instead of html?

Thanks for the help


Report this post
Top
  
Reply with quote  
PostPosted: May 22nd, 2008, 7:07 am 
Offline

Joined: March 11th, 2008, 11:36 pm
Posts: 291
VeryNew wrote:
But is it not possible to do something similar to HTML

no you can't. since .doc is not plain text format. write a .doc in word and save. then open it with notepad. it's MS's own private format. not just plain text

_________________
Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2008, 7:09 am 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
It may be possible - If you're using set strings, you might be able to work off of this script. IIRC it saves the rich text string (including bold/italic/color/etc.) to a temp file that is later loaded into the clipboard and pasted again. This won't get you a word doc but if you can get it to save an RTF file, Word can read that...

_________________
[Join IRC!]
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, Google [Bot], Google Feedfetcher, kkkddd1 and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group