litlmike Posted January 2, 2007 Posted January 2, 2007 (edited) Problem:Currently use ControlGetText () and ControlSetText () to read then replace the values in a control in Eudora 6.2 (email client). Works great unless the text has some sort of formatting like Bold, Italics, Hyperlink, Bullet Points; in this case the formatting is lost. Anyway to preserve this formatting? Or maybe put better another way, can ControlSetText() ever preserve formatting? If not, is there a workaround?Thanks in Advance.Global $cat_1, $date_a, $email, $contact, $company, $email Func Eudora_Change () ;Focus on ComboBox with <none>, Assistant, GG-Signature $cat_1A = GUICtrlRead($cat_1) $date_a_A = GUICtrlRead($date_a) ControlCommand ("Eudora","","ComboBox3", "SetCurrentSelection", 0) ControlSetText("Eudora", "", "Edit1", $email) ControlSetText("Eudora", "", "Edit3", "ATTN: " & $contact) ControlFocus("Eudora", "", "EudoraEdit1") $email_body = ControlGetText ( "Eudora", "","EudoraEdit1" ) $AddNotes_New = StringReplace ( $email_body, "NNNNN", $contact) $AddNotes_NewA = StringReplace ( $AddNotes_New, "XXXXX", $company) $AddNotes_NewB = StringReplace ( $AddNotes_NewA, "ZZZZZ", $cat_1A) ;Put Category in Email $AddNotes_NewC = StringReplace ( $AddNotes_NewB, "[APPOINTMENT DATE]", $date_a_A) ;Put Category in Add Notes ControlSetText ( "Eudora", "", "EudoraEdit1", $AddNotes_NewC ) EndFunc Edited January 5, 2007 by litlmike _ArrayPermute()_ArrayUnique()Excel.au3 UDF
litlmike Posted January 3, 2007 Author Posted January 3, 2007 Was this post confusing? Or does know one have any ideas? Thanks. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
litlmike Posted January 5, 2007 Author Posted January 5, 2007 I didn't want to create a new thread, but I was still hoping someone could shed some light on this. Is there any way to ever preserve the formatting when using ControlSetText? Thanks. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
Moderators SmOke_N Posted January 5, 2007 Moderators Posted January 5, 2007 I don't have Eudora to even try and test the theories I may have at the moment. What did google reveal? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
litlmike Posted January 10, 2007 Author Posted January 10, 2007 I don't have Eudora to even try and test the theories I may have at the moment. What did google reveal?I have been ill and away from a PC for a few days and just now returning to this.I didn't find much in Google, but then again, I am not sure if I was searching for the right terms. I mostly researched formatting/coding eudora types of keywords. I even posted in their Forums, but no response yet.How can I be of further assistance? I am definitely willing to work for this answer, but I just don't know where to work! _ArrayPermute()_ArrayUnique()Excel.au3 UDF
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now