| View previous topic :: View next topic |
| Author |
Message |
ABCYourWay Guest
|
Posted: Mon Jun 18, 2007 6:19 pm Post subject: |
|
|
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.
I like your Richedit control!. Thanks. |
|
| Back to top |
|
 |
Supercalifragilistic Guest
|
Posted: Mon Jun 18, 2007 7:45 pm Post subject: |
|
|
Splendid control !!!
Do you think you can add a ruler with margin (right, left, indent) and tab stops (right, left, center, decimal point) ?
Thanks |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Mon Jun 18, 2007 9:23 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Mon Jun 18, 2007 9:31 pm Post subject: |
|
|
| 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. | 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 . |
|
| Back to top |
|
 |
Supercalifragilistic Guest
|
Posted: Tue Jun 19, 2007 3:04 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
ABCYourWay Guest
|
Posted: Tue Jun 19, 2007 7:03 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Tue Jun 19, 2007 11:09 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Abcyourway Guest
|
Posted: Wed Jun 20, 2007 1:12 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 755 Location: Berlin
|
Posted: Wed Jun 20, 2007 1:13 pm Post subject: |
|
|
Great work!  _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
ABCyourway Guest
|
Posted: Wed Jun 20, 2007 4:03 pm Post subject: |
|
|
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 , I'm just starting to learn, enjoy, and cosume scripts just as a user.
Thanks again. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Wed Jun 20, 2007 4:49 pm Post subject: |
|
|
Hmm, I had thought that I had included that with the last update. I probably added it just after. 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 . |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Wed Jun 20, 2007 4:53 pm Post subject: |
|
|
| ABCyourway wrote: | Everytime I ask you for someting,
I wish I were a good programmer like you.
Not that I am a programmer , I'm just starting to learn, enjoy, and cosume 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. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Sun Jun 24, 2007 5:21 am Post subject: |
|
|
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...
|
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2421
|
Posted: Sun Jun 24, 2007 5:54 am Post subject: |
|
|
| daonlyfreez wrote: | Great work!  | Thanks  |
|
| Back to top |
|
 |
ABCYourWay Guest
|
Posted: Sun Jun 24, 2007 8:14 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|