| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Fri May 11, 2007 12:38 pm Post subject: |
|
|
I uploaded changed "version" for you here. Its messed up completely but it will show you the point and what to do:
Works only with latest AHK version:
http://www.autohotkey.net/~majkinetor/-TEMP/BBCodeWriter.rar
Optimisations for preview function can be done in case we want preview per key press. Currently I implemented preview per timer (500ms) and it works good here. Sean may tell us if there are any ways to send string with HTML to IE so to avoid slow file creation.
With some options, you can make this just extension of your currnet code.
Like, option can be refresh interval, and user can set it to 0 for manual refreshing or to arbitrary number of seconds for automatic. So everything stays as before, just IE is integrated. If you put preview on right side, you will have enough room for even full screen edit.
I tested live prevew with larger posts, like the one above, and it still works fine. The only problem will be that IE will scroll back to the top of file once you reload it, but I will fix that for you. _________________
 |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Mon May 14, 2007 10:40 am Post subject: |
|
|
| Quote: | | Gui_IELoadHTML(html_string) |
Sean just updated IE control so we can do live preview w/o temp files. This will make live preview instant, probably feasible on key press, but can be done on Timer too.
Tell me, are you still interesting in doing this or no ? _________________
 |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Tue May 15, 2007 10:21 am Post subject: |
|
|
| Quote: | | Tell me, are you still interesting in doing this or no ? | Well, yes.
The problem is I don't have the time to work on this at the moment. But I'm still interested. I'll keep an eye on this for sure. In my opinion the IE control would look best below the 'action bar' (signatures, copy, preview, reset).
Maybe with a fixed height but scales in width just like the edit control.
Haven't made any further thoughts about it till now.
______________________
Cheers AGU |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Tue May 15, 2007 10:24 am Post subject: |
|
|
The time required for U to do this is like several hours. Anybody else will require lot of time as you made entire script non-flexibile so it is hard to change it without looking at every peace of code bellow and above. In sopthisticated GUI, every section can be moved in such way, that it reposition all sections under it. If you did so, adding IE control could be done by anybody, by just inserting it at place where it should be without further modifications. _________________
 |
|
| Back to top |
|
 |
Pastilhas
Joined: 16 May 2007 Posts: 4
|
Posted: Wed May 16, 2007 9:57 am Post subject: |
|
|
Hi people
First sorry for my bad English and Congratulations for AHK. Nice Program.
I have a problem. AHK Preview cant show Thid code corectly.
| Code: | | [url=http://www.ptwarriors.com/forum/viewforum.php?f=12][img]http://www.blizzard.com/wow/images/header-paladin.gif[/img][/url] |
Its supposed to show this:
What im doing Wrong ?
Thx for your help |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Wed May 16, 2007 10:27 am Post subject: |
|
|
This is strate forward control.
Paladins are gay. Maybe that can be the reason. Try with shamie. _________________
 |
|
| Back to top |
|
 |
Pastilhas
Joined: 16 May 2007 Posts: 4
|
Posted: Wed May 16, 2007 11:24 am Post subject: |
|
|
Hi
Lets Try Shamie
................... ...................
Dont Work, Pala are not better then Shamie in this case
AHK Preview cant show Thid code corectly.
Can some one help me ?
| Code: | [i]...................[/i][url=http://www.ptwarriors.com/forum/viewforum.php?f=12][img]http://www.blizzard.com/wow/images/header-shaman.gif[/img][/url][i]...................[/i]
[url=http://www.ptwarriors.com/forum/viewtopic.php?t=316][img]http://www.wow-europe.com/shared/wow-com/images/info/classes/shaman/shaman.png[/img][/url] |
thx |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Wed May 16, 2007 12:26 pm Post subject: |
|
|
At least Shamie is not gay
Just look at da orc - A real man
Sorry, I beleive AGU is the only one that can help you now. _________________
 |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Wed May 16, 2007 2:22 pm Post subject: |
|
|
Hi Pastilhas,
I took a look at the code and your problem and have to admit this is a bug with the preview routine. I'll have to fix that. Sorry.
Even if the preview won't work for this, your BBCode is correct and should work when posted within a forum. But keep in mind that it's bandwidth theft if you reference images you don't host yourself.
___________________________
Cheers AGU |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Wed May 16, 2007 2:27 pm Post subject: |
|
|
@majkinetor
| Quote: | | ... as you made entire script non-flexibile so it is hard to change it without looking at every peace of code bellow and above. |
Well I always thought I documented the script very good, but this is apparently wrong. Do you have any ideas to make the script more flexible as you say?
BBCodeWriter is the result of my learning curve with AHK. When I started it I didn't knew anything about programming at all. So it can be that it's a little bit confusing or non-flexible.
__________________________
Cheers AGU |
|
| Back to top |
|
 |
AGermanUser
Joined: 12 Feb 2005 Posts: 82
|
Posted: Wed May 16, 2007 9:54 pm Post subject: |
|
|
Ok, made a small update (7.01) to fix the reported error within url tags.
| Quote: | 16.05.2007
+ fixed bug in BBCodePreview.ahk - BBCode tags within url tags weren't displayed (thx Pastilhas) |
_________________ Cheers
BBCodeWriter • ToDo-List • CopyPassage |
|
| Back to top |
|
 |
cuzabis1 Guest
|
Posted: Fri May 18, 2007 3:07 pm Post subject: bug |
|
|
noticed this little bug while saving... Im on Win2K
see where the AUTO HIGHLIGHT goes??? |
|
| Back to top |
|
 |
cuzabis
Joined: 29 Jun 2006 Posts: 45
|
Posted: Fri May 18, 2007 3:11 pm Post subject: |
|
|
sorry I wasn't logged in
It only does the above if you have "Hide known Extensions" active
otherwise it works properly
maybe you could add some sort of If statement so if '.TXT' is detected it highlights only Posting
PS sorry I wasn't logged in last post, otherwise I would have edited |
|
| Back to top |
|
 |
AGermanUser
Joined: 12 Feb 2005 Posts: 82
|
Posted: Fri May 18, 2007 7:49 pm Post subject: |
|
|
Hi cuzabis,
thx for reporting. I hopefully fixed it with version 7.0.2. Give it a try.
| Quote: | 18.05.2007
+ fixed bug in RenameHelper routine - wrong highlighting when 'Hide known extension' is active (thx cuzabis)
|
_________________ Cheers
BBCodeWriter • ToDo-List • CopyPassage |
|
| Back to top |
|
 |
cuzabis
Joined: 29 Jun 2006 Posts: 45
|
Posted: Fri May 18, 2007 9:46 pm Post subject: |
|
|
Thanks man I will try it
AND BTW
I really love the program
only thing I had a problem with is some forums use a different font sizing
and it doesn't have CENTER (im assuming because AHK.COM doesn't either)
do you maybe plan on implementing the [CENTER] ??
and how would one go about changing the font size... on the other forum Size=4 is Large (about the size of Size=20)
but that doesn't matter the center thing would be great
FAST WORK BTW
EDIT.... tried it, and it works now (the highlight) |
|
| Back to top |
|
 |
|