AutoHotkey Community

It is currently May 27th, 2012, 12:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 11th, 2008, 1:05 pm 
Offline

Joined: June 2nd, 2008, 4:01 pm
Posts: 16
I am trying to use the rtf functions found here:

cRichEdit(_ctrlID, _action, opt1="", opt2="", opt3="", opt4="", opt5="", opt6="")

http://www.autohotkey.com/forum/topic19 ... hlight=rtf

i used this:

Code:
cRichEdit(REdit1, "Text", "Hello World!!")
from the demo

but cannot find how to send to a non ahk Gui, i replaced the REdit1 with the handle of the edit control but it does not work ( it is a RTF edit window)


Code:
ControlSend ,, hello ?? , ahk_id%HID1%
works


Code:
cRichEdit(HID1, "Text", "Hello World!!")


does not work

also the underlying line does not work
DllCall("user32.dll\SendMessage", "UInt", HID1, "UInt", 0x461, "Str", "", "Str", "hello ??")

any ideas?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2008, 1:36 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Have a look at autoclip, probably does what you want out of the box as
it can paste rich text:
http://www.donationcoder.com/Software/S ... l#AutoClip
(see also AHK forum http://www.autohotkey.com/forum/viewtopic.php?t=3586)

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2008, 3:17 pm 
Offline

Joined: June 2nd, 2008, 4:01 pm
Posts: 16
thanks HugoV

i used some of the program with the clipboard as inbetween from the links you gave and it works but i would like to use the other possibilities that cRichEdit gives too

so i still will try to get it working :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2008, 3:40 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Just a wild thought: create an invisible gui (no taskbar and offscreen) with a AHK Gui with cRichEdit, prepare the text there, get the content from the AHK Gui and paste into your application.

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot] and 13 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