AutoHotkey Community

It is currently May 25th, 2012, 8:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 106 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next
Author Message
 Post subject:
PostPosted: June 18th, 2007, 7:19 pm 
Thank you Corrup for the script.

Can you add [ Get RTF Code and Load RTF Code ] functions?
For some reason I want to save several RTF codes in one text file.
But without the Load-Get RTF code functions I have to save each code to as many rtf files 'cause we only have a load RTF File function.

I don't know if it's technically possible.
As you know, IEcontrol allows us directly to load html code(not html file) but Iecontrol is not a htmledit control so we can't edit html code in a WYSIWYG way.

And you already got a hang of richedit control, is htmledit control a tough one for to tackle? I'm sorry if I'm asking too much. :lol:
I like your Richedit control!. Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 8:45 pm 
Splendid control !!!
Do you think you can add a ruler with margin (right, left, indent) and tab stops (right, left, center, decimal point) ?
Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 10:23 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
ABCYourWay - Thanks :) . I'll add retrieving rtf code to the list.

Supercalifragilistic - Thanks :) . The next minor version (available soon) should contain a few paragraph options (left, center, right) and possibly tab stop options, indent and a few others. The ruler will likely take a little while longer but is on the list.


Thanks for the interest, comments and suggestions :) . I can't take any credit for the control itself since it's a standard Windows control but adding options for use in AutoHotkey has been interesting so far. After the next few releases I will probably only add additional options as requested. If anyone has any requests then please let me know so that I can add them to the list. If anyone has any code that they would like to see added to the version available for download then please post it here or send me a PM.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 10:31 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
ABCYourWay wrote:
And you already got a hang of richedit control, is htmledit control a tough one for to tackle? I'm sorry if I'm asking too much. :lol:
:lol: There are probably other people here with more experience with that one but I might consider giving it a try (if someone else doesn't beat me to it) after most of the work on this is complete :) .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 4:04 am 
corrupt wrote:
Supercalifragilistic - Thanks :) . The next minor version (available soon) should contain a few paragraph options (left, center, right) and possibly tab stop options, indent and a few others. The ruler will likely take a little while longer but is on the list.
Thanks corrupt. Very good news.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 8:03 am 
To Corrupt.
Hi.
I don't know if I am doing something wrong in my script, but have you ever tried to put Richedit Gui upon Tab control?

At first I thought it wasn't working with Tab control, but I noticed that Richedit control is behind the tab control. I am trying to put a richedit on the 2nd tab.
Other built-in controls are working correctly.
I think Tab control can not contain richedit control within the area.
Can you check it out please?
Thank you.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 12:09 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
To put the control on a tab control you may have to set the tab control as the parent. The current code sets the Gui window as the parent so although the control may be positioned on the tab control initially it's not linked to the tab control in any way. I'll have a look at adding an option. Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 2:12 pm 
Yeah, I managed to simulate tab control containing RichEdit using Control command with hide and move option.
Sorry for posting that topic without trying other method myself.
You should concentrate on other major requests from others rather my trivial problems.
Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 2:13 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Great work! 8)

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 5:03 pm 
Sorry, Corrupt! Another Request.

Can you add AppendText method?
I just want to add some text programmatically,
not just loading from files!
Everytime I ask you for someting,
I wish I were a good programmer like you.
Not that I am a programmer :lol: , I'm just starting to learn, enjoy, and cosume :o scripts just as a user.
Thanks again.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 5:49 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Hmm, I had thought that I had included that with the last update. I probably added it just after. Oops :oops: . An option for adding text along with a few other tweaks will also be available with the next version. Btw, feel free to keep the requests coming :) .


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 5:53 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
ABCyourway wrote:
Everytime I ask you for someting,
I wish I were a good programmer like you.
Not that I am a programmer :lol: , I'm just starting to learn, enjoy, and cosume :o scripts just as a user.
Thanks again.
Thanks :) , but it's mostly trial & error with a lot of patience, over time... ;) . Don't get discouraged. We all have to start somewhere.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2007, 6:21 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Updated to version 0.06
  • AutoHotkey v1.0.47 or greater required
  • added: Align (Left, Right, Center)
  • added: ReplaceSel - to insert or replace text at the current position
  • added: GetRTF - to retrieve RTF code for the current selection or contents of the RichEdit control
  • added: an option to cGUI to specify the HWND of the parent control (currently untested)
  • modified: removed dependency on Insert/Extract Integer functions (now uses NumPut, NumGet instead)
  • updated: demo scripts (simple, feature)
  • modified: method used for colour names, minor bug fixes/tweaks
  • more to come soon...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2007, 6:54 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
daonlyfreez wrote:
Great work! 8)
Thanks :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2007, 9:14 am 
Finally!

At first I was gonna ask you for two functions AppendText and say, ReplaceText but I forgot one!
But you came up with ReplaceSel - Sort of two birds with one stone!

Now I can restart my little script again.
Good to know AutoHotkey, Great to know you. Thanks Corrupt.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 106 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: tic, Yahoo [Bot] and 16 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